如何在Grafana中显示服务器的时间?

发布于 2025-02-07 19:29:37 字数 124 浏览 2 评论 0原文

我想显示上个月Grafana的服务器(或服务)正常运行时间的百分比。 监视服务通过Prometheus节点出口商收集数据。

uptime % = ( up / down ) * 100

I want to show the percentage of the server (or service) uptime in Grafana for the last month.
The monitoring service collects data with Prometheus node exporter.

uptime % = ( up / down ) * 100

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

巴黎夜雨 2025-02-14 19:29:37

marceloáviladeoliveiraira说我用这个promql:promql:

avg_over_time(probe_success{job="$job",instance=~"$instance"}[30d]) * 100

As MarceloÁviladeOliveira said I used Black-Box Exporter with this PromQL :

avg_over_time(probe_success{job="$job",instance=~"$instance"}[30d]) * 100
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文