Parsing edgeHub and edgeAgent Prometheus metrics and turns it into JSON
470
Parsing edgeHub and edgeAgent Prometheus metrics and turns it into JSON
The following output message is sent:
{
"Timestamp":"2021-01-02T14:10:49.7778998Z",
"Uptime":68,
"Disks":{
"sda2":{
"Size":60761956.0,
"Used":31185848.0,"Free":29576108.0
},
"sda1":{
"Size":523248.0,
"Used":6268.0,
"Free":516980.0
}
},
"Modules":{
"hb":{
"Cpu099":0.02,
"MessagesSentCount":210,
"MessagesRecievedCount":210
},
"edgeAgent":{
"Cpu099":0.16,
"MessagesSentCount":0,
"MessagesRecievedCount":0
},
"host":{
"Cpu099":1.06,
"MessagesSentCount":0,
"MessagesRecievedCount":0
},
"metrics":{
"Cpu099":0.04,
"MessagesSentCount":0,
"MessagesRecievedCount":0
},
"edgeHub":{
"Cpu099":0.12,
"MessagesSentCount":0,
"MessagesRecievedCount":0
}
},
"MessagesSentCount":210,
"MessagesRecievedCount":210
}
The following desired properties are exposed:
The latest property changes are reported back in the reported properties.
The source code is available here.
The Docker module is available here
Contributions are welcome. Issues are appreciated, pull requests are stellar!
More details about how to use this blog are seen in this blog.
Content type
Image
Digest
Size
74.5 MB
Last updated
over 5 years ago
docker pull svelde/iot-edge-metrics:0.0.10-amd64