Security

show that the utilization rate of CPU can be displayed as the result of the following picture?

flzhang132
Explorer

I want to show that the utilization rate of CPU can be displayed as the result of the following picture?
alt text

Tags (1)
0 Karma

flzhang132
Explorer

you are great man

0 Karma

renjith_nair
Legend

Radial Gauge visualization might fit into your requirement

<dashboard>
  <label>table_color</label>
  <row>
    <panel>
      <chart>
        <search>
          <query>index=_* |stats max(data.pct_cpu) as usage</query>
          <earliest>-15m</earliest>
          <latest>now</latest>
          <sampleRatio>1</sampleRatio>
        </search>
        <option name="charting.chart">radialGauge</option>
        <option name="charting.chart.rangeValues">[0,30,70,100]</option>
        <option name="charting.chart.style">minimal</option>
        <option name="charting.gaugeColors">["0x6cb8ca","0xFFE800","0xBF3030"]</option>
      </chart>
    </panel>
  </row>
</dashboard>
Happy Splunking!
0 Karma

flzhang132
Explorer

but how to put a one line the two graph?

0 Karma

renjith_nair
Legend

By adding multiple panels in the same row, like

<dashboard>
 <label>CPU Utilization</label>
 <row>
   <panel>
     <chart>
       <search>
         <query>index=_* |stats max(data.pct_cpu) as usage</query>
         <earliest>-15m</earliest>
         <latest>now</latest>
         <sampleRatio>1</sampleRatio>
       </search>
       <option name="charting.chart">radialGauge</option>
       <option name="charting.chart.rangeValues">[0,30,70,100]</option>
       <option name="charting.chart.style">minimal</option>
       <option name="charting.gaugeColors">["0x6cb8ca","0xFFE800","0xBF3030"]</option>
     </chart>
   </panel>
   <panel>
     <chart>
       <search>
         <query>index=_* |stats max(data.pct_cpu) as usage</query>
         <earliest>-15m</earliest>
         <latest>now</latest>
         <sampleRatio>1</sampleRatio>
       </search>
       <option name="charting.chart">radialGauge</option>
       <option name="charting.chart.rangeValues">[0,30,70,100]</option>
       <option name="charting.chart.style">minimal</option>
       <option name="charting.gaugeColors">["0x6cb8ca","0xFFE800","0xBF3030"]</option>
     </chart>
   </panel>   
 </row>
</dashboard>
Happy Splunking!
0 Karma

flzhang132
Explorer

you are great man

0 Karma

niketn
Legend

@flzhang132 please accept the answer if your issue is resolved!

____________________________________________
| 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 ...