[SOLVED] Getting Statistics via API commands

Nov 21, 2019
Hi All

I'm fairly new to the Proxmox community (less than 1 day), so I apologise if this query seems trivial or simplistic to the more seasoned users.

Basically, my task is to be able to pull statistics from Proxmox using the API. On each Node GUI interface and each VM interface, there are three graphs on the Summary page that show historical information: for CPU usage, Memory usage and Network Traffic usage. This is the information I'm trying to extract for reporting purposes.

I've been going through the API documentation and trying the many options using Postman but I don't seem to have found the correct end-point. I can find loads of log entries and journals, but nothing to do with usage.

I can get the information I need but only a snapshot of the present, nothing historical. Am I missing some that are not documented? Where does Proxmox store all this historical data used to draw the graphs?

Thanks in advance
You are an absolute life-saver! Thank-you so much.

As a newbie in the Proxmox arena, hopefully you could forgive me for missing that end-point among the multitude in the API viewer.

Just a quick follow-on to the above: What are the retention periods for the various timeframe options?



The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!