Device Monitoring
To install and configure monitoring on your device, see the tutorial Monitor your device with collectd.
Is collectd running?​
sudo systemctl status collectd
If not, launch collected
sudo systemctl start collectd
Is collectd publishing MQTT messages?​
- tedge
- mosquitto
- mqtt
tedge mqtt sub 'collectd/#'
mosquitto_sub -t 'collectd/#'
collectd/#
If no metrics are collected, please check the MQTT configuration
The collectd.conf
file included with thin-edge.io is configured for conservative interval times, e.g. 10 mins to 1 hour depending on the metric. This is done so that the metrics don't consume unnecessary IoT resources both on the device and in the cloud. If you want to push the metrics more frequently then you will have to adjust the Interval
settings either globally or on the individual plugins. Make sure you restart the collectd service after making any changes to the configuration.
Is the tedge-mapper-collectd running?​
sudo systemctl status tedge-mapper-collectd
If not, launch tedge-mapper-collectd.service as below
sudo systemctl start tedge-mapper-collectd
Are the collectd metrics published in Thin Edge JSON format?​
- tedge
- mosquitto
- mqtt
tedge mqtt sub 'te/device/main///m/+'
mosquitto_sub -t 'te/device/main///m/+'
te/device/main///m/+
Are the collectd metrics published to Cumulocity IoT?​
- tedge
- mosquitto
- mqtt
tedge mqtt sub 'c8y/#'
mosquitto_sub -t 'c8y/#'
c8y/#
If not see how to connect a device to Cumulocity IoT.
Are the collectd metrics published to Azure IoT?​
- tedge
- mosquitto
- mqtt
tedge mqtt sub 'az/#'
mosquitto_sub -t 'az/#'
az/#
If not see how to connect a device to Azure IoT.