aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/stream.conf.j2
blob: f1fb02d569a2b3e1accfd9a9101b32108654f231 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{% if netdata_streaming_configuration.upstream is defined %}
[stream]
    enabled = yes
    destination = {{ netdata_streaming_configuration.upstream["destination"] }}
    api key = {{ netdata_streaming_configuration.upstream["api key"] }}
{% endif %}
{% if netdata_streaming_configuration.downstreams is defined %}
{% for downstream in netdata_streaming_configuration.downstreams %}
[{{ downstream.api_key }}]
    enabled = yes
{% for (key,value) in downstream | dictsort if not key in ['name','api_key'] %}
    {{ key }} = {{ value }}
{% endfor %}
{% endfor %}
{% endif %}