vmalert: Allow configuring http.pathPrefix

*vmalert* requires explicit configuration when it is behind a reverse
proxy.
btop
Dustin 2022-08-12 13:10:36 -05:00
parent fe87edea21
commit ce3e88932d
2 changed files with 4 additions and 0 deletions

View File

@ -7,3 +7,4 @@ vmalert_external_alert_source: >-
{% raw -%}
explore?orgId=1&left=%5B"now-1h","now","metrics",%7B"expr":"{{$expr|queryEscape}}"%7D%5D
{%- endraw %}
vmalert_http_path_prefix: /vmalert/

View File

@ -16,3 +16,6 @@ external_url={{ vmalert_external_url }}
{% if vmalert_external_alert_source|d %}
external_alert_source={{ vmalert_external_alert_source }}
{% endif %}
{% if vmalert_http_path_prefix|d %}
http_pathPrefix={{ vmalert_http_path_prefix }}
{% endif %}