add /api/v1/import for vmauth urls

This commit is contained in:
ace 2021-12-23 18:07:47 +03:00
parent 3a6431deac
commit 3750b0b72e
No known key found for this signature in database
GPG Key ID: 2E47CC17BA7F8CF0

View File

@ -87,7 +87,9 @@ users:
{% for select in groups[victoriametrics_vmselect_group] %} {% for select in groups[victoriametrics_vmselect_group] %}
- "http://{{ hostvars[select]['inventory_hostname'] }}:8481/select/{{ user.id }}/prometheus" - "http://{{ hostvars[select]['inventory_hostname'] }}:8481/select/{{ user.id }}/prometheus"
{% endfor %} {% endfor %}
- src_paths: ["/api/v1/write"] - src_paths:
- "/api/v1/write"
- "/api/v1/import"
url_prefix: url_prefix:
{% for insert in groups[victoriametrics_vminsert_group] %} {% for insert in groups[victoriametrics_vminsert_group] %}
- "http://{{ hostvars[insert]['inventory_hostname'] }}:8480/insert/{{ user.id }}/prometheus" - "http://{{ hostvars[insert]['inventory_hostname'] }}:8480/insert/{{ user.id }}/prometheus"