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>
---
What goes around comes around. If it helps, hit it with Karma :slightly_smiling_face:
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>
---
What goes around comes around. If it helps, hit it with Karma :slightly_smiling_face:
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!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...