Skip to content
Prometheus style smokeping
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci Add release publisher. Nov 8, 2018
ping More bugfixes Nov 6, 2018
.gitignore More build fixes. Nov 5, 2018
.promu.yml
Dockerfile
LICENSE Initial commit Nov 4, 2018
Makefile add docker image Nov 5, 2018
Makefile.common
README.md Add example graph to the README. Jan 29, 2019
VERSION Add build infra. Nov 4, 2018
collector.go Update name Nov 5, 2018
example-graph.png Add example graph to the README. Jan 29, 2019
example-rules.yml Add example rules file. Jan 11, 2019
go.mod Fixup build. Nov 29, 2018
go.sum Fixup build. Nov 29, 2018
main.go More bugfixes Nov 6, 2018

README.md

smokeping_prober

Prometheus style "smokeping" prober.

Example Graph

Overview

This prober sends a series of ICMP (or UDP) pings to a target and records the responses in Prometheus histogram metrics.

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

Flags:
  -h, --help              Show context-sensitive help (also try --help-long and --help-man).
      --web.listen-address=":9374"
                          Address on which to expose metrics and web interface.
      --web.telemetry-path="/metrics"  
                          Path under which to expose metrics.
  -i, --ping.interval=1s  Ping interval duration
      --privileged        Run in privileged ICMP mode
      --log.level="info"  Only log messages with the given severity or above. Valid levels: [debug, info, warn,
                          error, fatal]
      --log.format="logger:stderr"  
                          Set the log target and format. Example: "logger:syslog?appname=bob&local=7" or
                          "logger:stdout?json=true"
      --version           Show application version.

Args:
  <hosts>  List of hosts to ping

Building and running

Requires Go >= 1.11

go get github.com/superq/smokeping_prober
sudo setcap cap_net_raw=+ep ${GOPATH}/bin/smokeping_prober

Metrics

Metric Name Type Description
smokeping_requests_total Counter Counter of pings sent.
smokeping_response_duration_seconds Histogram Ping response duration.
You can’t perform that action at this time.