简体   繁体   English

为什么 Prometheus 不会在不可见指标上引发错误?

[英]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警报规则使用在 Prometheus 的规则管理器中注册的自定义指标

Why Prometheus does not raise error, when this metric name is queried?查询此指标名称时,为什么 Prometheus 不会引发错误? Despite the metric is not available in Prometheus yet...尽管该指标在 Prometheus 中尚不可用......

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请参阅 Prometheus 的一位创作者的演示文稿: 最佳实践和野兽陷阱

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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