canonical / grafana-k8s-operator

https://charmhub.io/grafana-k8s
Apache License 2.0
6 stars 22 forks source link

"HTTP Request Durations" panel in grafana-operator-overview has"No data" because of `$__interval` #321

Open nobuto-m opened 5 months ago

nobuto-m commented 5 months ago

Bug Description

Screenshot 2024-04-10 at 23-14-27 Grafana Operator Overview - Dashboards - Grafana

https://github.com/canonical/grafana-k8s-operator/blob/3a0706a27827eef2f2ac71cb59b3f30165abfd98/src/self_dashboard.json#L962

By changing the query to use $__rate_interval, it shows some data.

Screenshot 2024-04-10 at 23-20-46 Explore - juju_cos_c9251935-60a3-4682-8a3b-276834f652ba_prometheus_0 - Grafana

To Reproduce

  1. juju deploy cos-lite --trust --channel latest/edge
  2. open the grafana dashboard

Environment

App           Version  Status  Scale  Charm             Channel      Rev
alertmanager  0.27.0   active      1  alertmanager-k8s  latest/edge  107
catalogue              active      1  catalogue-k8s     latest/edge   34
grafana       9.5.3    active      1  grafana-k8s       latest/edge  109
loki          2.9.5    active      1  loki-k8s          latest/edge  128
prometheus    2.50.1   active      1  prometheus-k8s    latest/edge  174
traefik       v2.11.0  active      1  traefik-k8s       latest/edge  177

Relevant log output

N/A

Additional context

No response

nobuto-m commented 5 months ago

Upstream uses $__rate_interval fwiw. https://github.com/grafana/grafana/blob/8f5839fe8ff5ae4e5f3f08f055fe8c788b8ed42c/grafana-mixin/dashboards/grafana-overview.json#L369-L391