Hello,
I have installed prometheus and grafana through helm chart of kube-prometheus-stuck and im adding all the alerting rules in values.yml file
My rule for example looks like this:
additionalPrometheusRulesMap:
rule-name:
groups:
- name: my_group
rules:
- alert: TargetMissing
expr: up == 0
for: 1m
labels:
severity: critical
annotations:
description: ‘(instance {{ $labels.instance }}) has been down for more than 1 minutes.’
summary: ‘Instance {{ $labels.instance }} down’
The problem is in my grafana ui all the rules are registered under “mirmir/cortex/loki” and not under “Grafana” and i only have prometheus datasource that is under the Grafana -
All the rules that is not under Grafana does not send any slack notifications, because i dont have any loki cortex or mirmir datasource…
is there a way to set from yaml the roles to register under the grafana?
Or is my only option is to setup loki?
I want my yaml rules to be registered under grafana and havent find a way, im now looking into how to install loki to my system though a loki chart but there is not really a lot of docs
Please help