prometheus/cmd/prometheus
Julien 9d9e86b333 Fix auto reload when a config file with a syntax error is reverted
When we had a syntax error but restored the old file, we did not
re-trigger the config reload, so the config reload metric was showing
that config reload was unsucessful.

I made magic to handle logs in cmd/prometheus.

For now it is a separate file so we can backport this easily.

I will generalize the helper in another PR.

Signed-off-by: Julien <roidelapluie@o11y.eu>
2024-11-05 12:43:34 +01:00
..
testdata End-to-end Query Log test (#6600) 2020-01-19 21:56:13 +00:00
main.go Fix auto reload when a config file with a syntax error is reverted 2024-11-05 12:43:34 +01:00
main_test.go test(cmd/prometheus): speed up test execution by t.Parallel() when possible 2024-10-18 17:52:59 +02:00
main_unix_test.go test(cmd/prometheus): speed up test execution by t.Parallel() when possible 2024-10-18 17:52:59 +02:00
query_log_test.go test(cmd/prometheus): speed up test execution by t.Parallel() when possible 2024-10-18 17:52:59 +02:00
reload_test.go Fix auto reload when a config file with a syntax error is reverted 2024-11-05 12:43:34 +01:00
scrape_failure_log_test.go Scrape: Add scrape_failure_log_file to log Scrape Failures 2024-09-05 11:01:40 +02:00