mirror of
https://gitea.0xace.cc/ansible-galaxy/victoriametrics.git
synced 2024-11-24 23:56:39 +00:00
update username and password for vmagent template
This commit is contained in:
parent
0a7e14c945
commit
3a6431deac
@ -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.
|
# 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(',') }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user