Developement/Splunk
chart에서 임계치 이상 부분에서 다른 color적용
highheat
2021. 8. 17. 16:14
<query>
index=main collection="CPU Load" | stats last(Value) AS CPU by _time| sort - _time
| eval 임계치=30
| eval Threshold_Color=case(CPU>=20,"Warning",true(), "Normal")
| xyseries _time Threshold_Color CPU
</query>
...
<option name="charting.fieldColors">{"Warning":0xFF0000,"Normal":0x53A051"}</option>