A utility for running arbitrary commands and checking their output
shell
cargo install cmdprobe
See the example cmdprobe.yaml
file for what configuration is available.
Construct your own configuration file, and then run cmdprobe against it to execute all the checks that you need to do.
shell
cmdprobe --config-file /etc/cmdprobe.yml
You can supply a statsd host and cmdprobe
will emit metrics for each test & stage.
shell
cmdprobe --config-file /etc/cmdprobe.yml --statsd-address 127.0.0.1:8125
The following metrics will be emitted:
```
cmdprobe.probe.failed cmdprobe.probe.passed
cmdprobe.check.failed cmdprobe.check.passed
cmdprobe.stage.failed cmdprobe.stage.passed ```
Ensure you have a cmdprobe.yaml
file in the current directory
```shell
docker-compose up -d
RUST_LOG=cmdprobe=INFO cargo run ```