https://github.com/fl64/connectivity-prober
connectivity-prober
https://github.com/fl64/connectivity-prober
Last synced: 10 months ago
JSON representation
connectivity-prober
- Host: GitHub
- URL: https://github.com/fl64/connectivity-prober
- Owner: fl64
- Created: 2025-06-08T17:08:31.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-06-08T18:12:57.000Z (about 1 year ago)
- Last Synced: 2025-06-08T18:23:40.689Z (about 1 year ago)
- Language: Go
- Size: 5.86 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Connectivity Prober
A lightweight Go-based utility that periodically checks the availability of network targets (HTTP, ICMP) and exposes Prometheus-style metrics.
## Build
```bash
git clone https://github.com/fl64/connectivity-prober.git
cd connectivity-prober
go build -o connectivity-prober
```
## Usage
```bash
./connectivity-prober \
--interval=5000 \
--target.ping=ya.ru,8.8.8.8 \
--target.http=http://example.com,https://google.com \
--metrics.port=9090 \
--metrics.file=./metrics.prom \
--log.level=info
```
## CLI flags
```bash
--interval xx # Check interval in milliseconds, default: 5000
--target.ping target1,target2,... # Comma-separated list of ICMP targets
--target.http target1,target2,... # Comma-separated list of HTTP targets
--metrics.port xxxx # Port for Prometheus metrics server, default: 8080
--metrics.file path/to/file.prom # File path to save metrics
--log.level level # Log level (debug" info warn error), default: warn
```