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

Log errors from probe #1091

Merged
merged 3 commits into from Jul 22, 2023
Merged

Conversation

jkroepke
Copy link
Contributor

@jkroepke jkroepke commented Jul 1, 2023

This PR adds a flag --log.prober which can be one of: [debug, info, warn, error, none] to investigate probe failures port-mortem. this flag defaults to none.

At the moment, this analyse problems is only possible via Web UI with an large enough history. Access the unprotected web ui can be difficult and the probe history is only available until restart.

Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
SuperQ
SuperQ previously requested changes Jul 1, 2023
main.go Outdated Show resolved Hide resolved
Co-authored-by: Ben Kochie <superq@gmail.com>
Signed-off-by: Jan-Otto Kröpke <github@jkroepke.de>
@jkroepke jkroepke requested a review from SuperQ July 1, 2023 21:47
@jkroepke
Copy link
Contributor Author

@electron0zero Could you please also take a look here?

prober/handler.go Outdated Show resolved Hide resolved
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
Copy link
Member

@electron0zero electron0zero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, will wait for @roidelapluie or @mem to take a look and approve :)

@jkroepke
Copy link
Contributor Author

@electron0zero @roidelapluie or @mem How we can proceed here?

@electron0zero
Copy link
Member

assuming that there are no comments or feedback from other maintainers, I am going to go ahead and merge it.

@electron0zero electron0zero dismissed SuperQ’s stale review July 22, 2023 16:39

change addressed.

@electron0zero electron0zero merged commit c908cba into prometheus:master Jul 22, 2023
5 checks passed
@jkroepke jkroepke deleted the log-probe-errors branch July 22, 2023 17:15
hatamiarash7 pushed a commit to hatamiarash7/blackbox_exporter that referenced this pull request Aug 27, 2023
* Log errors from probe

Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>

* Update main.go

Co-authored-by: Ben Kochie <superq@gmail.com>
Signed-off-by: Jan-Otto Kröpke <github@jkroepke.de>

* Implement --log.prober

Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>

---------

Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
Signed-off-by: Jan-Otto Kröpke <github@jkroepke.de>
Co-authored-by: Ben Kochie <superq@gmail.com>
Signed-off-by: Arash Hatami <hatamiarash7@gmail.com>
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 <superq@gmail.com>
@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 <superq@gmail.com>
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.

None yet

3 participants