2016-02-14 18:27:13 +08:00
|
|
|
# Raindrops Input Plugin
|
|
|
|
|
|
|
|
|
|
The [raindrops](http://raindrops.bogomips.org/) plugin reads from
|
2016-02-15 03:12:21 +08:00
|
|
|
specified raindops [middleware](http://raindrops.bogomips.org/Raindrops/Middleware.html) URI and adds stats to InfluxDB.
|
|
|
|
|
|
2021-11-25 02:50:01 +08:00
|
|
|
## Configuration
|
2016-02-14 18:27:13 +08:00
|
|
|
|
2022-05-24 21:49:47 +08:00
|
|
|
```toml @sample.conf
|
2022-04-12 05:32:25 +08:00
|
|
|
# Read raindrops stats (raindrops - real-time stats for preforking Rack servers)
|
2016-02-14 18:27:13 +08:00
|
|
|
[[inputs.raindrops]]
|
2022-04-12 05:32:25 +08:00
|
|
|
## An array of raindrops middleware URI to gather stats.
|
2016-02-15 03:12:21 +08:00
|
|
|
urls = ["http://localhost:8080/_raindrops"]
|
2016-02-14 18:27:13 +08:00
|
|
|
```
|
|
|
|
|
|
2021-11-25 02:50:01 +08:00
|
|
|
## Measurements & Fields
|
2016-02-15 03:12:21 +08:00
|
|
|
|
|
|
|
|
- raindrops
|
2021-11-25 02:50:01 +08:00
|
|
|
- calling (integer, count)
|
|
|
|
|
- writing (integer, count)
|
2016-02-15 03:12:21 +08:00
|
|
|
- raindrops_listen
|
2021-11-25 02:50:01 +08:00
|
|
|
- active (integer, bytes)
|
|
|
|
|
- queued (integer, bytes)
|
2016-02-15 03:12:21 +08:00
|
|
|
|
2021-11-25 02:50:01 +08:00
|
|
|
## Tags
|
2016-02-14 18:27:13 +08:00
|
|
|
|
2016-02-15 03:12:21 +08:00
|
|
|
- Raindops calling/writing of all the workers:
|
2021-11-25 02:50:01 +08:00
|
|
|
- server
|
|
|
|
|
- port
|
2016-02-15 03:12:21 +08:00
|
|
|
|
|
|
|
|
- raindrops_listen (ip:port):
|
2021-11-25 02:50:01 +08:00
|
|
|
- ip
|
|
|
|
|
- port
|
2016-02-15 03:12:21 +08:00
|
|
|
|
|
|
|
|
- raindrops_listen (Unix Socket):
|
2021-11-25 02:50:01 +08:00
|
|
|
- socket
|
2016-02-15 03:12:21 +08:00
|
|
|
|
2021-11-25 02:50:01 +08:00
|
|
|
## Example Output
|
2016-02-15 03:12:21 +08:00
|
|
|
|
2021-11-25 02:50:01 +08:00
|
|
|
```shell
|
2017-05-13 06:22:29 +08:00
|
|
|
$ ./telegraf --config telegraf.conf --input-filter raindrops --test
|
2016-02-15 03:12:21 +08:00
|
|
|
* 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
|
|
|
|
|
```
|