mirror of
https://github.com/pstadler/metrics.sh.git
synced 2025-05-05 08:46:39 -04:00
fix README / --help
This commit is contained in:
parent
515c21d3f8
commit
639812ea2b
@ -5,10 +5,13 @@ metrics.sh is a metrics collection and fowarding daemon implemented in portable
|
|||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
```
|
```
|
||||||
Usage: ./metrics.sh [-d] [-h] [-v] [-r reporter] [-i interval]
|
$ ./metrics.sh --help
|
||||||
|
|
||||||
|
Usage: ./metrics.sh [-d] [-h] [-v] [-m metrics] [-r reporter] [-i interval]
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
|
|
||||||
|
-m, --metrics <metrics> comma-separated list of metrics to collect
|
||||||
-r, --reporter <reporter> use specified reporter (default: stdout)
|
-r, --reporter <reporter> use specified reporter (default: stdout)
|
||||||
-i, --interval <seconds> collect metrics every n seconds (default: 2)
|
-i, --interval <seconds> collect metrics every n seconds (default: 2)
|
||||||
-v, --verbose enable verbose mode
|
-v, --verbose enable verbose mode
|
||||||
@ -26,7 +29,7 @@ TODO: /etc/init.d
|
|||||||
|
|
||||||
### Requirements
|
### Requirements
|
||||||
|
|
||||||
metrics.sh has been tested on Ubuntu and Mac OS X but is supposed to run on most *NIX-line operating systems. Some of the provided metrics require [procfs](http://en.wikipedia.org/wiki/Procfs) to be available (check with `[ -d /proc ] && echo available || echo not available`).
|
metrics.sh has been tested on Ubuntu and Mac OS X but is supposed to run on most *NIX-line operating systems. Some of the provided metrics require [procfs](http://en.wikipedia.org/wiki/Procfs) to be available.
|
||||||
|
|
||||||
## Metrics
|
## Metrics
|
||||||
|
|
||||||
|
12
metrics.sh
12
metrics.sh
@ -20,12 +20,12 @@ help () {
|
|||||||
echo
|
echo
|
||||||
echo " Options: "
|
echo " Options: "
|
||||||
echo
|
echo
|
||||||
echo " -m, --metrics <metric1,...> use specified metrics"
|
echo " -m, --metrics <metrics> comma-separated list of metrics to collect"
|
||||||
echo " -r, --reporter <reporter> use specified reporter (default: stdout)"
|
echo " -r, --reporter <reporter> use specified reporter (default: stdout)"
|
||||||
echo " -i, --interval <seconds> collect metrics every n seconds (default: 2)"
|
echo " -i, --interval <seconds> collect metrics every n seconds (default: 2)"
|
||||||
echo " -v, --verbose enable verbose mode"
|
echo " -v, --verbose enable verbose mode"
|
||||||
echo " -d, --docs show documentation"
|
echo " -d, --docs show documentation"
|
||||||
echo " -h, --help show this text"
|
echo " -h, --help show this text"
|
||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user