Skip to content

Make translog_size_in_bytes a gauge #743

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

Merged
merged 1 commit into from
Oct 15, 2023

Conversation

devoxel
Copy link
Contributor

@devoxel devoxel commented Jul 2, 2023

Grafana (and probably other tools) likes to encourage you to take rates of counters. However, In this case, it's invalid; translog_size_in_bytes does not only go up.

image

Using rate on this metric will likely lead to very wrong dashboards. rate() documentation includes a note: "rate should only be used with counters and native histograms where the components behave like counters"

I didn't check if other metrics have this property. Maybe there should be some effort to remove any instances where this happens?


I made this change with the github editor (because it's so minor) but that means I haven't run any tests. Is that OK?

@sysadmind sysadmind merged commit a09cf6d into prometheus-community:master Oct 15, 2023
@devoxel devoxel deleted the patch-1 branch November 4, 2023 16:00
jaimeyh pushed a commit to sysdiglabs/elasticsearch_exporter that referenced this pull request Jun 14, 2024
jaimeyh added a commit to sysdiglabs/elasticsearch_exporter that referenced this pull request Jun 14, 2024
jaimeyh added a commit to sysdiglabs/elasticsearch_exporter that referenced this pull request Jun 14, 2024
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.

2 participants