Skip to content

devsschmidt/ping_exporter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ping_exporter

Build Status Docker Build Statu Go Report Card

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.

Getting Started

Config file

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

Shell

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

Docker

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

Contribute

Simply fork and create a pull-request. We'll try to respond in a timely fashion.

License

MIT License, Copyright (c) 2018
Philip Berndroth pberndro
Daniel Czerwonk dan_nrw

About

Prometheus exporter for ICMP echo requests using https://github.com/digineo/go-ping

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%