Skip to content

Commit 6c3fab4

Browse files
ektichbrian-brazil
authored andcommitted
Proper curl invocation in Testing section (#1195)
Signed-off-by: Vanush "Misha" Paturyan <[email protected]>
1 parent 14ad76c commit 6c3fab4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/docs/guides/basic-auth.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,15 @@ prometheus \
7070
You can use cURL to interact with your local nginx/Prometheus setup. Try this request:
7171

7272
```bash
73-
curl --head http://localhost/prometheus/graph
73+
curl --head http://localhost:12321/prometheus/graph
7474
```
7575

7676
This will return a `401 Unauthorized` response because you've failed to supply a valid username and password. The response will also contain a `WWW-Authenticate: Basic realm="Prometheus"` header supplied by nginx, indicating that the `Prometheus` basic auth realm, specified by the `auth_basic` parameter for nginx, is enforced.
7777

7878
To successfully access Prometheus endpoints using basic auth, for example the `/metrics` endpoint, supply the proper username using the `-u` flag and supply the password when prompted:
7979

8080
```bash
81-
curl -u admin http://localhost/prometheus/metrics
81+
curl -u admin http://localhost:12321/prometheus/metrics
8282
Enter host password for user 'admin':
8383
```
8484

0 commit comments

Comments
 (0)