Getting Data In

How do you calculate the RAM on windows (perfmon) ?

henriq_c
Explorer

Hello,

I want to calculate the percentage of the RAM utilization and I do this but I know it is not good. Do you have a better proposition ?

index=xxx host=xxxx eventtype="perfmon_windows" object="Memory" counter="% Committed Bytes In Use"
| timechart span=1m eval(round(latest(Value),4)) as "RAM"

Same for the RAM utilization in Go :

index=xxx host=xxxx eventtype="perfmon_windows" object="Memory" counter="% Committed Bytes In Use" OR counter="Committed Bytes"

| eval percentused = case( counter=="% Committed Bytes In Use", round(Value, 4) )
| eval committed = case( counter=="Committed Bytes", round(Value, 4) )
| eval usedbytes = (percentused/100)*committed

| timechart span=1m eval((round(latest(percentused),4)) / 100 * round(latest(committed),4) / 1000000000) as "RAM"

Thanks

Tags (3)
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...