Conversation
The notErrorSelector allows using the latency burn function for metrics other than those that have errors defined as not 5xx.
Reading and understanding the code was very difficult as the parameters had to be counted, now it's much easier to reason about.
|
Regarding the last one, I can't help but wonder that there must be a better way to do this than requiring the exact histogram bucket to be present. |
|
Somewhat related, is it really correct to compare non-errors with all requests here? Isn't the point that we exclude any sort of errors? |
metalmatze
left a comment
There was a problem hiding this comment.
Simple and straight forward! 💯
Thanks!
That's probably something that should be taken care of outside of this slo-libsonnet? Something generating rules with this library can check for different buckets and then suggest them. |
|
I think that would help, but if it could be generic to the chosen buckets (and there are investigations of dynamic bucketing) then that would be even better. I'll open an issue to investigate and see if we could find something. |
This PR has 3 changes:
The notErrorSelector allows using the latency burn function for metrics
other than those that have errors defined as not 5xx.
Reading and understanding the code was very difficult as the parameters
had to be counted, now it's much easier to reason about.
@metalmatze
If I'm not mistaken then this should largely solve #15