prometheus for IOT devices

195 views
Skip to first unread message

Amit Das

unread,
Feb 12, 2021, 9:41:46 AM2/12/21
to Prometheus Users
Hi,
I was trying to find a solution to monitor iot devices in the filed (moving objects like bus  etc with internet connected). If i ping to the ip from network it responds.  but sometime when the engine is turned off no communication for few hours. Maybe 100 buses got iot devices which gets some data from the bus details. Data from the IOT hubs regarding bus speed etc are transmitted every 1hour to the server, Whats is the best solution for  monitoring and alerting 100 iot hubs in this case.  there will be lots of noise how to eliminate.
Tried with blackbox exporter but 50% of them keep alerting all time.
Any suggestions.

Marcelo Magallón

unread,
Feb 12, 2021, 8:37:08 PM2/12/21
to Amit Das, Prometheus Users
From your description, it sounds like you have three separate problems:

- how to detect that the device doesn't have power (engine off)?
- if the engine is on, how to detect that the service you are interested in is running (or that the data is being transmitted)
- how to avoid alarms when the engine is off

How reliable is the network connection? Can you safely assume that if there's no network connection, the device doesn't have power?

Sounds to me that you can use blackbox_exporter to monitor the device using a ping check, and if you can safely assume that no ping means no power, you can use that to inhibit alarms: if the device is up, send other alarms as necessary, but if the device is down, then inhibit the other alarms.

If the network test is not reliable, is there something else that you can use as a heartbeat? Something that you can observe that tells you that the device is in fact powered down?

There's also the question of what you are trying to accomplish. I mean, if the data you are getting is up to an hour old, what is the purpose of the alert? Are you trying to create some kind of report?


--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/3b4bf0cc-3922-4ff1-b9de-5806b736a192n%40googlegroups.com.


--
Marcelo Magallón

Aliaksandr Valialkin

unread,
Feb 16, 2021, 6:40:12 PM2/16/21
to Amit Das, Prometheus Users
Just install vmagent on every moving object, so it collects metrics from local devices, and then sends the collected data to a Prometheus-compatible centralized storage when it has network connection with the  storage. See https://victoriametrics.github.io/vmagent.html#use-cases

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/3b4bf0cc-3922-4ff1-b9de-5806b736a192n%40googlegroups.com.


--
Best Regards,

Aliaksandr Valialkin, CTO VictoriaMetrics
Reply all
Reply to author
Forward
0 new messages