*Empty activeAlertmanagers list after executing reload method (0.001...5 sec)*
1 Run prometheus with params (go run cmd/prometheus/main.go --config.file=config.yaml --web.enable-lifecycle) config.file: ```yaml alerting: alertmanagers: - http_sd_configs: - refresh_interval: 20s url: http://xxx timeout: 1m ``` 2 make request curl -sXPOST http://localhost:9090/-/reload 3 and then you can try to open next url as quickly as possible http://localhost:9090/api/v1/alertmanagers 4 Output will be empty. looks like: ``` { "status": "success", "data": { "activeAlertmanagers": [], "droppedAlertmanagers": [] } } ``` 5 Only after executing a piece of code Prometheus will update the configuration content. refs: https://github.com/prometheus/prometheus/tree/main/notifier/notifier.go#L309 ^ https://github.com/prometheus/prometheus/tree/main/discovery/legacymanager/manager.go#L243 ^ https://github.com/prometheus/prometheus/tree/main/discovery/legacymanager/manager.go#L97 *as a result, prometheus has a time window from 0.0001 to 5 seconds when downtime is possible. How do you cope with such a task?* -- 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 prometheus-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/c2b28d1d-7cad-4950-baba-c07edcb6c13cn%40googlegroups.com.