Splunk AppDynamics

How do agents calculate CPU % in Kubernetes?

JohnGregg
Path Finder

All,

For both java and .Net agents in Kubernetes, how is the CPU % calculated?

I'm looking at some Java test results and the % appears to simply be CPU millis divided by time with no account for the number of CPUs, CPU requests, or CPU limits.  Does that sound right?  With CloudFoundry, the % was additionally divided by the number of CPUs, so 120k ms/min was 200% divided by the number of CPUs.

For .Net, I don't have a millis number so I can't make the same calculation to verify.

thanks

 

Labels (1)
0 Karma

sainag_splunk
Splunk Employee
Splunk Employee

@JohnGreggFrom what I've read, Java agents should be dividing by processor count: CPU millis / time / processor_count

But if you're not seeing that in your K8s results, maybe the cluster agent works differently than regular Java agents?

For the cluster agent metrics, I know it treats 1 CPU = 100%, so multi-core usage gives you >100%.

Might be worth checking if you're looking at app agent metrics vs cluster agent metrics - they could calculate differently.




If this helps, Please Upvote.

If this helps, Upvote!!!!
Together we make the Splunk Community stronger 
0 Karma
Get Updates on the Splunk Community!

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...