grafana做状态变化的监控图表

本例 数据源采用prometheus

grafana版本为11.2.0

有一个服务的的状态是变化的,需要监控起来,比如含有状态:ok, unavail, close_Adm等状态,但是prometheus只能存数字值,在grafana只显示的时候数字值又看着不是很方便,这里就就简单操作一下grafana怎么做数字和状态字符串的映射。先上效果图:

实现步骤

在面板里面新增视图

选择数据源和指标

在面板右侧选择state timeline

color scheme选择single color

做状态数值和名称的映射,这是关键步骤

最后成品

相关推荐
goodlook01231 天前
监控平台搭建-日志-alloy篇(八)
grafana·prometheus
goodlook01232 天前
监控平台搭建-日志-springboot直接推送loki篇(九)
java·spring boot·后端·grafana
新钛云服2 天前
Grafana Polystat面板与腾讯云可观测平台的深度融合实践
大数据·云计算·腾讯云·grafana
flying robot3 天前
Prometheus[2.33.3]grafana[12.3.1]监控安装
grafana·prometheus
flying robot3 天前
Grafana对xx-export监控和AlertManager 告警
grafana
一只懒鱼a5 天前
Prometheus和Grafana的安装和使用
grafana·prometheus
YanDDDeat5 天前
Prometheus + Grafana 搭建应用监控体系
java·后端·eureka·grafana·prometheus
goodlook01236 天前
监控平台搭建-日志-loki篇-最新版3.6.3(七)
服务器·grafana·prometheus
世界尽头与你6 天前
CVE-2025-4123_ Grafana 安全漏洞
安全·网络安全·渗透测试·grafana
A-刘晨阳6 天前
【云原生】PromQL 常用内置指标
云原生·grafana·prometheus·promql