query concern #645
Unanswered
vinhnguyen-ct
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
hi All,
I saw that we use error_query and total_query with: sum(rate) function in the template.
My concern that is it right function to use by that I check around that there is another function: sum(increase) is better than to use for count number of request error in a windows time instead calculate the average error rate.
Current: it may calculate a average number of error request and total request in a window time.
error_query: sum(rate(http_request_duration_seconds_count{job="myservice",code=~"(5..|429)"}[{{.window}}]))
total_query: sum(rate(http_request_duration_seconds_count{job="myservice"}[{{.window}}]))
Expect: it's count the number of error request and total request in a windows time.
error_query: sum(increase(http_request_duration_seconds_count{job="myservice",code=~"(5..|429)"}[{{.window}}]))
total_query: sum(increase(http_request_duration_seconds_count{job="myservice"}[{{.window}}]))
Am i correct ? look for idea about this to have a good result about error budget to tracking svc.
Thanks before hand
Beta Was this translation helpful? Give feedback.
All reactions