neuralfraud / grafana-prtg

A PRTG Datasource plugin for Grafana
177 stars 75 forks source link

Getting CPU Values #195

Closed Primax98 closed 2 years ago

Primax98 commented 2 years ago

Hi all, i am trying desparatly to have CPU usage info on my screens. I am using Metrics query and drilling down to the server and then CPU Total. If i use the query inspector i can see the CPU total value fine but i cannot get this to be displayed on the screen as a guage !

Object request:Object method:"GET" url:["http://blah.blah.com/api/historicdata.json?username=apiuser&passhash=999999&id=11886&sdate=2022-05-10-14-36-16&edate=2022-05-10-20-36-16&avg=0&pctshow=false&pctmode=false&usecaption=1"](http://blah.blah.com/api/historicdata.json?username=apiuser&passhash=999999&id=11886&sdate=2022-05-10-14-36-16&edate=2022-05-10-20-36-16&avg=0&pctshow=false&pctmode=false&usecaption=1) hideFromInspector:false response:Object prtg-version:"22.2.76.1705" treesize:36 histdata:Array[36] 0:Object datetime:"10/05/2022 14:38:07" Total:5 Processor 1:4 Processor 2:3 Processor 3:5 Processor 4:6 Processor 5:7 Processor 6:4 Processor 7:4 Processor 8:4 coverage:"100 %"

Does anyone have anyone have any guides or info that can help me with this ? Understand this project is long without updates but it still kinda does the job :-)

Primax98 commented 2 years ago

Ok anoyingly enough i have resolved my own issues shortly after posting this.

Answer > Set the Date format for the PRTG API user to MM/DD/YYYY HH:MM:SS (A.M./P.M.)