kube-prometheus icon indicating copy to clipboard operation
kube-prometheus copied to clipboard

Grafana alert-rules provisioning

Open ajiteb opened this issue 2 years ago • 1 comments

What is missing? Is there a way to provision Grafana alert rules just like dashboards?

  • kube-prometheus version:

    latest

Anything else we need to know?:

ajiteb avatar Mar 07 '22 15:03 ajiteb

As per https://grafana.com/blog/2022/08/25/new-in-grafana-alerting-file-provisioning/, they recently added this feature. Made the below change to try it out.

image

As of now, I can see the /etc/grafana/provisioning/alerting folder being created after the Grafana pod comes up, but using the template/example from https://github.com/grafana/helm-charts/blob/main/charts/grafana/values.yaml#L516 the alert was not provisioned.

Tried using the extraConfigmap option as well, but that did not work too. If making the image change, and adding your template worked, please share it here for reference.

Cheers.

jehanjazz-1 avatar Sep 04 '22 17:09 jehanjazz-1