All Apps and Add-ons

Get input from the query for horsemeter max value

New Member

I have a requirement to have a horseshoe meter in my splunk xml dashboard. But I don't know , how to dynamically change its max value .

<viz type="horseshoe_meter_app.horseshoe_meter">
                    <query>index=*** source=*** |spath path=testLog.appName output=appName|spath path=testLog.payload.sourceCount output=sourceCount|spath path=testLog.payload.publishedCount output=publishedCount |stats sum(sourceCount) as totalSource sum(publishedCount) as totalPublished </query>
                <option name="horseshoe_meter_app.horseshoe_meter.maxValue">1000</option>
                <option name="horseshoe_meter_app.horseshoe_meter.minValue">0</option>
                <option name="horseshoe_meter_app.horseshoe_meter.useRangemap">true</option>
                <option name="horseshoe_meter_app.horseshoe_meter.valueColor">#555</option>
                <option name="horseshoe_meter_app.horseshoe_meter.dialColor">#d0d5d9</option>
                <option name="horseshoe_meter_app.horseshoe_meter.backgroundColor">#FFF</option>
                <option name="horseshoe_meter_app.horseshoe_meter.thresholdStyle">percentage</option>
                <option name="horseshoe_meter_app.horseshoe_meter.minRangeColor">#3fc77a</option>
                <option name="horseshoe_meter_app.horseshoe_meter.midRangeThreshold">55</option>
                <option name="horseshoe_meter_app.horseshoe_meter.midRangeColor">#fbcd2f</option>
                <option name="horseshoe_meter_app.horseshoe_meter.maxRangeThreshold">80</option>
                <option name="horseshoe_meter_app.horseshoe_meter.maxRangeColor">#b44441</option>

I want something like:

<option name="horseshoe_meter_app.horseshoe_meter.maxValue">$totalSource$</option>

and the chart should be based on totalPublished and the max range should be totalSource . Can anyone please help me to have this.

0 Karma

Esteemed Legend

Click on Edit on the dashboard, click the Format visualization paintbrush icon on the panel, click Color ranges, click Manual, it should be obvious from there.

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In the last month, the Splunk Threat Research Team (STRT) has had 2 releases of new security content via the ...

Announcing the 1st Round Champion’s Tribute Winners of the Great Resilience Quest

We are happy to announce the 20 lucky questers who are selected to be the first round of Champion's Tribute ...

We’ve Got Education Validation!

Are you feeling it? All the career-boosting benefits of up-skilling with Splunk? It’s not just a feeling, it's ...