newrelic / newrelic-unix-monitor

Monitoring service for Unix (AIX, Linux, HP-UX, MacOS, Solaris) systems
https://docs.newrelic.com/docs/infrastructure/host-integrations/host-integrations-list/unix-monitoring-integration/
Other
31 stars 24 forks source link

Computational memory percentage for AIX server #35

Closed Pritamdey148 closed 2 years ago

Pritamdey148 commented 3 years ago

Need to get the Computational memory percentage for AIX server , not sure if new relic is collecting this information from the servers or else we have make some changes the agent script for the same.

sschwartzman commented 2 years ago

The percentage can be easily computed with an NRQL query against the "Memory.Total", "Memory.Used" or "Memory.Available" metrics being grabbed from svmon:

https://github.com/newrelic/newrelic-unix-monitor/blob/master/config/plugin-commands-aix.json#L378

Beyond that, the percentage would be derived (per host) like so:

SELECT 100*latest(memory.used)/latest(memory.total)) as 'Computational Memory Percentage' FROM unixMonitor:Stats SINCE 1 HOUR AGO FACET hostname