grafana/cortex-jsonnet

CortexQuerierHighRefetchRate will not fire

bboreham opened this issue · 2 comments

This line:

sum by(namespace) (rate(cortex_querier_storegateway_refetches_per_query_bucket{le="0"}[5m]))

will fail with newer versions of the Prometheus client library that are OpenMetrics-compatible.
"0" is now written "0.0".

Since nothing now matches that label, the query returns nothing and the alert will never fire.

Thanks Bryan for spotting it! Does #268 looks good to you or is there a better way to fix it?

I just changed it to ="0.0" in my version.