diff options
author | Christian Breunig <christian@breunig.cc> | 2024-06-28 14:47:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-28 14:47:37 +0200 |
commit | f36271bd2f91aa6cf0bc0176160d3a2abfb9a21f (patch) | |
tree | a8fe21633e1698e65676b6c9f0e0a7f963a8f83e /data/templates/telegraf/telegraf.j2 | |
parent | 12fcf6c5ef2e5678b0b88c34d6c031435d85ec68 (diff) | |
parent | 3365eb7ab99fa9a259fe440eb51e82fc0a0a4dc6 (diff) | |
download | vyos-1x-f36271bd2f91aa6cf0bc0176160d3a2abfb9a21f.tar.gz vyos-1x-f36271bd2f91aa6cf0bc0176160d3a2abfb9a21f.zip |
Merge pull request #3720 from sever-sever/T6477
T6477: Add telegraf loki output plugin
Diffstat (limited to 'data/templates/telegraf/telegraf.j2')
-rw-r--r-- | data/templates/telegraf/telegraf.j2 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/data/templates/telegraf/telegraf.j2 b/data/templates/telegraf/telegraf.j2 index 9623bdec6..f382dbf2e 100644 --- a/data/templates/telegraf/telegraf.j2 +++ b/data/templates/telegraf/telegraf.j2 @@ -41,6 +41,21 @@ bucket = "{{ influxdb.bucket }}" ### End InfluxDB2 ### {% endif %} +{% if loki is vyos_defined %} +### Loki ### +[[outputs.loki]] + ## The domain of Loki + domain = "{{ loki.url }}:{{ loki.port }}" +{% if loki.authentication.username is vyos_defined and loki.authentication.password is vyos_defined %} + ## Basic Authentication + username = "{{ loki.authentication.username }}" + password = "{{ loki.authentication.password }}" +{% endif %} +{% if loki.metric_name_label is vyos_defined %} +metric_name_label = "{{ loki.metric_name_label }}" +{% endif %} +### End Loki ### +{% endif %} {% if prometheus_client is vyos_defined %} ### Prometheus ### [[outputs.prometheus_client]] |