fix README markup
This commit is contained in:
parent
1fd9771e91
commit
b508c27b64
|
@ -28,7 +28,7 @@ $ git clone git@github.com:pstadler/metrics.sh.git
|
||||||
|
|
||||||
### Requirements
|
### Requirements
|
||||||
|
|
||||||
metrics.sh has been tested on Ubuntu 14.04 and Mac OS X but is supposed to run on most *NIX-like operating systems. Some of the provided metrics require [procfs](http://en.wikipedia.org/wiki/Procfs) to be available when running on *NIX. POSIX compliancy means that metrics.sh works with minimalistic command interpreters such as [dash](http://manpages.ubuntu.com/manpages/trusty/en/man1/dash.1.html). Built-in metrics do **not** require root privileges.
|
metrics.sh has been tested on Ubuntu 14.04 and Mac OS X but is supposed to run on most Unix-like operating systems. Some of the provided metrics require [procfs](http://en.wikipedia.org/wiki/Procfs) to be available when running on *nix. POSIX compliancy means that metrics.sh works with minimalistic command interpreters such as [dash](http://manpages.ubuntu.com/manpages/trusty/en/man1/dash.1.html). Built-in metrics do **not** require root privileges.
|
||||||
|
|
||||||
## Metrics
|
## Metrics
|
||||||
|
|
||||||
|
@ -122,10 +122,6 @@ network_eth1.out: 0.03
|
||||||
...
|
...
|
||||||
```
|
```
|
||||||
|
|
||||||
### Daemonize / init.d / upstart
|
|
||||||
|
|
||||||
TODO
|
|
||||||
|
|
||||||
## Writing custom metrics / reporters
|
## Writing custom metrics / reporters
|
||||||
|
|
||||||
TODO
|
TODO
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
get_available_reporters () {
|
get_available_reporters () {
|
||||||
local result
|
local result
|
||||||
for file in `ls ./reporters/*.sh $CUSTOM_REPORTERS_PATH/*.sh 2>/dev/null`; do
|
for file in `ls ./reporters/*.sh $CUSTOM_REPORTERS_PATH/*.sh 2> /dev/null`; do
|
||||||
local filename=$(basename $file)
|
local filename=$(basename $file)
|
||||||
local reporter=${filename%.*}
|
local reporter=${filename%.*}
|
||||||
result=$(echo "$result $reporter")
|
result=$(echo "$result $reporter")
|
||||||
|
@ -12,7 +12,7 @@ get_available_reporters () {
|
||||||
|
|
||||||
get_available_metrics () {
|
get_available_metrics () {
|
||||||
local result
|
local result
|
||||||
for file in `ls ./metrics/*.sh $CUSTOM_METRICS_PATH/*.sh 2>/dev/null`; do
|
for file in `ls ./metrics/*.sh $CUSTOM_METRICS_PATH/*.sh 2> /dev/null`; do
|
||||||
local filename=$(basename $file)
|
local filename=$(basename $file)
|
||||||
local metric=${filename%.*}
|
local metric=${filename%.*}
|
||||||
# register metric
|
# register metric
|
||||||
|
|
Loading…
Reference in New Issue