peshming/README.md

42 lines
1.4 KiB
Markdown
Raw Permalink Normal View History

2019-02-06 18:29:27 +00:00
## peshming
It's a prometheus exporter pinging hosts in the background.
It's been inspired by [meshping](https://bitbucket.org/Svedrin/meshping),
but instead of managing targets using a redis db this is using a simple config file.
In addition, this tool allows to set a ping frequency per target.
The name peshming is intended as a placeholder until
someone comes up with something better.
### Usage:
```
2020-04-06 12:11:28 +00:00
$ peshming --help
2020-04-08 10:02:54 +00:00
peshming 0.2.3
2019-02-06 18:29:27 +00:00
Jan Christian Grünhage <jan.christian@gruenhage.xyz>
Pings configured hosts in a configurable intervals and exposes metrics for prometheus.
USAGE:
peshming [FLAGS] <config>
FLAGS:
-h, --help Prints help information
2020-04-06 20:50:32 +00:00
-v, --verbose Be verbose (you can add this up to 4 times for more logs).
By default, only errors are logged, so no output is a good thing.
2019-02-06 18:29:27 +00:00
-V, --version Prints version information
ARGS:
<config> Set config file
```
2020-04-06 12:11:28 +00:00
For configuration options, see the included sample config file.
2021-04-19 08:01:35 +00:00
### Endpoints:
There's two endpoints available:
- `/metrics`, which serves the metrics
- `/health`, which should always return a 200 status code
### Packaging Notes
If you're packaging peshming, you might be interested in the env vars
`PESHMING_MAN_DIR` and `PESHMING_COMPLETIONS_DIR`, which when set, will cause
cargo to generate a man page and shell completions to the folder passed in
those variables.