From 3a6431deac583582371f69a15355ab29a6d939cb Mon Sep 17 00:00:00 2001 From: ace Date: Wed, 22 Dec 2021 20:18:22 +0300 Subject: [PATCH] update username and password for vmagent template --- templates/etc/victoriametrics/vmagent/vmagent.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/etc/victoriametrics/vmagent/vmagent.conf.j2 b/templates/etc/victoriametrics/vmagent/vmagent.conf.j2 index 07ced9c..30b5474 100644 --- a/templates/etc/victoriametrics/vmagent/vmagent.conf.j2 +++ b/templates/etc/victoriametrics/vmagent/vmagent.conf.j2 @@ -12,4 +12,4 @@ # # Then send Influx data to http://vmagent-host:8429. See these https://docs.victoriametrics.com/Single-server-VictoriaMetrics.html#how-to-send-data-from-influxdb-compatible-agents-such-as-telegraf for more details. -ARGS="-promscrape.config={{ victoriametrics_vmagent_promscrape_config_file }} -remoteWrite.url={% for host in groups[victoriametrics_vmauth_group] %}http://{{ hostvars[host]['inventory_hostname'] }}:8427/api/v1/write{% if not loop.last %},{% endif %}{% endfor %} -remoteWrite.tmpDataPath={{ victoriametrics_vmagent_remoteWrite_tmpDataPath }} -remoteWrite.basicAuth.password=foobar,foobar,foobar -remoteWrite.basicAuth.username=foobar,foobar,foobar" +ARGS="-promscrape.config={{ victoriametrics_vmagent_promscrape_config_file }} -remoteWrite.url={% for host in groups[victoriametrics_vmauth_group] %}http://{{ hostvars[host]['inventory_hostname'] }}:8427/api/v1/write{% if not loop.last %},{% endif %}{% endfor %} -remoteWrite.tmpDataPath={{ victoriametrics_vmagent_remoteWrite_tmpDataPath }} -remoteWrite.basicAuth.username={{ victoriametrics_vmauth_users | map(attribute='username')|join(',') }} -remoteWrite.basicAuth.password={{ victoriametrics_vmauth_users | map(attribute='password')|join(',') }}"