OpenNMS REST Api:使用 /measurements 检索性能统计数据

OpenNMS REST Api: Retrieving performance stats using /measurements

我对 OpenNMS 还很陌生。目前我正在为我配置的所有节点创建一个简化的仪表板。我计划监控所有节点上的 cpu 利用率和内存可用性。为此,我使用了 OpenNMS 的 REST Api。对于 cpu 利用率,我可以使用以下 url 获取统计信息:

http://localhost:8980/opennms/rest/measurements/node%5B212%5D.nodeSnmp%5B%5D/cpuPercentBusy?start=1501158186498&maxrows=30

https://wiki.opennms.org/wiki/ReST#Measurements_API,我能够得到基本的 url 作为 :

/measurements/{resourceId}/{attribute}

但是,我似乎无法确定 url 以获取各种磁盘驱动器(C:\,D:\,等等...)上的可用内存

如何获取节点的内存利用率和其他性能指标?

在浏览了 OpennNMS 的官方 wiki 页面后,设法找到了合适的 REST 查询。
在我的 C:\ 驱动器案例中,它是:

http://localhost:8980/opennms/rest/measurements/node%5B212%5D.hrStorageIndex[C]/hrStorageSize?start=1501158186498

我设法以类似的方式获得了其他统计数据。

我引用的文档链接:

https://wiki.opennms.org/wiki/Data_Collection_Configuration_How-To https://wiki.opennms.org/wiki/ReST#Measurements_API