2015-04-01 16:34:32 +00:00
|
|
|
package all
|
|
|
|
|
|
|
|
import (
|
2015-10-21 19:05:14 +00:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/aerospike"
|
2015-08-27 09:24:26 +00:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/apache"
|
2015-10-19 17:38:16 +00:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/bcache"
|
2015-07-31 19:46:46 +00:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/disque"
|
2015-07-08 19:07:39 +00:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/elasticsearch"
|
2015-08-06 00:29:27 +00:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/exec"
|
Add expvar plugin
This was primarily intended to consume InfluxDB-style expvars,
particularly InfluxDB's `/debug/vars` endpoint.
That endpoint follows a structure like
```json
{
"httpd::8086": {
"name": "httpd",
"tags": {
"bind": ":8086"
},
"values": {
"pointsWrittenOK": 33756,
"queryReq": 19,
"queryRespBytes": 26973,
"req": 428,
"writeReq": 205,
"writeReqBytes": 3939161
}
}
}
```
There are an arbitrary number of top-level keys in the JSON response at
the configured URLs, and this plugin will iterate through all of their
values looking for objects with keys "name", "tags", and "values"
indicating a metric to be consumed by telegraf.
Running this on current master of InfluxDB, I am able to record nearly
the same information that is normally stored in the `_internal`
database; the only measurement missing from `_internal` is `runtime`,
which is present in expvars under the "memstats" key but does not follow
the expvar format and so is not consumed in this plugin.
```
$ influx -database=telegraf -execute 'SHOW FIELD KEYS FROM /expvar/'
name: expvar_influxdb_engine
----------------------------
fieldKey
blksWrite
blksWriteBytes
blksWriteBytesC
pointsWrite
pointsWriteDedupe
name: expvar_influxdb_httpd
---------------------------
fieldKey
pingReq
pointsWrittenOK
queryReq
queryRespBytes
req
writeReq
writeReqBytes
name: expvar_influxdb_shard
---------------------------
fieldKey
fieldsCreate
seriesCreate
writePointsOk
writeReq
name: expvar_influxdb_subscriber
--------------------------------
fieldKey
pointsWritten
name: expvar_influxdb_wal
-------------------------
fieldKey
autoFlush
flushDuration
idleFlush
memSize
metaFlush
pointsFlush
pointsWrite
pointsWriteReq
seriesFlush
name: expvar_influxdb_write
---------------------------
fieldKey
pointReq
pointReqLocal
req
subWriteOk
writeOk
```
2015-12-05 22:15:58 +00:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/expvar"
|
2015-07-22 23:38:12 +00:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/haproxy"
|
2015-08-04 21:48:13 +00:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/httpjson"
|
2015-10-28 08:13:22 +00:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/jolokia"
|
2015-06-27 03:56:14 +00:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/kafka_consumer"
|
2015-08-07 08:58:24 +00:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/leofs"
|
2015-08-04 12:47:50 +00:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/lustre2"
|
2015-12-01 21:05:24 +00:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/mailchimp"
|
2015-06-23 21:51:32 +00:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/memcached"
|
2015-07-07 01:20:11 +00:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/mongodb"
|
2015-05-22 23:45:14 +00:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/mysql"
|
2015-07-27 09:28:24 +00:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/nginx"
|
2015-10-12 01:36:21 +00:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/phpfpm"
|
2015-09-02 23:16:52 +00:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/ping"
|
2015-05-22 23:45:14 +00:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/postgresql"
|
2015-10-04 05:09:18 +00:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/procstat"
|
2015-06-20 12:38:01 +00:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/prometheus"
|
2015-10-16 11:45:35 +00:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/puppetagent"
|
2015-07-21 17:29:25 +00:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/rabbitmq"
|
2015-05-22 23:45:14 +00:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/redis"
|
2015-07-07 00:27:09 +00:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/rethinkdb"
|
2015-09-24 18:06:11 +00:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/statsd"
|
2015-05-22 23:45:14 +00:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/system"
|
2015-12-01 00:29:55 +00:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/trig"
|
2015-11-12 16:16:49 +00:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/twemproxy"
|
2015-11-03 15:53:09 +00:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/zfs"
|
2015-10-13 23:15:39 +00:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/zookeeper"
|
2015-04-01 16:34:32 +00:00
|
|
|
)
|