Splunk Dev

How to show thresholds values along with the visualization panel?

pnandhu
New Member

I am using radialGauge to display the metric value and addding thresholds to it. I want to show the threshold values along with the visualization by using CSS, as my organization Splunk team not allowing to add JS code from teams perspective development. Or any visualization to show the single value along with its threshold values showing on the board would help.

Thanks!

 

pnandhu_0-1615412697901.png

 

Labels (1)
0 Karma

carbdb
Explorer

this works for me:

| makeresults count=4 | addinfo | streamstats count as i | eval threshold=if(i<=2,100,500) | eval _time=if(i%2==1,info_min_time,info_max_time) | eval mm=if(i<=2,"low","high")| table _time,threshold,mm| timechart cont=false avg(threshold) by mm

0 Karma

tscroggins
Champion

@pnandhu 

The typical way to convey threshold in gauge charts is through ranges and color coding. For example, to display a gauge with a single "threshold" at 25000 and a maximum value of 50000:

| makeresults
| eval count=30000
| gauge count 0 25000 50000

As you've noted, though, the label doesn't always fall on the threshold. You would need to set ranges with an understanding of how the charting code bins them for display.

In line, area, column, and bar charts, you can use an eval (or any other method) to set a field value for an overlay:

| gentimes start=03/13/2021:00:00:00 increment=1h
| eval _time=starttime
| eval sample=100*random()/2147483647
| timechart span=1h avg(sample) as sample
| eval threshold=90

threshold_one.png

However, single values render as a point rather than a line:

| makeresults
| eval sample=100*random()/2147483647
| eval threshold=90

threshold_two.png

Annotations may be useful, but they only work on a subset of charts.

Can you provide a more detailed mockup of how and where you'd like thresholds to appear?

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Index This | What travels the world but is also stuck in place?

April 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...