diff --git a/linkerd.io/content/2.13/tasks/external-prometheus.md b/linkerd.io/content/2.13/tasks/external-prometheus.md index 0703bc166b..15f601e4d8 100644 --- a/linkerd.io/content/2.13/tasks/external-prometheus.md +++ b/linkerd.io/content/2.13/tasks/external-prometheus.md @@ -141,6 +141,8 @@ on the Prometheus instance to power the dashboard and CLI. The `prometheusUrl` field gives you a single place through which all these components can be configured to an external Prometheus URL. This is allowed both through the CLI and Helm. +If the external Prometheus is secured with basic auth, +you can include the credentials in the URL as well. ### CLI @@ -148,7 +150,14 @@ This can be done by passing a file with the above field to the `values` flag, which is available through `linkerd viz install` command. ```yaml -prometheusUrl: existing-prometheus.xyz:9090 +prometheusUrl: http://existing-prometheus.namespace:9090 +``` + +If the external Prometheus is secured with basic auth, you can include the +credentials in the URL as well. + +```yaml +prometheusUrl: http://username:password@existing-prometheus.namespace:9090 ``` Once applied, this configuration is not persistent across installs. diff --git a/linkerd.io/content/2.14/tasks/external-prometheus.md b/linkerd.io/content/2.14/tasks/external-prometheus.md index 0703bc166b..15f601e4d8 100644 --- a/linkerd.io/content/2.14/tasks/external-prometheus.md +++ b/linkerd.io/content/2.14/tasks/external-prometheus.md @@ -141,6 +141,8 @@ on the Prometheus instance to power the dashboard and CLI. The `prometheusUrl` field gives you a single place through which all these components can be configured to an external Prometheus URL. This is allowed both through the CLI and Helm. +If the external Prometheus is secured with basic auth, +you can include the credentials in the URL as well. ### CLI @@ -148,7 +150,14 @@ This can be done by passing a file with the above field to the `values` flag, which is available through `linkerd viz install` command. ```yaml -prometheusUrl: existing-prometheus.xyz:9090 +prometheusUrl: http://existing-prometheus.namespace:9090 +``` + +If the external Prometheus is secured with basic auth, you can include the +credentials in the URL as well. + +```yaml +prometheusUrl: http://username:password@existing-prometheus.namespace:9090 ``` Once applied, this configuration is not persistent across installs.