简体   繁体   中英

Why Prometheus does not raise error on invisible metric?

We have a custom metric that gets exported only upon some error condition in app

Alert rule use that custom metric that gets registered with rule manager of Prometheus

Why Prometheus does not raise error, when this metric name is queried? Despite the metric is not available in Prometheus yet...

It seems correct that the absence of a signal is not treated as an error.

However, it can cause problems with dashboards and alerting.

See this presentation by one of Prometheus' creators: Best Practices & Beastly Pitfalls

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM