Splunk Search

Having a % to follow number on gauge chart

pglover12
New Member

Current:
| search MachineNumber="01"
| eval PercentComplete= round(((CountSinceLastTaskCompletion)/MaintenanceFrequencyValue)*100,0)
| chart First(PercentComplete) as PercentComplete by MaintenanceTaskName
-15m
now
1

ellipsisNone
0
collapsed
collapsed
collapsed
none
linear
none
linear
none
0
inherit
radialGauge
50
10
area
gaps
[0,80,90,100,110]
none
0.01
default
shiny
["0x53a051","0xf8be34","0xf1813f","0xdc4e41"]
0
0
ellipsisMiddle
standard
none
2
324
1
1
small

Tags (1)
0 Karma

niketn
Legend

@pglover12 while posting code or data on Splunk Answers make sure you use the code button i.e. 101010 or shortcut Ctrl+K so that special characters do not escape.

Based on the issue description if you want to add % to Radial Gauge please refer to my older answer which does this using Simple XML JS Extension and SplunkJS stack: https://answers.splunk.com/answers/717431/how-can-i-add-a-percentage-sign-to-the-radial-gaug.html

alt text

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...