CPU Thresholds, Warnings, and Risk Scoring

The following splunk query can be used to do as the title says. Risk scoring is done via color codes in the source information of the chart (see below for an example). The following query looks at the average CPU time for 30 minute chunks of time over a selected time range (ie: what was my average CPU usage on a given server over the last 24 hours).


The above assumes that you want your chunks of time (for the average) to be 30 minutes, you can change that by modifying the “span” section. The query also assumes that your Critical level of CPU is anything above 90%, Warning level is between 70% and less than 90%, Elevated is 40% but less than 70%, and Normal behavior is anything less than 40%.

To define the corresponding colors you’ll need to add the following section to the simple XML source behind your dashboard. To do this edit the source, find the panel that references the above query, and add the following to the chart options:

Share This:


Leave A Comment?