Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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.

  1. “Total memory” - Total memory of machine, in gigabytes.

  2. “Available memory” - Available memory of machine, in gigabytes.

  3. “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.

  1. “Disk total for <partition>“ - Total size of partition, in gigabytes.

  2. “Disk used for <partition>” - Amount of space used in partition, in gigabytes

  3. “Disk free for <partition>” - Free space of partition, in gigabytes.

  4. “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.