Skip to content
New issue

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

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

Already on GitHub? # to your account

stats: do not allow resetting Prometheus metrics #370

Merged
merged 2 commits into from
Nov 8, 2024

Conversation

MrAnno
Copy link
Member

@MrAnno MrAnno commented Nov 8, 2024

AxoSyslog now has a lot of gauge metrics, which should not be reset. Instead of implementing metric typing support and filtering based on that, this patch disallows the reset mechanism for all new metrics, since resetting anything sent to Prometheus does not make sense.

(The patch keeps the original behavior for legacy stats counters.)

pepov
pepov previously approved these changes Nov 8, 2024
alltilla
alltilla previously approved these changes Nov 8, 2024
AxoSyslog now has a lot of gauge metrics, which should not be reset.
Instead of implementing metric typing support and filtering based on that,
this patch disallows the reset mechanism for all new metrics, since
resetting anything sent to Prometheus does not make sense.

Signed-off-by: László Várady <laszlo.varady@anno.io>
@MrAnno MrAnno dismissed stale reviews from alltilla and pepov via 585bcf8 November 8, 2024 10:43
@MrAnno MrAnno force-pushed the do-not-reset-new-metrics branch from f09d0a2 to 585bcf8 Compare November 8, 2024 10:43
alltilla
alltilla previously approved these changes Nov 8, 2024
Signed-off-by: László Várady <laszlo.varady@anno.io>
@alltilla alltilla merged commit e4f1723 into axoflow:main Nov 8, 2024
22 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants