2016-01-08 00:26:33 +00:00
|
|
|
# Graphite Output Plugin
|
|
|
|
|
2016-04-08 22:04:45 +00:00
|
|
|
This plugin writes to [Graphite](http://graphite.readthedocs.org/en/latest/index.html)
|
|
|
|
via raw TCP.
|
|
|
|
|
|
|
|
## Configuration:
|
|
|
|
|
|
|
|
```toml
|
|
|
|
# Configuration for Graphite server to send metrics to
|
|
|
|
[[outputs.graphite]]
|
|
|
|
## TCP endpoint for your graphite instance.
|
2016-07-14 15:06:00 +00:00
|
|
|
## If multiple endpoints are configured, the output will be load balanced.
|
|
|
|
## Only one of the endpoints will be written to with each iteration.
|
2016-04-08 22:04:45 +00:00
|
|
|
servers = ["localhost:2003"]
|
|
|
|
## Prefix metrics name
|
|
|
|
prefix = ""
|
|
|
|
## Graphite output template
|
|
|
|
## see https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
|
|
|
|
template = "host.tags.measurement.field"
|
|
|
|
## timeout in seconds for the write connection to graphite
|
|
|
|
timeout = 2
|
|
|
|
```
|
2016-01-08 00:26:33 +00:00
|
|
|
|
|
|
|
Parameters:
|
|
|
|
|
2016-04-08 22:04:45 +00:00
|
|
|
Servers []string
|
|
|
|
Prefix string
|
|
|
|
Timeout int
|
|
|
|
Template string
|
2016-01-08 00:26:33 +00:00
|
|
|
|
|
|
|
* `servers`: List of strings, ["mygraphiteserver:2003"].
|
|
|
|
* `prefix`: String use to prefix all sent metrics.
|
2016-04-08 22:04:45 +00:00
|
|
|
* `timeout`: Connection timeout in seconds.
|
|
|
|
* `template`: Template for graphite output format, see
|
|
|
|
https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
|
|
|
|
for more details.
|