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(',') }}"