Feature Requests Prometheus integration

Closed

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.

FunnelCloud.Services
Created on July 05, 2020 · Last update on July 16, 2024
3 Comments
Daz Wilkin

I agree that this would be useful.

Has anyone developed this? I assume not.

If not, I may write something.

Like   Jul 11, 2022 16:46
Adrien Rey-Jarthon

@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.

Like   Jul 11, 2022 18:47
Daz Wilkin

Here's a very (!) basic Prometheus Exporter for updown

Repo:

https://github.com/DazWilkin/updown-exporter

Container:

https://github.com/DazWilkin/updown-exporter/pkgs/container/updown-exporter

Example:


# 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

Like   Jul 12, 2022 02:26