Skip to content

fl64/connectivity-prober

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Connectivity Prober

A lightweight Go-based utility that periodically checks the availability of network targets (HTTP, ICMP) and exposes Prometheus-style metrics.

Build

git clone https://github.com/fl64/connectivity-prober.git
cd connectivity-prober
go build -o connectivity-prober

Usage

./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

--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

About

connectivity-prober

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages