diff --git a/app/vmalert/README.md b/app/vmalert/README.md index 7c72894d5..6f705db6f 100644 --- a/app/vmalert/README.md +++ b/app/vmalert/README.md @@ -246,10 +246,10 @@ The shortlist of configuration flags is the following: -metricsAuthKey string Auth key for /metrics. It overrides httpAuth settings -notifier.basicAuth.password array - Optional basic auth password for -datasource.url + Optional basic auth password for -notifier.url Supports array of values separated by comma or specified via multiple flags. -notifier.basicAuth.username array - Optional basic auth username for -datasource.url + Optional basic auth username for -notifier.url Supports array of values separated by comma or specified via multiple flags. -notifier.tlsCAFile array Optional path to TLS CA file to use for verifying connections to -notifier.url. By default system CA is used diff --git a/app/vmalert/notifier/init.go b/app/vmalert/notifier/init.go index 696e398e5..69554b8c0 100644 --- a/app/vmalert/notifier/init.go +++ b/app/vmalert/notifier/init.go @@ -10,8 +10,8 @@ import ( var ( addrs = flagutil.NewArray("notifier.url", "Prometheus alertmanager URL. Required parameter. e.g. http://127.0.0.1:9093") - basicAuthUsername = flagutil.NewArray("notifier.basicAuth.username", "Optional basic auth username for -datasource.url") - basicAuthPassword = flagutil.NewArray("notifier.basicAuth.password", "Optional basic auth password for -datasource.url") + basicAuthUsername = flagutil.NewArray("notifier.basicAuth.username", "Optional basic auth username for -notifier.url") + basicAuthPassword = flagutil.NewArray("notifier.basicAuth.password", "Optional basic auth password for -notifier.url") tlsInsecureSkipVerify = flagutil.NewArrayBool("notifier.tlsInsecureSkipVerify", "Whether to skip tls verification when connecting to -notifier.url") tlsCertFile = flagutil.NewArray("notifier.tlsCertFile", "Optional path to client-side TLS certificate file to use when connecting to -notifier.url") diff --git a/docs/vmalert.md b/docs/vmalert.md index 7c72894d5..6f705db6f 100644 --- a/docs/vmalert.md +++ b/docs/vmalert.md @@ -246,10 +246,10 @@ The shortlist of configuration flags is the following: -metricsAuthKey string Auth key for /metrics. It overrides httpAuth settings -notifier.basicAuth.password array - Optional basic auth password for -datasource.url + Optional basic auth password for -notifier.url Supports array of values separated by comma or specified via multiple flags. -notifier.basicAuth.username array - Optional basic auth username for -datasource.url + Optional basic auth username for -notifier.url Supports array of values separated by comma or specified via multiple flags. -notifier.tlsCAFile array Optional path to TLS CA file to use for verifying connections to -notifier.url. By default system CA is used