From 3750b0b72e586f62e2f69005a0fc8fd4b2bc81a1 Mon Sep 17 00:00:00 2001 From: ace Date: Thu, 23 Dec 2021 18:07:47 +0300 Subject: [PATCH] add /api/v1/import for vmauth urls --- templates/etc/victoriametrics/vmauth/config.yml.j2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/etc/victoriametrics/vmauth/config.yml.j2 b/templates/etc/victoriametrics/vmauth/config.yml.j2 index cedc0c9..aba8fac 100644 --- a/templates/etc/victoriametrics/vmauth/config.yml.j2 +++ b/templates/etc/victoriametrics/vmauth/config.yml.j2 @@ -87,7 +87,9 @@ users: {% for select in groups[victoriametrics_vmselect_group] %} - "http://{{ hostvars[select]['inventory_hostname'] }}:8481/select/{{ user.id }}/prometheus" {% endfor %} - - src_paths: ["/api/v1/write"] + - src_paths: + - "/api/v1/write" + - "/api/v1/import" url_prefix: {% for insert in groups[victoriametrics_vminsert_group] %} - "http://{{ hostvars[insert]['inventory_hostname'] }}:8480/insert/{{ user.id }}/prometheus"