Skip to content

Commit

Permalink
Example without basic auth added. Same changes in 2.14 done
Browse files Browse the repository at this point in the history
Signed-off-by: JadKHaddad <[email protected]>
  • Loading branch information
JadKHaddad committed Nov 13, 2023
1 parent 1c66de7 commit cb7886d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
11 changes: 10 additions & 1 deletion linkerd.io/content/2.13/tasks/external-prometheus.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,22 @@ 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.
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

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: 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:[email protected]:9090
```
Expand Down
11 changes: 10 additions & 1 deletion linkerd.io/content/2.14/tasks/external-prometheus.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,23 @@ 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

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:[email protected]:9090
```
Once applied, this configuration is not persistent across installs.
Expand Down

0 comments on commit cb7886d

Please sign in to comment.