Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Allow to get Probe logs by target #1063

Merged

Conversation

druanoor
Copy link
Contributor

@druanoor druanoor commented May 4, 2023

Resolves #1062

Adds funcionallity to allow search Probe logs based on the target allowing to build a direct link in Prometheus/Alertmanager Alerts

@druanoor druanoor force-pushed the feat/add-get-logs-from-target branch from 5ffed02 to 5148198 Compare May 4, 2023 14:12
main.go Outdated Show resolved Hide resolved
@druanoor
Copy link
Contributor Author

druanoor commented Jun 6, 2023

Any update on this topic?

main.go Outdated Show resolved Hide resolved
main.go Outdated Show resolved Hide resolved
main.go Outdated Show resolved Hide resolved
main.go Outdated Show resolved Hide resolved
main.go Show resolved Hide resolved
@electron0zero
Copy link
Member

Any update on this topic?

@druanoor left some nitpicks and minor comments, rest lgtm. :)

druanoor and others added 6 commits July 7, 2023 10:29
Co-authored-by: Suraj Nath <[email protected]>
Signed-off-by: druanoor <[email protected]>
Co-authored-by: Suraj Nath <[email protected]>
Signed-off-by: druanoor <[email protected]>
Co-authored-by: Suraj Nath <[email protected]>
Signed-off-by: druanoor <[email protected]>
Co-authored-by: Suraj Nath <[email protected]>
Signed-off-by: druanoor <[email protected]>
Co-authored-by: Suraj Nath <[email protected]>
Signed-off-by: druanoor <[email protected]>
Signed-off-by: Daniel Ruano <[email protected]>
@druanoor
Copy link
Contributor Author

druanoor commented Jul 7, 2023

@electron0zero all merged, thanks! Waiting for this feature to be live :)

@electron0zero electron0zero merged commit 52e9144 into prometheus:master Jul 10, 2023
2 checks passed
hatamiarash7 pushed a commit to hatamiarash7/blackbox_exporter that referenced this pull request Aug 27, 2023
* feat: Allow to get Probe logs by target

Signed-off-by: Daniel Ruano <[email protected]>

* Commit for signing

Signed-off-by: Daniel Ruano <[email protected]>

* Use net/http constants instead of hardcoded ints as http codes

Signed-off-by: Daniel Ruano <[email protected]>

* Add unit testing for GetByTarget and GetById methods

Signed-off-by: Daniel Ruano <[email protected]>

* Update main.go

Co-authored-by: Suraj Nath <[email protected]>
Signed-off-by: druanoor <[email protected]>

* Update main.go

Co-authored-by: Suraj Nath <[email protected]>
Signed-off-by: druanoor <[email protected]>

* Update main.go

Co-authored-by: Suraj Nath <[email protected]>
Signed-off-by: druanoor <[email protected]>

* Update main.go

Co-authored-by: Suraj Nath <[email protected]>
Signed-off-by: druanoor <[email protected]>

* Update main.go

Co-authored-by: Suraj Nath <[email protected]>
Signed-off-by: druanoor <[email protected]>

* Fix format

Signed-off-by: Daniel Ruano <[email protected]>

---------

Signed-off-by: Daniel Ruano <[email protected]>
Signed-off-by: druanoor <[email protected]>
Co-authored-by: Suraj Nath <[email protected]>
Signed-off-by: Arash Hatami <[email protected]>
SuperQ added a commit that referenced this pull request Apr 9, 2024
* [FEATURE] Allow to get Probe logs by target #1063
* [FEATURE] Log errors from probe #1091
* [BUGFIX] Prevent logging confusing error message #1059
* [BUGFIX] Explicit registration of internal exporter metrics 1060

Signed-off-by: SuperQ <[email protected]>
@SuperQ SuperQ mentioned this pull request Apr 9, 2024
SuperQ added a commit that referenced this pull request Apr 9, 2024
* [FEATURE] Allow to get Probe logs by target #1063
* [FEATURE] Log errors from probe #1091
* [BUGFIX] Prevent logging confusing error message #1059
* [BUGFIX] Explicit registration of internal exporter metrics 1060

Signed-off-by: SuperQ <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support to retrieve logs from and endpoint based on the target instead of the id
3 participants