Splunk Search

How to create a single chart showing % Processor Time and % User Time by host?

CSMounsey01
New Member

I'm trying to create a single chart showing % Processor Time and % User Time by host

My example so far:

host="pvawbdap01.ifdsgroup.co.uk" index="bluedoor_registry_perfmon"  source="Perfmon:Processor" | stats avg("% Processor Time") as hRs, avg("% User Time") as ssns by _time,source | eval s1=("% Processor Time % User Time") | makemv s1 | mvexpand s1 | eval yval=case(s1==("% Processor Time"),hRs,s1==("% User Time"),ssns) | eval series=source+":"+s1 | xyseries _time,series,yval
0 Karma

lguinn2
Legend

Would this work?

 host="pvawbdap01.ifdsgroup.co.uk" index="bluedoor_registry_perfmon"
      source="Perfmon:Processor"
 | stats avg("% Processor Time") as hRs, avg("% User Time") as ssns by source
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 ...