Skip to content

Conversation

@dongothing-dd
Copy link

Agent Integration Defaults

Collects example configs for core agent integrations in a YAML file.

  1. Copies the integrations-core repo.
  2. Collects the conf.yaml or conf.yaml example file in each integration directory.
  3. Stores the data in a YAML file without comments.
  4. Outputs one big YAML file with the name of the integration, path, and default configuration.

Why?

Configs with comments are useful to see available options, but they can be hard to read. I'm working on something.

Prerequisites

  • Docker
    • If you want to build the image to run and update the list.
  • yq (optional)

Usage

# build
docker build -t datadog-config-exporter .

# run the container and drop the output in this directory
docker run --rm -v $(pwd):/output -u $(id -u):$(id -g) datadog-config-exporter

# check
yq '.nginx' collected_integrations.yaml 

Nginx output

config:
  init_config: null
  instances:
    - disable_generic_tags: true
      nginx_status_url: http://localhost:81/nginx_status/
      only_query_enabled_endpoints: true

dongothing-dd and others added 2 commits April 25, 2025 08:47
add --no-cache-dir

Co-authored-by: datadog-datadog-prod-us1[bot] <88084959+datadog-datadog-prod-us1[bot]@users.noreply.github.com>
Copy link

@Amanda-Ruzza Amanda-Ruzza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I approve it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants