Dashboards & Visualizations

Single Values - Rangemap and displaying original field value

mcwomble
Path Finder

Hi,

With the following code in a dashboard I can get the background of a single value to change depending on the range of a field. However the value within the single value box also changes to the value of the ranges i.e low, severe, good. How can I keep the single value as the original numeric value and still retain the color coding?

<searchString>midas tablespace| table DATA_STAGE_percentage_used | rangemap field=DATA_STAGE_percentage_used low=0-89 severe=95-100 elevated=90-94</searchString>
      <title>Tablespace DATA_STAGE Percentage Used</title>
      <option name="classField">range</option>
      <earliestTime>-1h</earliestTime>

Thanks

Tags (1)
0 Karma
1 Solution

ziegfried
Influencer

You have to define the "field" option for the SingleValue module.

...
<option name="classField">range</option>
<option name="field">DATA_STAGE_percentage_used</option>
...

View solution in original post

ziegfried
Influencer

You have to define the "field" option for the SingleValue module.

...
<option name="classField">range</option>
<option name="field">DATA_STAGE_percentage_used</option>
...
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 ...