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

Add http failure reason metric #1077 #1139

Closed
wants to merge 4 commits into from

Conversation

domcyrus
Copy link

Adds probe_http_failures_total metric implementing feature for #1077 . This couter type metric provides the reason of http probe failures.

For example:

probe_http_failures_total{reason="dns_not_found"}
probe_http_failures_total{reason="request_creation_error"}
probe_http_failures_total{reason="request_get_timeout"}
...

Marco Cadetg added 2 commits October 23, 2023 09:49
Signed-off-by: Marco Cadetg <marco.cadetg@amazee.io>
Signed-off-by: Marco Cadetg <marco.cadetg@amazee.io>
@domcyrus domcyrus force-pushed the http-failure-reason branch from 50f7385 to 20c9214 Compare October 23, 2023 07:50
Marco Cadetg added 2 commits October 23, 2023 10:24
Signed-off-by: Marco Cadetg <marco.cadetg@amazee.io>
Signed-off-by: Marco Cadetg <marco.cadetg@amazee.io>
@github-actions github-actions bot added the stale label Sep 18, 2024
@domcyrus domcyrus closed this Nov 21, 2024
@slrtbtfs
Copy link

slrtbtfs commented Dec 3, 2024

Hi, first of all thanks for this PR!

May i ask why this PR introduces a global probe_http_failures_total metric instead of the per-probe probe_http_failure_reason metric proposed by #1077 ?

The latter seems like a better fit for the underlying issue to me.

(To avoid confusion: I'm not a maintainer, just someone who would like to use this feature.)

@domcyrus
Copy link
Author

domcyrus commented Dec 4, 2024

Hi, first of all thanks for this PR!

May i ask why this PR introduces a global probe_http_failures_total metric instead of the per-probe probe_http_failure_reason metric proposed by #1077 ?

The latter seems like a better fit for the underlying issue to me.

(To avoid confusion: I'm not a maintainer, just someone who would like to use this feature.)

@slrtbtfs Yes, looking at this again I also do think that we don't need to introduce a new global metric per-probe. Regarding the metric name in #1077 @SuperQ proposed to use probe_failure_info.

@slrtbtfs
Copy link

slrtbtfs commented Dec 4, 2024

Ok, if you don’t mind, I’ll try to come up with a new PR using probe_failure_info instead then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants