mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-15 00:13:30 +01:00
docs: document 20bb5e703c
This commit is contained in:
parent
43dfa421c3
commit
ab966f8a7a
@ -1,7 +1,7 @@
|
|||||||
# vmauth
|
# vmauth
|
||||||
|
|
||||||
`vmauth` is a simple auth proxy, router and [load balancer](#load-balancing) for [VictoriaMetrics](https://github.com/VictoriaMetrics/VictoriaMetrics).
|
`vmauth` is a simple auth proxy, router and [load balancer](#load-balancing) for [VictoriaMetrics](https://github.com/VictoriaMetrics/VictoriaMetrics).
|
||||||
It reads auth credentials from `Authorization` http header ([Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication) and `Bearer token` is supported),
|
It reads auth credentials from `Authorization` http header ([Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication), `Bearer token` and [InfluxDB authorization](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/1897) is supported),
|
||||||
matches them against configs pointed by [-auth.config](#auth-config) command-line flag and proxies incoming HTTP requests to the configured per-user `url_prefix` on successful match.
|
matches them against configs pointed by [-auth.config](#auth-config) command-line flag and proxies incoming HTTP requests to the configured per-user `url_prefix` on successful match.
|
||||||
The `-auth.config` can point to either local file or to http url.
|
The `-auth.config` can point to either local file or to http url.
|
||||||
|
|
||||||
@ -39,7 +39,8 @@ Each `url_prefix` in the [-auth.config](#auth-config) may contain either a singl
|
|||||||
# Username and bearer_token values must be unique.
|
# Username and bearer_token values must be unique.
|
||||||
|
|
||||||
users:
|
users:
|
||||||
# Requests with the 'Authorization: Bearer XXXX' header are proxied to http://localhost:8428 .
|
# Requests with the 'Authorization: Bearer XXXX' and 'Authorization: Token XXXX'
|
||||||
|
# header are proxied to http://localhost:8428 .
|
||||||
# For example, http://vmauth:8427/api/v1/query is proxied to http://localhost:8428/api/v1/query
|
# For example, http://vmauth:8427/api/v1/query is proxied to http://localhost:8428/api/v1/query
|
||||||
# Requests with the Basic Auth username=XXXX are proxied to http://localhost:8428 as well.
|
# Requests with the Basic Auth username=XXXX are proxied to http://localhost:8428 as well.
|
||||||
- bearer_token: "XXXX"
|
- bearer_token: "XXXX"
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
# Username and bearer_token values must be unique.
|
# Username and bearer_token values must be unique.
|
||||||
|
|
||||||
users:
|
users:
|
||||||
# Requests with the 'Authorization: Bearer XXXX' header are proxied to http://localhost:8428 .
|
# Requests with the 'Authorization: Bearer XXXX' and 'Authorization: Token XXXX'
|
||||||
|
# header are proxied to http://localhost:8428 .
|
||||||
# For example, http://vmauth:8427/api/v1/query is proxied to http://localhost:8428/api/v1/query
|
# For example, http://vmauth:8427/api/v1/query is proxied to http://localhost:8428/api/v1/query
|
||||||
# Requests with the Basic Auth username=XXXX are proxied to http://localhost:8428 as well.
|
# Requests with the Basic Auth username=XXXX are proxied to http://localhost:8428 as well.
|
||||||
- bearer_token: "XXXX"
|
- bearer_token: "XXXX"
|
||||||
|
@ -20,6 +20,7 @@ The following tip changes can be tested by building VictoriaMetrics components f
|
|||||||
* FEATURE: [vmalert](https://docs.victoriametrics.com/vmalert.html): add `sortByLabel` template function in order to be consistent with Prometheus. See [these docs](https://prometheus.io/docs/prometheus/latest/configuration/template_reference/#functions) for more details.
|
* FEATURE: [vmalert](https://docs.victoriametrics.com/vmalert.html): add `sortByLabel` template function in order to be consistent with Prometheus. See [these docs](https://prometheus.io/docs/prometheus/latest/configuration/template_reference/#functions) for more details.
|
||||||
* FEATURE: [vmalert](https://docs.victoriametrics.com/vmalert.html): improve compliance with [Prometheus Alert Generator Specification](https://github.com/prometheus/compliance/blob/main/alert_generator/specification.md).
|
* FEATURE: [vmalert](https://docs.victoriametrics.com/vmalert.html): improve compliance with [Prometheus Alert Generator Specification](https://github.com/prometheus/compliance/blob/main/alert_generator/specification.md).
|
||||||
* FEATURE: [vmalert](https://docs.victoriametrics.com/vmalert.html): add `-rule.resendDelay` command-line flag, which specifies the minumum amount of time to wait before resending an alert to Alertmanager (e.g. this is equivalent to `-rules.alert.resend-delay` option from Prometheus. See [this feature request](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/1665).
|
* FEATURE: [vmalert](https://docs.victoriametrics.com/vmalert.html): add `-rule.resendDelay` command-line flag, which specifies the minumum amount of time to wait before resending an alert to Alertmanager (e.g. this is equivalent to `-rules.alert.resend-delay` option from Prometheus. See [this feature request](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/1665).
|
||||||
|
* FEATURE: [vmauth](https://docs.victoriametrics.com/vmauth.html): transparently treat `Authorization: Token ...` request headers as `Authorization: Bearer ...` request headers. This allows sending requests to `vmauth` from InfluxDB clients. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/1897). Thanks to @dcircelli for the pull request.
|
||||||
|
|
||||||
* BUGFIX: [Graphite Render API](https://docs.victoriametrics.com/#graphite-render-api-usage): return an additional point after `until` timestamp in the same way as Graphite does. Previously VictoriaMetrics didn't return this point, which could result in missing last point on the graph.
|
* BUGFIX: [Graphite Render API](https://docs.victoriametrics.com/#graphite-render-api-usage): return an additional point after `until` timestamp in the same way as Graphite does. Previously VictoriaMetrics didn't return this point, which could result in missing last point on the graph.
|
||||||
* BUGFIX: properly locate series with the given `name` and without the given `label` when using the `name{label=~"foo|"}` series selector. Previously such series could be skipped. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2255). Thanks to @jduncan0000 for discovering and fixing the issue.
|
* BUGFIX: properly locate series with the given `name` and without the given `label` when using the `name{label=~"foo|"}` series selector. Previously such series could be skipped. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2255). Thanks to @jduncan0000 for discovering and fixing the issue.
|
||||||
|
@ -5,7 +5,7 @@ sort: 5
|
|||||||
# vmauth
|
# vmauth
|
||||||
|
|
||||||
`vmauth` is a simple auth proxy, router and [load balancer](#load-balancing) for [VictoriaMetrics](https://github.com/VictoriaMetrics/VictoriaMetrics).
|
`vmauth` is a simple auth proxy, router and [load balancer](#load-balancing) for [VictoriaMetrics](https://github.com/VictoriaMetrics/VictoriaMetrics).
|
||||||
It reads auth credentials from `Authorization` http header ([Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication) and `Bearer token` is supported),
|
It reads auth credentials from `Authorization` http header ([Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication), `Bearer token` and [InfluxDB authorization](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/1897) is supported),
|
||||||
matches them against configs pointed by [-auth.config](#auth-config) command-line flag and proxies incoming HTTP requests to the configured per-user `url_prefix` on successful match.
|
matches them against configs pointed by [-auth.config](#auth-config) command-line flag and proxies incoming HTTP requests to the configured per-user `url_prefix` on successful match.
|
||||||
The `-auth.config` can point to either local file or to http url.
|
The `-auth.config` can point to either local file or to http url.
|
||||||
|
|
||||||
@ -43,7 +43,8 @@ Each `url_prefix` in the [-auth.config](#auth-config) may contain either a singl
|
|||||||
# Username and bearer_token values must be unique.
|
# Username and bearer_token values must be unique.
|
||||||
|
|
||||||
users:
|
users:
|
||||||
# Requests with the 'Authorization: Bearer XXXX' header are proxied to http://localhost:8428 .
|
# Requests with the 'Authorization: Bearer XXXX' and 'Authorization: Token XXXX'
|
||||||
|
# header are proxied to http://localhost:8428 .
|
||||||
# For example, http://vmauth:8427/api/v1/query is proxied to http://localhost:8428/api/v1/query
|
# For example, http://vmauth:8427/api/v1/query is proxied to http://localhost:8428/api/v1/query
|
||||||
# Requests with the Basic Auth username=XXXX are proxied to http://localhost:8428 as well.
|
# Requests with the Basic Auth username=XXXX are proxied to http://localhost:8428 as well.
|
||||||
- bearer_token: "XXXX"
|
- bearer_token: "XXXX"
|
||||||
|
Loading…
Reference in New Issue
Block a user