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

fix: dont reset counters & durations after each scrape #216

Merged
merged 1 commit into from
Jul 6, 2023

Conversation

olizilla
Copy link
Contributor

@olizilla olizilla commented Jul 6, 2023

prom counters are up only. we should not be resetting them after each scrape.

duration histograms are also designed to accumulate information over time, they should not need to be reset either.

fixes: elastic-ipfs/elastic-ipfs#35

License: MIT

prom counters are _up_ only. we should not be resetting them after each scrape.

duration histograms are also designed to accumulate information over time, they should not need to be reset either.

fixes: elastic-ipfs/elastic-ipfs#35

License: MIT
Signed-off-by: Oli Evans <oli@protocol.ai>
@olizilla olizilla merged commit 4101994 into main Jul 6, 2023
@olizilla olizilla deleted the no-counter-reset branch July 6, 2023 13:45
olizilla added a commit to elastic-ipfs/bitswap-peer-deployment that referenced this pull request Jul 6, 2023
see: elastic-ipfs/bitswap-peer#216

License: MIT
Signed-off-by: Oli Evans <oli@protocol.ai>
olizilla added a commit to elastic-ipfs/bitswap-peer-deployment that referenced this pull request Jul 6, 2023
see: elastic-ipfs/bitswap-peer#216

License: MIT

Signed-off-by: Oli Evans <oli@protocol.ai>
@olizilla
Copy link
Contributor Author

olizilla commented Jul 6, 2023

Counters now go up!
Screenshot 2023-07-06 at 15 36 30

olizilla added a commit to elastic-ipfs/bitswap-peer-deployment that referenced this pull request Jul 6, 2023
see: elastic-ipfs/bitswap-peer#216


License: MIT

Signed-off-by: Oli Evans <oli@protocol.ai>
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.

Dont reset prometheus counters on each scrape
2 participants