]> git.proxmox.com Git - pve-docs.git/blob - pve-external-metric-server.adoc
document ids for status.cfg
[pve-docs.git] / pve-external-metric-server.adoc
1 External Metric Server
2 ----------------------
3 ifdef::wiki[]
4 :pve-toplevel:
5 endif::wiki[]
6
7 Starting with {pve} 4.0, you can define external metric servers,
8 which will be sent various stats about your hosts, virtual machines and storages.
9
10 Currently supported are:
11
12 * graphite (see http://graphiteapp.org )
13 * influxdb (see https://www.influxdata.com/time-series-platform/influxdb/ )
14
15 The server definitions are saved in
16 /etc/pve/status.cfg
17
18 Graphite server configuration
19 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20
21 The definition of a server is:
22
23 graphite: your-id
24 server your-server
25 port your-port
26 path your-path
27
28 where your-port defaults to *2003*
29 and your-path defaults to *proxmox*
30
31 {pve} sends the data over udp, so the graphite server
32 has to be configured for this
33
34 Influxdb plugin configuration
35 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
36
37 The definition is:
38
39 influxdb: your-id
40 server your-server
41 port your-port
42
43 {pve} sends the data over udp, so the influxdb server
44 has to be configured for this
45
46 Here is an example configuration for influxdb (on your influxdb server):
47
48 [[udp]]
49 enabled = true
50 bind-address = "0.0.0.0:8089"
51 database = "proxmox"
52 batch-size = 1000
53 batch-timeout = "1s"
54
55 With this configuration, your server listens on all IP addresses on
56 port 8089, and writes the data in the *proxmox* database
57
58 Multiple Definitions and Example
59 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
60
61 The *id* is optional, but if you want to have multiple definitions of a single
62 type, then the ids must be different.
63
64 Here is an example of a finished status.cfg
65
66 graphite:
67 server 10.0.0.5
68
69 influxdb: influx1
70 server 10.0.0.6
71 port 8089
72
73 influxdb: influx2
74 server 10.0.0.7
75 port 8090