From 8661dc46245e521b496ff1e3657624726ec30b62 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Tue, 31 Mar 2020 22:37:44 +0300 Subject: [PATCH] docs/Single-server-VictoriaMetrics.md: mention that environment vars may be prefixed with `-envflag.prefix` --- README.md | 1 + docs/Single-server-VictoriaMetrics.md | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 3d8ee4334..02528ccec 100644 --- a/README.md +++ b/README.md @@ -148,6 +148,7 @@ Each flag values can be set thru environment variables by following these rules: * The `-envflag.enable` flag must be set * Each `.` in flag names must be substituted by `_` (for example `-insert.maxQueueDuration ` will translate to `insert_maxQueueDuration=`) * For repeating flags, an alternative syntax can be used by joining the different values into one using `,` as separator (for example `-storageNode -storageNode ` will translate to `storageNode=,`) +* It is possible setting prefix for environment vars with `-envflag.prefix`. For instance, if `-envflag.prefix=VM_`, then env vars must be prepended with `VM_` ### Prometheus setup diff --git a/docs/Single-server-VictoriaMetrics.md b/docs/Single-server-VictoriaMetrics.md index 92bb5a711..108c537f6 100644 --- a/docs/Single-server-VictoriaMetrics.md +++ b/docs/Single-server-VictoriaMetrics.md @@ -138,6 +138,7 @@ Each flag values can be set thru environment variables by following these rules: * The `-envflag.enable` flag must be set * Each `.` in flag names must be substituted by `_` (for example `-insert.maxQueueDuration ` will translate to `insert_maxQueueDuration=`) * For repeating flags, an alternative syntax can be used by joining the different values into one using `,` as separator (for example `-storageNode -storageNode ` will translate to `storageNode=,`) +* It is possible setting prefix for environment vars with `-envflag.prefix`. For instance, if `-envflag.prefix=VM_`, then env vars must be prepended with `VM_` ### Prometheus setup