Skip to content
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

pyrra_errors_total inaccurate in Grafana dashboard #968

Open
jmichalek132 opened this issue Oct 31, 2023 · 0 comments · May be fixed by #969
Open

pyrra_errors_total inaccurate in Grafana dashboard #968

jmichalek132 opened this issue Oct 31, 2023 · 0 comments · May be fixed by #969

Comments

@jmichalek132
Copy link

Hi, I noticed that Errors panel in the grafana dashboard is misleading.

Screenshot 2023-10-31 at 10 49 38

  1. The legend says percentage but it's just showing rate of errors
  2. The recording rule it's pointed is doing sum and in the dashboards we do rate on it after, this will lead to missing counter resets

The recording rule generated for it:

  - expr: sum(grafana_http_request_duration_seconds_count{deployment_environment=~"prod",service_name="grafana",status_code=~"5.*"}
      or vector(0))
    labels:
      owner: op
      slo: grafana-requests-availability
    record: pyrra_errors_total

The query in the panel:

sum(rate(pyrra_errors_total{slo=\"$slo\"}[$__rate_interval]))
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 a pull request may close this issue.

1 participant