Hello all,
I’m trying to get Loki Ruler to work with Grafana.
Everything running in Kubernetes
Loki version 2.8.2 in namespace loki
Grafana version 9.5.5 in namespace grafana
Loki Ruler config
ruler:
alertmanager_url: http://alertmanager-main.monitoring:9093
ring:
kvstore:
store: memberlist
rule_path: /tmp/loki/scratch
storage:
s3:
bucketnames: my-bucket
insecure: false
region: my-region
s3: s3://my-region
s3forcepathstyle: false
enable_api: true
I can curl the Loki Ruler API from the grafana
namespace
# curl http://loki-distributed-ruler.loki:3100/loki/api/v1/rules
no rule groups found
The Loki datasource in Grafana is using http://loki-distributed-query-frontend.loki:3100
.
I have enabled Manage alerts via Alerting UI
How is Grafana supposed to know the URL of Loki Ruler?