3
votes

I have configured Prometheus via helm chart https://github.com/helm/charts/tree/master/stable/prometheus-operator I need to update Prometheus rules and configuration on the fly (hot-reload) but for some reason, it's not working.

I tried to edit the cofigmap for Prometheus rules but the changes are reverted as soon as I save the changes. I have tried deleting the Prometheus configmap, it get's regenerated instantly. I have also attempted to delete Prometheus pod itself but it also gets recreated instantly.

If the custom controller and CRDs are the reason behind this(i.e. rejecting the changes), what's the correct approach to do this?

1

1 Answers

1
votes

It seems that the better way will be using CRD Prometheus Rule Files.

enter image description here

enter image description here