34 lines
890 B
Plaintext
34 lines
890 B
Plaintext
|
# netdata stream configuration
|
|||
|
|
|||
|
{% if (netdata_stream_master_node == '') or netdata_stream_proxy %}
|
|||
|
[{{ netdata_stream_receive_api_key }}]
|
|||
|
# enable/disable this API key
|
|||
|
enabled = yes
|
|||
|
|
|||
|
# one hour of data for each of the slaves
|
|||
|
default history = 3600
|
|||
|
|
|||
|
# do not save slave metrics on disk
|
|||
|
default memory = ram
|
|||
|
|
|||
|
# alarms checks, only while the slave is connected
|
|||
|
health enabled by default = auto
|
|||
|
|
|||
|
{% endif %}
|
|||
|
{% if netdata_stream_master_node != '' %}
|
|||
|
[stream]
|
|||
|
# stream metrics to another netdata
|
|||
|
enabled = yes
|
|||
|
|
|||
|
# the IP and PORT of the master
|
|||
|
destination = {{ netdata_stream_master_node }}
|
|||
|
|
|||
|
# TLS client options
|
|||
|
{% for ssl_option, ssl_value in netdata_client_ssl_options.items() %}
|
|||
|
{{ ssl_option }} = {{ ssl_value }}
|
|||
|
{% endfor %}
|
|||
|
|
|||
|
# the API key to use
|
|||
|
api key = {{ netdata_stream_send_api_key }}
|
|||
|
{% endif %}
|