2015-04-02 00:34:32 +08:00
|
|
|
package all
|
|
|
|
|
|
|
|
|
|
import (
|
2015-10-22 03:05:14 +08:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/aerospike"
|
2015-08-27 17:24:26 +08:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/apache"
|
2015-10-20 01:38:16 +08:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/bcache"
|
2015-08-01 03:46:46 +08:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/disque"
|
2015-07-09 03:07:39 +08:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/elasticsearch"
|
2015-08-06 08:29:27 +08:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/exec"
|
2015-07-23 07:38:12 +08:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/haproxy"
|
2015-08-05 05:48:13 +08:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/httpjson"
|
Add influxdb 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 under the "memstats" key but does not follow the format
and so is not consumed in this plugin.
```
$ influx -database=telegraf -execute 'SHOW FIELD KEYS FROM /influxdb/'
name: influxdb_influxdb_engine
----------------------------
fieldKey
blksWrite
blksWriteBytes
blksWriteBytesC
pointsWrite
pointsWriteDedupe
name: influxdb_influxdb_httpd
---------------------------
fieldKey
pingReq
pointsWrittenOK
queryReq
queryRespBytes
req
writeReq
writeReqBytes
name: influxdb_influxdb_shard
---------------------------
fieldKey
fieldsCreate
seriesCreate
writePointsOk
writeReq
name: influxdb_influxdb_subscriber
--------------------------------
fieldKey
pointsWritten
name: influxdb_influxdb_wal
-------------------------
fieldKey
autoFlush
flushDuration
idleFlush
memSize
metaFlush
pointsFlush
pointsWrite
pointsWriteReq
seriesFlush
name: influxdb_influxdb_write
---------------------------
fieldKey
pointReq
pointReqLocal
req
subWriteOk
writeOk
```
2015-12-06 06:15:58 +08:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/influxdb"
|
2015-10-28 16:13:22 +08:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/jolokia"
|
2015-06-27 11:56:14 +08:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/kafka_consumer"
|
2015-08-07 16:58:24 +08:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/leofs"
|
2015-08-04 20:47:50 +08:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/lustre2"
|
2015-12-02 05:05:24 +08:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/mailchimp"
|
2015-06-24 05:51:32 +08:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/memcached"
|
2015-07-07 09:20:11 +08:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/mongodb"
|
2015-05-23 07:45:14 +08:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/mysql"
|
2015-07-27 17:28:24 +08:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/nginx"
|
2015-10-12 09:36:21 +08:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/phpfpm"
|
2015-09-03 07:16:52 +08:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/ping"
|
2015-05-23 07:45:14 +08:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/postgresql"
|
2015-10-04 13:09:18 +08:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/procstat"
|
2015-06-20 20:38:01 +08:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/prometheus"
|
2015-10-16 19:45:35 +08:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/puppetagent"
|
2015-07-22 01:29:25 +08:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/rabbitmq"
|
2015-05-23 07:45:14 +08:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/redis"
|
2015-07-07 08:27:09 +08:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/rethinkdb"
|
2015-09-25 02:06:11 +08:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/statsd"
|
2015-05-23 07:45:14 +08:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/system"
|
2015-12-01 08:29:55 +08:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/trig"
|
2015-11-13 00:16:49 +08:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/twemproxy"
|
2015-11-03 23:53:09 +08:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/zfs"
|
2015-10-14 07:15:39 +08:00
|
|
|
_ "github.com/influxdb/telegraf/plugins/zookeeper"
|
2015-04-02 00:34:32 +08:00
|
|
|
)
|