Skip to content

Commit 6941801

Browse files
authored
Fix authorization header in metrics docs (fixes #1964) (#1969)
1 parent 38f4bc8 commit 6941801

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

monitoring/metrics.html.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Queries can be sent to the following endpoint:
6060
https://api.fly.io/prometheus/<org-slug>/
6161
```
6262

63-
You'll need to authenticate with a Fly Access Token sent in the [standard](https://www.rfc-editor.org/rfc/rfc6750.html) Bearer Token format (e.g., an HTTP request header `Authorization: Bearer <TOKEN>`), and you may only query series scoped to your organizations.
63+
You'll need to authenticate with a Fly Access Token sent in the [standard](https://www.rfc-editor.org/rfc/rfc6750.html) Bearer Token format (e.g., an HTTP request header `Authorization: FlyV1 <TOKEN>`), and you may only query series scoped to your organizations.
6464

6565
#### Manually
6666

@@ -84,7 +84,7 @@ TOKEN=$(flyctl auth token)
8484
```shell
8585
curl https://api.fly.io/prometheus/$ORG_SLUG/api/v1/query \
8686
--data-urlencode 'query=sum(increase(fly_edge_http_responses_count)) by (app, status)' \
87-
-H "Authorization: Bearer $TOKEN"
87+
-H "Authorization: FlyV1 $TOKEN"
8888
```
8989

9090
## Dashboards

0 commit comments

Comments
 (0)