如何解决Prometheus Alerting Expression可检测到过去10分钟内现有时间序列或新时间序列没有变化
我创建了一个Grafana仪表板,在其中可以绘制带有动态标签集的时间序列数据。
For Ex: At time t0,we can have time series T0 with counter value as 2
At time t1,we can have time series T0 with counter value as 4 and a new time series T1
with counter value as 5
现在,我想配置警报,以便可以检测最近10分钟内是否没有新的时间序列,或者最近10分钟内现有时间序列是否没有变化。
我已经写了下面的PromQL表达式,但是它不能按预期工作。
metric_name{CustomLabel="t0label"} offset 10m unless on (CustomLabel1,CustomLabel2,CustomLabel3) metric_name{CustomLabel="t0label"}
任何帮助将不胜感激。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。