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

Change metric type from Gauge to Counter #569

Merged
merged 5 commits into from
May 14, 2021

Conversation

scruplelesswizard
Copy link
Contributor

Currently the metrics leveraged are of a gauge type, even though they are presenting counter data (monotonically increasing values) which can then have the family of rate() functions applied to extract instantaneous and trend data.

gorush/metrics.go Outdated Show resolved Hide resolved
@scruplelesswizard scruplelesswizard marked this pull request as ready for review May 11, 2021 18:12
@appleboy
Copy link
Owner

@appleboy appleboy merged commit 1c21eb8 into appleboy:master May 14, 2021
@appleboy
Copy link
Owner

@chaosaffe THanks.

@scruplelesswizard scruplelesswizard deleted the bugfix/fix-metric-types branch May 17, 2021 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants