-
Notifications
You must be signed in to change notification settings - Fork 114
chore: fix missleading errors total grafana #969
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
base: main
Are you sure you want to change the base?
chore: fix missleading errors total grafana #969
Conversation
examples/grafana/detail.json
Outdated
@@ -529,7 +529,7 @@ | |||
"uid": "${DS_PROMETHEUS}" | |||
}, | |||
"editorMode": "code", | |||
"expr": "sum(rate(pyrra_requests_total{slo=\"$slo\"}[$__rate_interval]))", | |||
"expr": "sum(rate(pyrra_requests:rate5m{slo=\"$slo\"}[$__rate_interval]))", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't make that much sense anymore. Given we already have the :rate5m
we don't need to do anything except pyrra_requests:rate5m{slo=\"$slo\"}
.
I guess we'll lose the flexibility to use rate[$__rate_interval]
but being correct is more important.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could have multiple rate interval pre-computed i.e. rate5m, rate1h, rate1d, how about that?
@@ -598,7 +598,7 @@ | |||
} | |||
] | |||
}, | |||
"unit": "percentunit" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To keep the RED (Requests, Error Rate, Duration) type of panels, how about actually using the error rate percentage?
I'm looking at this again. Given that we do similar things for the other queries, I wonder if we can construct a query (using the I prefer to keep only distinct labels; however, keeping all labels and then later summing them away doesn't seem too bad. |
Simplest, but not necessarily the best way to fix #968 968