Currently for the ruler external_url I tried putting in the URL of our Grafana installation: e.g. external_url: "https://grafana.example.com".
This bubbled through to alertmanager so that the "Source" link leads to https://grafana.example.com/graph?g0.expr=%28sum+by%28thing%29%28count_over_time%28%7Bnamespace%3D%22foo%22%7D+%7C+json+%7C+bar%3D%22maxRetries%22%5B5m%5D%29%29+%3E+0%29&g0.tab=1, which isn't valid.
This url templating (via "/graph?g0.expr=%s&g0.tab=1") appears to be coming via TableLinkForExpression in vendor/github.com/prometheus/prometheus/util/strutil/strconv.go.
I don't think this url format makes any sense for Loki ruler alerts.
--> What should be in the the external_url field?
My first thought is that it should bring up the Grafana Explore view.
Currently for the ruler
external_urlI tried putting in the URL of our Grafana installation: e.g.external_url: "https://grafana.example.com".This bubbled through to alertmanager so that the "Source" link leads to
https://grafana.example.com/graph?g0.expr=%28sum+by%28thing%29%28count_over_time%28%7Bnamespace%3D%22foo%22%7D+%7C+json+%7C+bar%3D%22maxRetries%22%5B5m%5D%29%29+%3E+0%29&g0.tab=1, which isn't valid.This url templating (via
"/graph?g0.expr=%s&g0.tab=1") appears to be coming viaTableLinkForExpressionin vendor/github.com/prometheus/prometheus/util/strutil/strconv.go.I don't think this url format makes any sense for Loki ruler alerts.
--> What should be in the the
external_urlfield?My first thought is that it should bring up the Grafana Explore view.