OpenNMS REST Api: Retrieving performance stats using /measurements -
i new opennms. in process of creating simplified dashboard nodes have configured. plan on monitoring cpu utilization , memory availability on nodes. this, using rest api of opennms. cpu utilization, able stats using following url :
http://localhost:8980/opennms/rest/measurements/node%5b212%5d.nodesnmp%5b%5d/cpupercentbusy?start=1501158186498&maxrows=30
from https://wiki.opennms.org/wiki/rest#measurements_api, able basic url :
/measurements/{resourceid}/{attribute}
however, can't seem determine url getting memory available on various disk drives (c:\,d:\,etc...)
how memory utilization , other performance metrics node?
after digging through official wiki page opennnms, managed find appropriate rest query.
in case c:\ drive, :
http://localhost:8980/opennms/rest/measurements/node%5b212%5d.hrstorageindex[c]/hrstoragesize?start=1501158186498
i managed other stats in similar manner.
links documentation refered :
https://wiki.opennms.org/wiki/data_collection_configuration_how-to https://wiki.opennms.org/wiki/rest#measurements_api
Comments
Post a Comment