-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathspec.yaml
More file actions
70 lines (68 loc) · 2.99 KB
/
Copy pathspec.yaml
File metadata and controls
70 lines (68 loc) · 2.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Fly.io
files:
- name: fly_io.yaml
options:
- template: init_config
options:
- template: init_config/openmetrics
- template: instances
options:
- template: instances/openmetrics
overrides:
openmetrics_endpoint.hidden: true
openmetrics_endpoint.required: false
headers.display_priority: 4
headers.enabled: true
headers.description: |
Headers to use for every request. An Authorization header including the Fly.io access token is required
for authentication for both the OpenMetrics endpoint and REST API.
You can alternatively use the `auth_token` option.
You can create a read-only token with this command:
`fly tokens create readonly`
Alternatively, you can use the `flyctl auth token` command to create a token. If using this
type of token, the header value should be: `Authorization: "Bearer <FLY_ACCESS_TOKEN>"`. Note this
option is no longer recommended: https://fly.io/docs/security/tokens/.
headers.value.example:
Authorization: "FlyV1 <FLY_ACCESS_TOKEN>"
auth_token.display_priority: 2
empty_default_hostname.display_priority: 1
empty_default_hostname.required: true
empty_default_hostname.value.example: true
empty_default_hostname.description: |
The Fly.io integration is a check where metrics are usually unrelated to the host
on which the Agent runs. Setting this parameter to "true" prevents the Agent from attaching the hostname
(and the host tags) to the metrics. It is especially important to leave this parameter set to "true" when you are
running the Agent inside a Fly.io app, because in this scenario the host tags are unrelated to other metrics.
- name: org_slug
display_priority: 5
enabled: true
required: true
description: |
Fly.io org slug
For more information, see https://fly.io/docs/flyctl/orgs/
value:
display_default: null
example: <ORG_SLUG>
type: string
- name: machines_api_endpoint
display_priority: 3
enabled: true
description: |
Endpoint of the Fly.io Machines Restful API.
For more information, see https://fly.io/docs/machines/api/working-with-machines-api/
If running the check inside your Fly.io environment, use http://_api.internal:4280,
otherwise use https://api.machines.dev.
value:
display_default: null
example: http://_api.internal:4280
type: string
- name: match_string
display_priority: 1
description: |
Match string used to filter the Prometheus data requested from Fly.io.
For more information, see https://prometheus.io/docs/prometheus/latest/federation/#configuring-federation
By default, all metrics for all apps are collected.
value:
display_default: '{__name__=~".+"}'
example: '{__name__=~"example_app"}'
type: string