[SOLVED] Getting Statistics via API commands

Nov 21, 2019
4
0
1
48
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
Rob
 
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?

Rob