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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

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