This device will report system statistics at a regular interval. Currently, we report the following statistics/topics:
mem_totalmem_availablemem_usedmem_usedpercentdisk_useddisk_freedisk_totaldisk_usedpercentload_1minload_5minload_15min
- The interval can be changed dynamically through the
intervaltopic of the OC device. - You can force a report by publishing any message to the
triggertopic.
Interval durations must conform to the Golang time.ParseDuration string format specified below:
A duration string is a possibly signed sequence of decimal numbers, each with
optional fraction and a unit suffix, such as "300ms", "-1.5h" or "2h45m".
Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
Plugins allow you to extend the list of reported values. Upon each interval,
each of the specified plugins are queried for their report.
Their reported topic/values are then published along with the previously
mentioned hard coded values.
To use a plugin, set PLUGIN_PATHS to the plugin file's path. To use multiple
plugins simultaneously, simply list them separated by a semicolon.