aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/stream.conf.j2
diff options
context:
space:
mode:
authorGaëtan Duchaussois <gaetan.duchaussois@fretlink.com>2021-03-01 18:18:24 +0100
committerGaëtan Duchaussois <gaetan.duchaussois@fretlink.com>2021-03-01 18:18:24 +0100
commit08e40e4a45d715a367dbd60e3fe89553ce479d2c (patch)
tree6b4e8b57c6b485c83f88e838c71c093a76b7f941 /templates/stream.conf.j2
downloadansible-netdata_straight-08e40e4a45d715a367dbd60e3fe89553ce479d2c.tar.gz
ansible-netdata_straight-08e40e4a45d715a367dbd60e3fe89553ce479d2c.tar.zst
ansible-netdata_straight-08e40e4a45d715a367dbd60e3fe89553ce479d2c.zip
initial import from private repo
Diffstat (limited to 'templates/stream.conf.j2')
-rw-r--r--templates/stream.conf.j215
1 files changed, 15 insertions, 0 deletions
diff --git a/templates/stream.conf.j2 b/templates/stream.conf.j2
new file mode 100644
index 0000000..f1fb02d
--- /dev/null
+++ b/templates/stream.conf.j2
@@ -0,0 +1,15 @@
1{% if netdata_streaming_configuration.upstream is defined %}
2[stream]
3 enabled = yes
4 destination = {{ netdata_streaming_configuration.upstream["destination"] }}
5 api key = {{ netdata_streaming_configuration.upstream["api key"] }}
6{% endif %}
7{% if netdata_streaming_configuration.downstreams is defined %}
8{% for downstream in netdata_streaming_configuration.downstreams %}
9[{{ downstream.api_key }}]
10 enabled = yes
11{% for (key,value) in downstream | dictsort if not key in ['name','api_key'] %}
12 {{ key }} = {{ value }}
13{% endfor %}
14{% endfor %}
15{% endif %}