Enterprise Level Application and Process Metric Analysis with Tanium Performance
With the recent Performance 1.9 release, users now have bucketed views in Tanium Trends for statistical analysis of CPU usage, memory usage, and top resource consumers. Seeing the data visualized across your enterprise gives a more holistic view of fleet health and allows you to easily spot potential system issues.
In this article, we will walk you through the Performance Trends Application Metric Analysis sensors, their use cases in Trends, and how they can be used to evaluate application performance.
**Application Metric Analysis vs Process Metric Analysis **
In Performance 1.9 we introduced two new sensors which track the same metrics:
-
“Performance - Trends Application Metric Analysis” - allows for the tracking of two or more processes as a bundle, which provides a more holistic overview of an application’s resource consumption.
-
“Performance - Trends Process Metric Analysis” - tracks individual process resource consumption, which can be used to either scope in on potentially troublesome child processes in an application, or to track more simple applications that may not utilize different processes at run time.
Here is a breakdown of the different metrics you can track and how they can be used to pinpoint troublesome applications in your environment.
CPU Analysis
Performance allows three separate types of CPU Analysis in its metrics sensors: CPU Total, CPU User, and CPU Kernel.
-
CPU Total: takes the combined CPU consumption from both User and Kernel for a complete view of CPU consumption
-
CPU User: provides CPU consumption from the User space
-
CPU Kernel: provides CPU consumption from the Kernel space
Specifying between User and Kernel usage can be useful in situations when you want to analyze whether an application’s code may be responsible for CPU consumption or the system’s core components. For example, an application showing high Kernel CPU consumption with low User CPU consumption could be an indication that system-level drivers are having issues, or the machine has hardware-level issues. On the other hand, high User CPU consumption with low Kernel CPU consumption could be an indication of faulty application code misusing system resources, or possibly user-mode drivers being faulty.
The types of Analysis for both CPU and Memory are the same: Average, Minimum, Maximum, Standard Deviation, Standard Variance, and Quantile. Since Trends imports values daily, these all represent the analyzed daily metrics.
Here is an example of a Trends board using the “Performance - Trends Application Metric Analysis” sensor to track the Average CPU Usage of three Example App processes: ExampleProcessA, ExampleProcessB, and ExampleProcessC:
My source in Trends is set up with the following sensor and parameters:
Here is a 30-day historical overview of Tanium’s average CPU usage across my environment:
This can be changed to track whatever time frame you want, up to 90 days. Here is an example of a Trends board tracking the last 24 hours only:
Memory Analysis
Performance also allows the tracking of an application’s Resident Memory consumption, which is a fancy way of saying the total amount of physical RAM in use.
Here is an example of a Trends board using the “Performance - Trends Application Metric Analysis” sensor to track the Average Resident Memory Usage of three Example App processes: ExampleProcessA, ExampleProcessB, and ExampleProcessC:
My source in Trends is set up with the following sensor and parameters:
Here is a 30-day historical overview of Tanium’s average Resident Memory Usage across my environment:
This can be changed to track whatever time frame you want, up to 90 days. Here is an example of a Trends board tracking the last 24 hours only:
Conclusion
It is easy to see how historical tracking of an application’s resource consumption can be massively helpful in troubleshooting enterprise fleet performance in a concise way. End users often report slow machine performance along with a screenshot of whatever application is currently spiking resources on the machine at that moment, but this does not paint a full picture for the team responsible for resolving these issues.
Having the ability to quickly and accurately assess an application’s resource impact across an entire enterprise fleet or even a subset of machines can cut troubleshooting time tremendously.