prometheus/cmd/prometheus
beorn7 0f3c1bf6cf Report valid configs in the respective metrics from the beginning
In #7399, an early validity check of the config was introduced to
prevent the scenario where an invalid config is only detected after a
possibly very long startup procedure. However, the respective success
metrics are not updated after the initial validation so that the
success metrics suggest an invalid config. If the startup procedure,
like replaying the WAL, really takes very long, alerts about invalid
config will trigger.

This commit sets the succes metrics after initial validation. They
will be set again after the "real" config (re-)load, but that
shouldn't be a problem. The metric now truthfully represents whenever
the config was successfully loaded, no matter if the result was then
thrown away (because it was just for validation) or actually used.

Signed-off-by: beorn7 <beorn@grafana.com>
2020-10-12 21:30:59 +02:00
..
testdata
main.go Report valid configs in the respective metrics from the beginning 2020-10-12 21:30:59 +02:00
main_test.go Add context to Appender interface 2020-07-24 19:40:51 +05:30
main_unix_test.go Add windows tests for query logger (#6653) 2020-01-20 13:17:11 +00:00
query_log_test.go M-map full chunks of Head from disk (#6679) 2020-05-06 21:00:00 +05:30