blester125 / ip-exporter

A Prometheus endpoint to get public IP address to help monitor internet connectivity.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ip-exporter

A small script using the prometheus client to log your public IP address.

The IP address is logged as a Gauage metric with the key "ip" as a label. The value of the metric will always be 1.

Using the "label to field" transformation in Grafana is the easiest way to get the IP address to appear in a dashboard panel.

About

A Prometheus endpoint to get public IP address to help monitor internet connectivity.

License:MIT License


Languages

Language:Python 85.8%Language:Dockerfile 14.2%