Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/validate-skip-qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,13 @@ jobs:
id: find_comment_remove_label
with:
issue-number: ${{ github.event.pull_request.number }}
body-includes: ${{ steps.construct_remove_label_comment.outputs.body }}
body-includes: "⚠️ **The `qa/skip-qa` label has been added with shippable changes**"

- name: Post comment - Remove skip qa label
if: steps.changed_files.outputs.any_changed == 'true' && contains(github.event.pull_request.labels.*.name, 'qa/skip-qa') && steps.find_comment_remove_label.outputs.comment-id == ''
if: steps.changed_files.outputs.any_changed == 'true' && contains(github.event.pull_request.labels.*.name, 'qa/skip-qa')
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
with:
issue-number: ${{ github.event.pull_request.number }}
body: ${{ steps.construct_remove_label_comment.outputs.body }}
comment-id: ${{ steps.find_comment_remove_label.outputs.comment-id }}
edit-mode: "replace"
9 changes: 6 additions & 3 deletions fly_io/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,20 @@ The Fly.io check is included in the [Datadog Agent][2] package. We recommend dep

2. Set a [secret][17] for your Datadog API key called `DD_API_KEY`, and optionally your [site][14] as `DD_SITE`.

3. In your app's directory, create a `conf.yaml` file for the Fly.io integration, [configure](#Configuration) the integration, and mount it in the Agent's `conf.d/fly_io.d/` directory as `conf.yaml`:
3. Create a [read-only][23] authentication token.

4. In your app's directory, create a `conf.yaml` file for the Fly.io integration, [configure](#configuration) the integration, and mount it in the Agent's `conf.d/fly_io.d/` directory as `conf.yaml`:

```
instances:
- empty_default_hostname: true
headers:
Authorization: Bearer <YOUR_FLY_TOKEN>
Authorization: FlyV1 <YOUR_FLY_TOKEN>
machines_api_endpoint: http://_api.internal:4280
org_slug: <YOUR_ORG_SLUG>
```

4. [Deploy][16] your app.
5. [Deploy][16] your app.

**Note**: To collect traces and custom metrics from your applications, see [Application traces](#Application-traces).

Expand Down Expand Up @@ -166,3 +168,4 @@ Need help? Contact [Datadog support][9].
[20]: https://fly.io/docs/machines/api/
[21]: https://docs.datadoghq.com/logs/log_configuration/pipelines/?tab=source#integration-pipeline-library
[22]: https://vector.dev/docs/reference/configuration/transforms/lua/
[23]: https://fly.io/docs/flyctl/tokens-create-readonly/
10 changes: 7 additions & 3 deletions fly_io/assets/configuration/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,14 @@ files:
for authentication for both the OpenMetrics endpoint and REST API.
You can alternatively use the `auth_token` option.

You can create an access token with this command:
`TOKEN=$(flyctl auth token)`
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: "Bearer <FLY_ACCESS_TOKEN>"
Authorization: "FlyV1 <FLY_ACCESS_TOKEN>"
auth_token.display_priority: 2
empty_default_hostname.display_priority: 1
empty_default_hostname.required: true
Expand Down
10 changes: 7 additions & 3 deletions fly_io/datadog_checks/fly_io/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,15 @@ instances:
## for authentication for both the OpenMetrics endpoint and REST API.
## You can alternatively use the `auth_token` option.
##
## You can create an access token with this command:
## `TOKEN=$(flyctl auth token)`
## 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:
Authorization: Bearer <FLY_ACCESS_TOKEN>
Authorization: FlyV1 <FLY_ACCESS_TOKEN>

## @param machines_api_endpoint - string - optional
## Endpoint of the Fly.io Machines Restful API.
Expand Down
Loading