Skip to content

Add configuration options to datadog.yml #29

@mr337

Description

@mr337

The DD formula has worked great but we are needing to tweak settings within datadog.yml such as tags, collect_ec2_tags, and enable_metadata_collection.

I do see a related PR #24. Looking at how this is designed as the number of options need to get added the amount of if statements will continue to grow (https://github.com/DataDog/datadog-formula/pull/24/files#diff-14b50415a1c3f0d35d35d0e6bd0b322aR40).

Would this repo be open/interest to move datadog.yml to a jinja templated file, so an user could just plug values into pillar for arbitrary config?

Example of the test.pillar updated that would write to datadog.yml only under the dd_config block:

datadog:
  api_key: aaaaaaaabbbbbbbbccccccccdddddddd
  checks:
    process:
      init_config:
        procfs_path: /proc
      instances:
        - name: ssh
          search_string: ['sshd']
    tcp_check:
      instances:
        - host: 127.0.0.1
          name: sshd
          port: 22
  dd_config:
    - collect_ec2_tags: True
    - enable_metadata_collection: True

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions