]> arthur.barton.de Git - netdata.git/blob - conf.d/stream.conf
2dcb25a629f40025ef7675998ab04a74d9c15609
[netdata.git] / conf.d / stream.conf
1 # netdata configuration for aggregating data from remote hosts
2 #
3 # API keys authorize a pair of sending-receiving netdata servers.
4 # Once their communication is authorized, they can exchange metrics for any
5 # number of hosts.
6 #
7 # You can generate API keys, with the linux command: uuidgen
8 #
9 # -----------------------------------------------------------------------------
10 # 1. SLAVE NETDATA - THE ONE THAT WILL BE SENDING METRICS
11
12 [stream]
13         enabled = no
14
15         # where to send metrics to?
16         # A space separated list of IP:PORT is accepted. The first available will
17         # get the metrics.
18         # IPv6 addresses should be [IP]:PORT
19         destination =
20
21         # The API_KEY to use (as the sender)
22         api key =
23
24         # other options (uncomment and set)
25
26         # timeout seconds = 60
27         # default port = 19999
28         # buffer size bytes = 1048576
29         # reconnect delay seconds = 5
30         # initial clock resync iterations = 60
31
32
33 # -----------------------------------------------------------------------------
34 # 2. MASTER NETDATA - THE ONE THAT WILL BE RECEIVING METRICS
35 #
36 #    You can have one API key per slave, or the same API key for all slaves.
37 #
38 #    All options below are used in this order:
39 #
40 #    a) MACHINE_GUID (settings for each machine)
41 #    b) API_KEY      (settings for the API key)
42 #    c) this netdata defaults (as in netdata.conf)
43 #
44 #    You can combine the above (the more specific setting will be used).
45
46 # API key authentication
47 # If the key is not listed here, it will not be able to connect.
48
49 [API_KEY]
50     # Default settings for the API key
51
52     # You can disable the API key, by setting this to: no
53     # The default (for unknown API keys) is also: no
54     enabled = no
55
56     # The default history in entries, for all hosts using this API key.
57     # You can also set it per host below.
58     # If you don't set it here, the history size of the central netdata
59     # will be used
60     default history = 3600
61
62     # The default memory mode to be used for all hosts using this API key.
63     # You can also set it per host below.
64     # If you don't set it here, the memory mode of netdata.conf will be used.
65     # Valid modes:
66     #    save    save on exit, load on start
67     #    map     like swap (continuously syncing to disks)
68     #    ram     keep it in RAM, don't touch the disk
69     #    none    no database (passing through this netdata)
70     default memory mode = ram
71
72     # Shall we enable health monitoring for the hosts using this API key?
73     # 3 values:
74     #    yes     enable alarms
75     #    no      do not enable alarms
76     #    auto    enable alarms, only when the sending netdata is connected
77     # You can also set it per host, below.
78     # The default is the same as to netdata.conf
79     health enabled by default = auto
80
81     # postpone alarms for a short period after the sender is connected
82     default postpone alarms on connect seconds = 60
83
84     # need to route metrics differently? set these.
85     # the defaults are the ones at the [stream] section
86     #default proxy enabled = yes | no
87     #default proxy destination = IP:PORT IP:PORT ...
88     #default proxy api key = API_KEY
89
90
91 # -----------------------------------------------------------------------------
92 # Each netdata has a unique GUID - generated the first time netdata starts.
93 # You can find it at /var/lib/netdata/registry/netdata.public.unique.id
94 # The host sending data will have one. If it is static and you can find it,
95 # you can give settings for each specific host here.
96
97 [MACHINE_GUID]
98     # enable this host: yes | no
99     # THIS IS NOT A SECURITY MECHANISM - AN ATTACKER CAN SET ANY OTHER GUID.
100     # Use only the API key for security.
101     enabled = no
102
103     # The number of entries in the database
104     history = 3600
105
106     # The memory mode of the database: save | map | ram | none
107     memory mode = save
108
109     # Health / alarms control: yes | no | auto
110     health enabled = yes
111
112     # postpone alarms when the sender connects
113     postpone alarms on connect seconds = 60
114
115     # need to route metrics differently?
116     #proxy enabled = yes | no
117     #proxy destination = IP:PORT IP:PORT ...
118     #proxy api key = API_KEY