Hello all,
I have the following recording rule:
record: istio_slo:error_rate:ratio_rate2w
expr: |
sum(rate(istio_requests_total{destination_app!="unknown",
response_code=~"5.*"}[2w]))
by (destination_service_namespace, destination_app,
destination_service_name)
/
sum(rate(istio_requests_total{destination_app!="unknown"}[2w]))
by (destination_service_namespace, destination_app,
destination_service_name)
If I run manually the query inside the recording rule, I get a result
different from the one returned by the recording rule itself:
[image: Screenshot 2020-02-26 at 18.08.00.png]
Here is how I use the recording rule (in Grafana):
istio_slo:error_rate:ratio_rate2w{destination_service_namespace="$namespace",
destination_app="$app", destination_service_name=~"$service"}
And the query:
sum(rate(istio_requests_total{destination_service_namespace="$namespace",
destination_app="$app", destination_service_name=~"$service",
response_code=~"5.*"}[2w]))
/
sum(rate(istio_requests_total{destination_service_namespace="$namespace",
destination_app="$app", destination_service_name=~"$service"}[2w]))
How would you explain such difference between results?
Thanks,
Have a nice day.
--
<https://www.facebook.com/hellofreshde>
<https://www.pinterest.de/hellofreshde/>
<https://www.instagram.com/hellofreshde/> <https://blog.hellofresh.de/>
<https://app.adjust.com/ayje08?campaign=Hellofresh&deep_link=hellofresh%3A%2F%2F&post_deep_link=https%3A%2F%2Fwww.hellofresh.com%2Fapp%2F%3Futm_medium%3Demail%26utm_source%3Demail_signature&fallback=https%3A%2F%2Fwww.hellofresh.com%2Fapp%2F%3Futm_medium%3Demail%26utm_source%3Demail_signature>
HelloFresh App –
Download Now!
<https://app.adjust.com/ayje08?campaign=Hellofresh&deep_link=hellofresh%3A%2F%2F&post_deep_link=https%3A%2F%2Fwww.hellofresh.com%2Fapp%2F%3Futm_medium%3Demail%26utm_source%3Demail_signature&fallback=https%3A%2F%2Fwww.hellofresh.com%2Fapp%2F%3Futm_medium%3Demail%26utm_source%3Demail_signature>
*We're active in:*
US
<https://www.hellofresh.com/?utm_medium=email&utm_source=email_signature> |
DE <https://www.hellofresh.de/?utm_medium=email&utm_source=email_signature>
| UK
<https://www.hellofresh.co.uk/?utm_medium=email&utm_source=email_signature>
| NL
<https://www.hellofresh.nl/?utm_medium=email&utm_source=email_signature> |
AU
<https://www.hellofresh.com.au/?utm_medium=email&utm_source=email_signature>
| BE
<https://www.hellofresh.be/?utm_medium=email&utm_source=email_signature> |
AT <https://www.hellofresh.at/?utm_medium=email&utm_source=email_signature>
| CH
<https://www.hellofresh.ch/?utm_medium=email&utm_source=email_signature> |
CA <https://www.hellofresh.ca/?utm_medium=email&utm_source=email_signature>
| LU
<https://www.hellofresh.lu/?utm_medium=email&utm_source=email_signature> |
NZ
<https://www.hellofresh.co.nz/?utm_medium=email&utm_source=email_signature>
| SE
<https://www.hellofresh.se/?utm_medium=email&utm_source=email_signature>
www.HelloFreshGroup.com
<https://www.hellofreshgroup.com/?utm_medium=email&utm_source=email_signature>
We are hiring around the world – Click here to join us
<https://www.hellofresh.com/jobs/?utm_medium=email&utm_source=email_signature>
--
<https://www.hellofresh.com/jobs/?utm_medium=email&utm_source=email_signature>
HelloFresh SE, Berlin (Sitz der Gesellschaft) | Vorstände: Dominik S.
Richter (Vorsitzender), Thomas W. Griesel, Christian Gärtner, Edward Boyes
| Vorsitzender des Aufsichtsrats: Jeffrey Lieberman | Eingetragen beim
Amtsgericht Charlottenburg, HRB 182382 B | USt-Id Nr.: DE 302210417
*CONFIDENTIALITY NOTICE:* This message (including any attachments) is
confidential and may be privileged. It may be read, copied and used only by
the intended recipient. If you have received it in error please contact the
sender (by return e-mail) immediately and delete this message. Any
unauthorized use or dissemination of this message in whole or in parts is
strictly prohibited.
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/e1735512-aef2-40a4-8bc0-3ab6d13fb9d1%40googlegroups.com.