prometheus integration
I saw that a Grafana plugin was suggested and I am all for it, but even better might be a Prometheus integration. Prometheus pulls the data in and stores it. Once it's in Prometheus it can be displayed in Grafana pretty easily. I suspect that since there is already an API for updown it's just a matter of making the two systems data connect but that's a bit out of my grasp to do it myself.
Here is a third-party Prometheus Exporter for updown.io graciously provided by @DazWilkin: https://github.com/DazWilkin/updown-exporter
-
Daz Wilkin commented
Here's a very (!) basic Prometheus Exporter for updown
Repo:
https://github.com/DazWilkin/updown-exporterContainer:
https://github.com/DazWilkin/updown-exporter/pkgs/container/updown-exporterExample:
# HELP updown_checks_up updown check
# TYPE updown_checks_up counter
updown_checks_up{ssl_valid="true",status="200",token="xxxx",url="https://foo.com"} 0
updown_checks_up{ssl_valid="true",status="200",token="yyyy",url="https://bar.com"} 1
# HELP updown_exporter_build_info A metric with a constant '1' value labeled by OS version, Go version, and the Git commit of the exporter
# TYPE updown_exporter_build_info counter
updown_exporter_build_info{git_commit="",go_version="go1.18.2",os_version=""} 1
# HELP updown_exporter_start_time Exporter start time in Unix epoch seconds
# TYPE updown_exporter_start_time gauge
updown_exporter_start_time 1.657592712e+09 -
@Daz not that I am aware of. Feel free to give this a shot, if you make a working integration I can promote it here. Also let me know if you have any specific questions about the API.
-
Daz Wilkin commented
I agree that this would be useful.
Has anyone developed this? I assume not.
If not, I may write something.