CPU Statistics (referred to here as CPUStats) is a new app that appears in your node in App Manager. If started, it will poll the machine’s CPU usageload average, memory usage, and disk usage and publish them as tags if when MQTT is running with an enabled publisher. The user may select which must have a publisher that will publish with the specified Publish Group ID in the “general” tab of the app’s properties. Only the selected combination of these three classes of information should will be published. These options appear as checkboxes in the “general” tab of CPU Statistics.
When started, CPUStats will create and use its own ZMQ sockets.
Code Block |
---|
metaPort="ipc:///tmp/cpumeta"
valuePort="ipc:///tmp/cpuvaluechanges"
writePort="ipc:///tmp/cpuwrite" |
The behavior of CPUStats can be modified by the user in the “general” tab in App Manager.
...
Enable - Enables Application. Disable to prevent startup on power cycle/Edge Manager restart.
...
Auto Restart App - Upon an unexpected stop of the app, the app will auto restart if enabled.
...
Publish CPU Load - Publish CPU Load averages over the last 1, 5, and 15 minutes. This information will be published as 3 separate tags with a data type of float.
...
Publish Memory Stats (total, used, percent) - Publish memory usage statistics with three separate tags with a data type of float.
“Total memory” - Total memory of machine, in gigabytes.
“Available memory” - Available memory of machine, in gigabytes.
“Percent of memory used” - Percentage of memory used.
...
Publish Disk Stats (total, used, free, percent) - Publish disk usage statistics for each mounted partition on the machine running. Each tag is published with a data type of float.
“Disk total for <partition>“ - Total size of partition, in gigabytes.
“Disk used for <partition>” - Amount of space used in partition, in gigabytes
“Disk free for <partition>” - Free space of partition, in gigabytes.
“Disk percent for <partition>” - Percentage of space free in partition.
...
Crash Logs - If checked, the app will store logs upon an unexpected stop.
...
Crash Log file count - The maximum number of crash log files to keep during a crash.
...
Minimum Interval - The minimum number of seconds between each publish.
...
Log file count - The maximum number of log files to keep durring log rotation
...
Log size max (kb) - The size in kilobytes at which the log file rotates and a new log file is started.
...
of the app’s properties.