![](/img/trans.png)
[英]Error query in Grafana/Prometheus with node-exporter in docker swarm mode
[英]Trigger alert in prometheus/grafana for timestamp from node-exporter too old
我們已經運行了node_exporter,並且我正在使用文本文件收集器來放入由作業修改的文件的時間戳。
指標輸出:
# HELP job_timestamp_file Metric read from /usr/local/etc/node_exporter/job-timestamp.prom
# TYPE job_timestamp_file untyped
job_timestamp_file 1.567657381e+09
因此,我們已經成功地將其收集到了普羅米修斯。 我的舞會家伙和我遇到的問題(都是Prometheus和grafana的新手)是如何編寫查詢以觸發警報
當前時間-job_timestamp_file> 86400
似乎真的應該很容易...
time() - job_timestamp_file > 86400
節點導出器還公開了它通過文本文件收集器讀取的文件的mtime。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.