8000 GitHub - PungYoung/pinger: Measures the latency and packet loss to one or more hosts and reports the data to Prometheus.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
forked from clambin/pinger

Measures the latency and packet loss to one or more hosts and reports the data to Prometheus.

License

Notifications You must be signed in to change notification settings

PungYoung/pinger

 
 

Repository files navigation

pinger

GitHub tag (latest by date) Build Codecov Go Report Card GitHub

Born on a rainy Sunday afternoon, when my ISP was being its unreliable self again. Measures the latency and packet loss to one of more hosts and reports the data to Prometheus.

Getting started

Command line arguments:

The following command line arguments can be passed:

usage: pinger [<flags>] [<hosts>...]

pinger

Flags:
  -h, --help                 Show context-sensitive help (also try --help-long and --help-man).
  -v, --version              Show application version.
      --port=8080            Metrics listener port
      --endpoint="/metrics"  Metrics listener endpoint
      --debug                Log debug messages
      --interval=5s          Measurement interval

Args:
  [<hosts>]  hosts to ping

The target hosts can also be provided by exporting an environment variable 'HOSTS', e.g.

export HOSTS="127.0.0.1 192.168.0.1 192.168.0.200"

If both are provided, the environment variable takes precedence.

Docker

Images for arm, arm64 & amd64 are available on ghcr.io.

Metrics

Pinger exposes the following metrics to Prometheus:

* pinger_packet_count:         Total packets sent
* pinger_packet_loss_count:    Total packet loss measured 
* pinger_latency_seconds:      Total latency measured

Authors

  • Christophe Lambin

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

About

Measures the latency and packet loss to one or more hosts and reports the data to Prometheus.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 99.0%
  • Dockerfile 1.0%
0