diff options
author | Christian Breunig <christian@breunig.cc> | 2024-07-01 13:07:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-01 13:07:27 +0200 |
commit | f61bd9137189661b6c497f727447b435619abc60 (patch) | |
tree | f801f11b030d9a8a3da0c7a86b536e9033e33c6a /data/templates | |
parent | ee7053d201c8b05611280020abdc6c57b571c154 (diff) | |
parent | 753eef575f06e00cce47352ded7e8ee0b91d10af (diff) | |
download | vyos-1x-f61bd9137189661b6c497f727447b435619abc60.tar.gz vyos-1x-f61bd9137189661b6c497f727447b435619abc60.zip |
Merge pull request #3738 from vyos/mergify/bp/sagitta/pr-3720
T6477: Add telegraf loki output plugin (backport #3720)
Diffstat (limited to 'data/templates')
-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]] |