Skip to content

Question: metrics initialisation in Prometheus-exporter #376

Closed Answered by tobz
lswith asked this question in Q&A
Discussion options

You must be logged in to vote

If I have registered a counter, does it get set to 0 until incremented? Or does it simply not get set to 0?

Counters start life at a zero value, yes.

I'm hoping I can also remove the idleTimeout so that even stale metrics get reported consistently.

There's no idle timeout by default, so just... don't set it. :)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tobz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #375 on May 30, 2023 12:25.