Splunk Enterprise

How to Graph CPU usage of indexers over time?

DEADBEEF
Path Finder

I received this image from support and I would like to create a panel in my dashboard to mimic this information.  How would I go about doing that?  I was trying with the current query, but am not having luck.

 

 

 

index=_introspection data.normalized_pct_cpu=* sourcetype=splunk_resource_usage host=idx*
| stats avg(data.normalized_pct_cpu) AS cpu_usage BY host
| table host cpu_usage

 

 

 


indexer_cpu.png

 

I am using data.normalized_pct_cpu as the docs state that it is Percentage of CPU usage across all cores. 100% is equivalent to all CPU resources on the machine, which seems to be what I want but not sure if that is the best way to go about this.

Labels (2)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

Given that you graphic has a time component, perhaps this might work better for you

index=_introspection data.normalized_pct_cpu=* sourcetype=splunk_resource_usage host=idx*
| timechart avg(data.normalized_pct_cpu) AS cpu_usage BY host

View solution in original post

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Given that you graphic has a time component, perhaps this might work better for you

index=_introspection data.normalized_pct_cpu=* sourcetype=splunk_resource_usage host=idx*
| timechart avg(data.normalized_pct_cpu) AS cpu_usage BY host
0 Karma
Get Updates on the Splunk Community!

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...

Your Voice Matters! Help Us Shape the New Splunk Lantern Experience

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Building Momentum: Splunk Developer Program at .conf25

At Splunk, developers are at the heart of innovation. That’s why this year at .conf25, we officially launched ...