ansible/roles/netdata/templates/stream.conf.j2
2021-01-23 18:45:20 -06:00

34 lines
890 B
Django/Jinja
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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 %}