prometheus - 如何计算 Prometheus Grafana 中的正常运行时间百分比或停机时间百分比

标签 prometheus grafana metrics micrometer

如何使用下面的查询 process_uptime_seconds{application="$application", instance="$instance", job!="jobid"}

最佳答案

对于 up 你能做这样的事情吗?

(1 - avg_over_time(up[1d])) * 86400

这会给你过去一天的秒数。

关于prometheus - 如何计算 Prometheus Grafana 中的正常运行时间百分比或停机时间百分比,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61831380/

相关文章:

python - Grafana:简单的json数据源实现

python-requests - 无法使用 Python3 模块请求 POST 到 Grafana

Spring Boot Actuator 'http.server.requests' 公制 MAX 时间

python.NLTK(WindowDiff 和 PK)与 python.Segeval(WindowDiff 和 PK)

prometheus - 普罗米修斯配置中面临的问题

mongodb - 使用 Prometheus 和 Grafana 监控 MongoDb

api - 如何在客户端 javascript 中使用 Grafana Http API

java - Codahale 指标和 Dropwizard 指标之间的区别

kubernetes - 普罗米修斯 - Kubernetes RBAC

csv - 使用Prometheus读取csv文件