Prometheus exporter for ICMP echo requests using https://github.com/digineo/go-ping
This is a simple server that scrapes go-ping stats and exports them via HTTP for Prometheus consumption. The go-ping library is build and maintained by Digineo GmbH. For more information check the source code.
Targets can be specified in a YAML based config file:
targets:
- 8.8.8.8
- 8.8.4.4
- 2001:4860:4860::8888
- 2001:4860:4860::8844
To run the exporter:
./ping_exporter [options] target1 target2 ...
or
./ping_exporter -config.path my-config-file [options]
Help on flags:
./ping_exporter --help
Getting the results for testing via cURL:
curl http://localhost:9427/metrics
https://hub.docker.com/r/czerwonk/ping_exporter
To run the ping_exporter as a Docker container, run:
docker run -p 9427:9427 -v ./config:/config:ro --name ping_exporter czerwonk/ping_exporter
Simply fork and create a pull-request. We'll try to respond in a timely fashion.
MIT License, Copyright (c) 2018
Philip Berndroth pberndro
Daniel Czerwonk dan_nrw