Dashboards & Visualizations

Advanced XML context for radialGauge formatting

Yorokobi
SplunkTrust
SplunkTrust

I have the following entry in one of my advanced XML views/dashboards

        <module name="HiddenSearch" autoRun="True">
            <param name="search">index=jmx tag=AMQ | stats max(QueueSize) as maxqSize | chart eval(round(avg(maxqSize),0)) as qsize | rangemap field=qsize low=0-5000 elevated=5001-10000 default=severe</param>
            <param name="earliest">-5m@m</param>
            <param name="latest">now</param>
            <module name="SingleValue">
                <param name="field">qsize</param>
                <param name="beforeLabel">Avg. Queue Size:</param>
                <param name="classField">range</param>
            </module>
        </module>

I would like to convert the SingleValue/rangemap to a radialGauge but I am unable to determine the proper context for:

<param name="charting.chart">radialGauge</param>
<param name="charting.chart.rangeValues">[0,5000,10000,15000,20000]</param>

... and use the same "earliest" and "latest" or real-time search parameters. The chart formatter modules do not seem to support radialGauge.

0 Karma
1 Solution

emiller42
Motivator

Try something like this inside your hidden search module.

<module name="HiddenChartFormatter">
  <param name="charting.chart">radialGauge</param>
  <param name="charting.chart.rangeValues">[0,5000.10000.15000.20000]</param>
  <module name="FlashChart" />
</module>

View solution in original post

0 Karma

Yorokobi
SplunkTrust
SplunkTrust

With a couple of edits (FlashChart instead of flashChart) it works, now I just have to change its default size.

Thank you!

emiller42
Motivator

Updated my response with proper casing. Glad it helped!

emiller42
Motivator

Try something like this inside your hidden search module.

<module name="HiddenChartFormatter">
  <param name="charting.chart">radialGauge</param>
  <param name="charting.chart.rangeValues">[0,5000.10000.15000.20000]</param>
  <module name="FlashChart" />
</module>
0 Karma
Get Updates on the Splunk Community!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...