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 🙂
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 🙂
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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...