Configure Tags through Datadog Agent on Kubernetes

After installing the Datadog agent, you can collect high cardinality tags, and add custom tagging.

Collect High Cardinality Tags

By default, Datadog agent installs with cardinality set to ‘orchestrator’ level. This allowing granular tagging for metrics, for both pod and container levels).

The default for the Datadog agent is ‘low’, tagging only at the host level.

Adding Custom Tags

You can add custom tags to the agent, so all metrics collected by the agent have a tag.

Follow these steps:

  1. Update the dd-values-kfuse.yaml file to include these custom tags.

    Note that each tag is a key:value pair, separated by the column character (:).

    datadog:
      tags:
        - custom_tag_name:custom_tag_value
    yaml
  2. Update kfuse helmcustom-values.yaml file to add to the allowlist the new custom tag.

    The following entry must be “appended” to the existing list, at the end. Otherwise, the system overwrites some default values. If this happens, contact our Support team for assistance.

    ingester:
      config:
        hostTagIncludes:
        - kf
        - kfuse
        - kube_cluster_name
        - kubernetes.io/hostname
        - node.kubernetes.io/instance-type
        - org_id
        - project
        - topology.kubernetes.io/region
        - topology.kubernetes.io/zone
        ...
        - custom_tag_name
    yaml