本文介绍了用于0和1值的Grafana Singlestat面板颜色阈值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Grafana仪表板上有一个singlestat面板,用于显示系统是UP还是DOWN.它的来源是01,我为此简单地使用了值映射.

I have a singlestat panel on my Grafana dashboard that shows wether a system is UP or DOWN. Its source is 0 and 1 and I simply used the value mappings for that.

现在,我希望"UP"显示为绿色,而"DOWN"显示为红色,但是在定义阈值时遇到问题.

Now I want "UP" to appear in green and "DOWN" to appear in red but I have problems defining the threshold.

我尝试了0:10.1:0.90,1:0,9,但没有一个起作用.

I tried 0:1, 0.1:0.9, and 0,1:0,9 but none of that works.

推荐答案

发现了它:0.1,1具有反色.

这篇关于用于0和1值的Grafana Singlestat面板颜色阈值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-17 00:22