forked from influxdata/telegraf
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Code formatted, Readme updated based on example
closes influxdata#695
- Loading branch information
Showing
5 changed files
with
47 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,49 @@ | ||
# Raindrops Input Plugin | ||
|
||
The [raindrops](http://raindrops.bogomips.org/) plugin reads from | ||
specified raindops middleware URI and adds stats to InfluxDB. | ||
specified raindops [middleware](http://raindrops.bogomips.org/Raindrops/Middleware.html) URI and adds stats to InfluxDB. | ||
|
||
### Configuration: | ||
|
||
```toml | ||
# Read raindrops stats | ||
[[inputs.raindrops]] | ||
urls = ["http://localhost/_raindrops"] | ||
urls = ["http://localhost:8080/_raindrops"] | ||
``` | ||
|
||
### Measurements & Fields: | ||
|
||
- raindrops | ||
- calling (integer, count) | ||
- writing (integer, count) | ||
- raindrops_listen | ||
- active (integer, bytes) | ||
- queued (integer, bytes) | ||
|
||
### Tags: | ||
|
||
- Multiple listeners are tagged with IP:Port/Socket, ie `0.0.0.0:8080` or `/tmp/unicorn` | ||
- Raindops calling/writing of all the workers: | ||
- server | ||
- port | ||
|
||
- raindrops_listen (ip:port): | ||
- ip | ||
- port | ||
|
||
- raindrops_listen (Unix Socket): | ||
- socket | ||
|
||
### Example Output: | ||
|
||
``` | ||
$ ./telegraf -config telegraf.conf -input-filter raindrops -test | ||
* Plugin: raindrops, Collection 1 | ||
> raindrops,port=8080,server=localhost calling=0i,writing=0i 1455479896806238204 | ||
> raindrops_listen,ip=0.0.0.0,port=8080 active=0i,queued=0i 1455479896806561938 | ||
> raindrops_listen,ip=0.0.0.0,port=8081 active=1i,queued=0i 1455479896806605749 | ||
> raindrops_listen,ip=127.0.0.1,port=8082 active=0i,queued=0i 1455479896806646315 | ||
> raindrops_listen,ip=0.0.0.0,port=8083 active=0i,queued=0i 1455479896806683252 | ||
> raindrops_listen,ip=0.0.0.0,port=8084 active=0i,queued=0i 1455479896806712025 | ||
> raindrops_listen,ip=0.0.0.0,port=3000 active=0i,queued=0i 1455479896806779197 | ||
> raindrops_listen,socket=/tmp/listen.me active=0i,queued=0i 1455479896806813907 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters