https://github.com/chayleaf/ping-exporter
A ping exporter for Prometheus with network namespace support.
https://github.com/chayleaf/ping-exporter
icmp metrics openmetrics ping prometheus prometheus-exporter prometheus-metrics
Last synced: 9 months ago
JSON representation
A ping exporter for Prometheus with network namespace support.
- Host: GitHub
- URL: https://github.com/chayleaf/ping-exporter
- Owner: chayleaf
- License: other
- Created: 2023-12-14T13:26:48.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-12-14T13:33:01.000Z (over 2 years ago)
- Last Synced: 2025-02-25T05:43:02.719Z (over 1 year ago)
- Topics: icmp, metrics, openmetrics, ping, prometheus, prometheus-exporter, prometheus-metrics
- Language: Rust
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# ping-exporter
A ping exporter for Prometheus.
Reports the following metrics (per-IP, per-netns):
- `total_pings`
- `successful_pings`
- `successful_ping_wait_sum`
```
Usage: ping-exporter [OPTIONS] [TARGET]...
Arguments:
[TARGET]... Target IPs
Options:
-l, --listen Listen address (e.g. 127.0.0.1:3000)
-c, --config Config path
-I, --interface Default ping interface (interface name or IP to bind to)
-n, --netns Default network namespace name
-i, --interval Default ping interval (in seconds)
-t, --timeout Default ping timeout (in seconds)
--type Default ICMP socket type [possible values: dgram, raw]
--ttl Default ICMP TTL
-h, --help Print help
```
TOML config sample (all fields are optional):
```
listen = "127.0.0.1:3000"
type = "dgram"
interface = "eth0"
interval = 5
timeout = 10
# interface = "192.168.1.1"
netns = "test"
ttl = 128
targets = [ "8.8.8.8", { target = "8.8.4.4", netns = null, interval = 5, timeout = 1 } ]
```