lekpamartin / uptimerobot_exporter

Expose uptimerobot.com metrics for prometheus and visualize it in Grafana
Apache License 2.0
45 stars 22 forks source link

leverage 'logs' feature of getMonitors? #5

Open billimek opened 4 years ago

billimek commented 4 years ago

One challenge with using this to alert on outages is that polling the API will fail when there is an internet outage, and we generally won't have a record of it because we are only capturing the 'current state' of the monitors.

It would be great if we could leverage the logs feature of the getMonitors endpoint to capture past or missed outages.

There is an example implementation of this approach in a javascript solution which leverages influxdb instead of prometheus.

Is such a thing even possible with prometheus style metrics collection? It would be great if we could persist outage information as well as the other metrics.