Prometheus is deployed in a k8s cluster. I added relabel config to Prometheus Configmap. I tried the reload mechanism, but it hasn't taken effect immediately. - --web.enable-lifecycle has been added to Prometheus deployment yaml file. - curl -X POST http://localhost:9090/-/reload to reload the changes.(how to curl if the connection is with a jumphost?) I checked on the prometheus POD(etc/prometheus/prometheus.yml), it has updated with the latest value. But on Prometheus GUI, it is still the old one.
On Thursday, April 15, 2021 at 3:31:26 PM UTC+8 Stuart Clark wrote: > On 15/04/2021 08:28, nina guo wrote: > > I made some changes on Prometheus Configmap, the only way is to > > restart the POD. But if we restart, the data will be lost totally. So > > is it other way to take Confimap changes effective? -- > > If you have it enabled there is the reload mechanism: > https://prometheus.io/docs/prometheus/latest/management_api/#reload > > -- > Stuart Clark > > -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/d545e235-a638-4cf8-ac5a-6d5a04b3b926n%40googlegroups.com.

