Where The Streets Have No Name

chart에서 임계치 이상 부분에서 다른 color적용 본문

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>

 

https://community.splunk.com/t5/Splunk-Search/Column-chart-color-change-if-threshold-is-hit/m-p/432648