I need to be able to query a FreeBSD system to find out information about it. Things that I am looking for are CPU utilisation, RAM utilisation, IO utilisation, network utilisation and any other variables that might affect the operation of the FreeBSD system. For instance I might want to query the system for CPU usage to decide whether to deploy another project to it or whether I should spin up a new FreeBSD system programmatically to handle the new project. I also need to be able to create graphs over a period of time to display on a website showing resource usage for each FreeBSD server. It would be even better if I could get information about resource usage for each specific FreeBSD jail running on the system as well. For instance how much CPU is jail ID 1 using?
I'm not sure what the best API is for accessing this data though.
I'm not sure what the best API is for accessing this data though.