]> git.proxmox.com Git - ceph.git/blame - ceph/doc/mgr/telegraf.rst
import quincy beta 17.1.0
[ceph.git] / ceph / doc / mgr / telegraf.rst
CommitLineData
11fdf7f2
TL
1===============
2Telegraf Module
3===============
4The Telegraf module collects and sends statistics series to a Telegraf agent.
5
6The Telegraf agent can buffer, aggregate, parse and process the data before
7sending it to an output which can be InfluxDB, ElasticSearch and many more.
8
9Currently the only way to send statistics to Telegraf from this module is to
10use the socket listener. The module can send statistics over UDP, TCP or
11a UNIX socket.
12
13The Telegraf module was introduced in the 13.x *Mimic* release.
14
15--------
16Enabling
17--------
18
19To enable the module, use the following command:
20
21::
22
23 ceph mgr module enable telegraf
24
25If you wish to subsequently disable the module, you can use the corresponding
26*disable* command:
27
28::
29
30 ceph mgr module disable telegraf
31
32-------------
33Configuration
34-------------
35
36For the telegraf module to send statistics to a Telegraf agent it is
37required to configure the address to send the statistics to.
38
39Set configuration values using the following command:
40
41::
42
43 ceph telegraf config-set <key> <value>
44
45
46The most important settings are ``address`` and ``interval``.
47
48For example, a typical configuration might look like this:
49
50::
51
52 ceph telegraf config-set address udp://:8094
53 ceph telegraf config-set interval 10
54
55The default values for these configuration keys are:
56
57- address: unixgram:///tmp/telegraf.sock
58- interval: 15
59
60----------------
61Socket Listener
62----------------
63The module only supports sending data to Telegraf through the socket listener
64of the Telegraf module using the Influx data format.
65
20effc67 66A typical Telegraf configuration might be
11fdf7f2 67
20effc67 68::
11fdf7f2
TL
69
70 [[inputs.socket_listener]]
71 # service_address = "tcp://:8094"
72 # service_address = "tcp://127.0.0.1:http"
73 # service_address = "tcp4://:8094"
74 # service_address = "tcp6://:8094"
75 # service_address = "tcp6://[2001:db8::1]:8094"
76 service_address = "udp://:8094"
77 # service_address = "udp4://:8094"
78 # service_address = "udp6://:8094"
79 # service_address = "unix:///tmp/telegraf.sock"
80 # service_address = "unixgram:///tmp/telegraf.sock"
81 data_format = "influx"
82
83In this case the `address` configuration option for the module would need to be set
84to:
85
20effc67
TL
86::
87
11fdf7f2
TL
88 udp://:8094
89
90
91Refer to the Telegraf documentation for more configuration options.