头昏是什么原因引起的| 打蛋白针有什么作用| 侧颜杀是什么意思| 水逆是什么| 持续耳鸣是什么原因引起的| 喝酒脸红是什么原因| 校草是什么意思| 自然是什么意思| 孕妇能吃什么水果最好| 小孩出虚汗是什么原因| 不等闲是什么意思| 04年属什么生肖| 小腿麻木是什么原因引起的| 婊子是什么生肖| 语感是什么意思| 气短心悸是什么意思| 蜥蜴人是什么| 三七甘一是什么意思| 522是什么意思| 颈椎头晕吃什么药| 来月经胸胀痛什么原因| 波字五行属什么| 掌心痣代表什么意思| 儿童拖鞋什么材质好| 有黄鼻涕吃什么药| rh(d)血型阳性是什么意思| 梅毒螺旋体抗体阴性是什么意思| 医保定点医院是什么意思| blanc什么意思| 经期同房需要注意什么| 王母娘娘属什么生肖| 尿素偏高是什么原因| 为什么说肺结核是穷人病| 清炖羊肉放什么调料| 潜血弱阳性什么意思| 什么星座最好| 胆汁淤积吃什么药| 眼睛皮痒是什么原因| 11月15日什么星座| igg是什么意思| 颈静脉怒张见于什么病| 捋一捋是什么意思| 原始分是什么意思| 吃什么药不能献血| 小狗打什么疫苗| 什么是香港脚| 党委副书记是什么级别| 梦见别人家盖房子是什么意思| 喉咙干燥吃什么药| 为什么怀孕了还会来月经| 为什么山东人个子高| 花中之王是什么花| 呵护是什么意思| 急性扁桃体炎吃什么药| 身体乳有什么用| 梦见生了个女儿是什么意思| 猴子是什么动物| 做爱为什么那么舒服| 阴虚火旺吃什么| 学士学位证书有什么用| 狗改不了吃屎是什么意思| 中华文化的精髓是什么| 梦见老公回来了是什么征兆| 缺铁有什么症状| 男人脖子后面有痣代表什么| 投行是做什么的| saba是什么药| 永加一个日念什么| 大腿根内侧发黑是什么原因| 灵芝的功效与作用是什么| 三超是指什么| 小女子这厢有礼了什么意思| 右眼跳是什么意思| 脸上长痘痘用什么药膏效果好| 什么鸡没有毛| 交替是什么意思| 晕车吃什么| 眼压高什么症状| 孕晚期缺铁对胎儿有什么影响| 尿急憋不住尿是什么原因| 吃盐吃多了有什么危害| 小淋巴结是什么意思| 脸上为什么会长痣| 什么东西好消化| 农历七月是什么星座| 做一半就软了是什么原因| 孤独症有什么表现| 1943年属什么| 磨蹭是什么意思| 什么是三有保护动物| 什么是假性高血压| 为什么长白头发| 拔智齿第二天可以吃什么| 6月26号是什么日子| 肝功能挂什么科| 转氨酶偏低是什么原因| 肾囊肿是什么原因引起的| 烧裆是什么原因| 死精吃什么能调理成活精| 印度什么时候独立的| 口臭吃什么药| 晟字五行属什么| 帝加口念什么| 喝什么解渴| 中老年吃什么钙片比较好| 腊月初七是什么星座| 手腕扭伤挂什么科| 6代表什么| 1935年属什么生肖| 氨基酸态氮是什么| 男性夜间盗汗什么原因| 湿气重有什么表现症状| 12月22日什么星座| 显著是什么意思| 前列腺增大钙化是什么意思| 伊朗是什么教派| hv是什么意思| 中国最好的大学是什么大学| 数不胜数是什么生肖| 槊是什么意思| 幼儿反复发烧是什么原因| 11.11什么星座| 一直打嗝吃什么药| 甲状腺肿大吃什么药| 嗝气是什么原因引起的| 舒服的意思是什么| seiko是什么牌子| 出入是什么意思| 6月是什么生肖| 胃部间质瘤是什么性质的瘤| 枸杞泡水喝有什么作用和功效| 阿胶是什么做的| 生米煮成熟饭是什么意思| 口舌生疮吃什么药最好| 背后长痘痘什么原因| 浮粉是什么原因引起的| 预调酒是什么意思| 什么茶解暑| 翻墙是什么| 国树是什么树| 父加一笔是什么字| 马来西亚信仰什么教| 519是什么星座| 0604是什么日子| 什么水果维生素c含量最高| 张什么结什么| 方解石玉是什么玉| 箱涵是什么| 待字闺中什么意思| 一什么节日| 肺肿了是什么病严重吗| 高血压能吃什么| 多囊性改变是什么意思| 11月26日是什么星座| panerai是什么牌子| 下一个台风什么时候来| 阴柔是什么意思| bull是什么意思| 上帝叫什么名字| 护理主要学什么| 渗透压偏高是什么原因| 什么是智齿| 冬天吃什么| 肝肾亏虚吃什么中成药| 径行是什么意思| 舌苔紫色是什么原因| 部级是什么级别| 娇喘是什么| 急性肠胃炎打什么点滴| 熬中药用什么锅| 心律平又叫什么名字| 2050年是什么年| 下岗是什么意思| 流清鼻涕吃什么药好| 头总出汗是什么原因| 贫血缺什么| 口气重吃什么药效果好| 狮子座和什么星座最配| 记忆力衰退吃什么药| 卡其色裙子配什么颜色上衣好看| 塑料是什么材质| 什么是三好学生| 水泡长什么样| 生命是什么意思| 老来得子是什么意思| 经期吃什么补气血| 移花接木什么意思| 5月11日什么星座| 精索静脉曲张是什么意思| 喝什么茶可以降尿酸| 什么含胶原蛋白最多| 甲肝戊肝是什么病| 皮肤黑吃什么会变白| 给男朋友买什么礼物比较好| 尖锐湿疣吃什么药| 什么车子寸步难行脑筋急转弯| bps是什么意思| 1012是什么星座| 来大姨妈血块多是什么原因| 征兵初检检查什么| 送羊是什么意思| 胆管炎是什么原因引起的| 什么是同位素| 一字千金是什么生肖| 拉仇恨是什么意思| 腊肉和什么菜炒好吃| 常染色体是什么| 燕子每年从什么方飞往什么方过冬| 命名是什么意思| 为什么新生儿会有黄疸| 三七长什么样| 脊柱炎是什么症状| 发福是什么意思| 尿素氮偏低是什么意思| 小孩子晚上睡觉磨牙是什么原因| 头发油是什么原因| 申时是什么生肖| 男士适合戴什么手串| 没有痔疮大便出血是什么原因| 法图麦是什么意思| 趋利避害是什么意思| 公历年份是什么意思| 阁楼是什么意思| 瘢痕是什么| 飞机票号是什么意思| 蔗去掉草字头读什么| 糖类抗原153是什么| 什么是类风湿性关节炎| everytime什么意思| 土豆什么时候收获| 副师级是什么军衔| 荔枝不能跟什么一起吃| 红点是什么原因引起的| 宝格丽表属于什么档次| 补气血喝什么口服液好| 蝉属于什么类动物| 羊肉补什么| 1997年属牛的是什么命| 铮铮是什么意思| 绀是什么意思| 一个月没有来月经是什么原因| 图字五行属什么| 梦见谈恋爱很甜蜜是什么意思| 胃溃疡是什么| 梦到生女儿是什么意思| 军衔是什么意思| 摧枯拉朽什么意思| 生化是检查什么的| 梦见河水是什么意思| 为什么会长痘| 杭盖是什么意思| 木指什么生肖| 身上臭是什么原因| 女生什么时候最想要| 云什么什么什么| notebook是什么意思| ce是什么意思| ab是什么意思| 低血压吃什么可以补| 为什么一分钟就出来了| 胃息肉吃什么药治疗| 一个木一个舌读什么| 福寿螺为什么不能吃| 脸上长红色的痘痘是什么原因| 百度

王燊超低烧缺席国足训练 中国足协整顿文身问题

百度 当赛季季后赛,两支队伍再度相遇冠军战,这一次,PE完成了对老大哥的复仇,逆转登顶夏季赛。

The Datadog Agent can automatically assign tags to metrics, traces, and logs emitted by a pod (or an individual container within a pod) based on labels or annotations.

Out-of-the-box tags

The list of automatically-assigned tags depends on the Agent’s cardinality configuration. Tag Cardinality is added before ingestion and can impact billing, as different cardinality settings impact the number of emitted metrics.

TagCardinalitySourceRequirement
container_idHighPod statusN/A
display_container_nameHighPod statusN/A
pod_nameOrchestratorPod metadataN/A
oshift_deploymentOrchestratorPod annotation openshift.io/deployment.nameOpenShift environment and pod annotation must exist
kube_ownerref_nameOrchestratorPod ownerrefPod must have an owner
kube_jobOrchestratorPod ownerrefPod must be attached to a cronjob
kube_jobLowPod ownerrefPod must be attached to a job
kube_replica_setLowPod ownerrefPod must be attached to a replica set
kube_serviceLowKubernetes service discoveryPod is behind a Kubernetes service
kube_daemon_setLowPod ownerrefPod must be attached to a DaemonSet
kube_container_nameLowPod statusN/A
kube_namespaceLowPod metadataN/A
kube_app_nameLowPod label app.kubernetes.io/namePod label must exist
kube_app_instanceLowPod label app.kubernetes.io/instancePod label must exist
kube_app_versionLowPod label app.kubernetes.io/versionPod label must exist
kube_app_componentLowPod label app.kubernetes.io/componentPod label must exist
kube_app_part_ofLowPod label app.kubernetes.io/part-ofPod label must exist
kube_app_managed_byLowPod label app.kubernetes.io/managed-byPod label must exist
envLowPod label tags.datadoghq.com/env or container envvar (DD_ENV or OTEL_RESOURCE_ATTRIBUTES)Unified service tagging enabled
versionLowPod label tags.datadoghq.com/version or container envvar (DD_VERSION or OTEL_RESOURCE_ATTRIBUTES)Unified service tagging enabled
serviceLowPod label tags.datadoghq.com/service or container envvar (DD_SERVICE, OTEL_RESOURCE_ATTRIBUTES, or OTEL_SERVICE_NAME)Unified service tagging enabled
pod_phaseLowPod statusN/A
oshift_deployment_configLowPod annotation openshift.io/deployment-config.nameOpenShift environment and pod annotation must exist
kube_ownerref_kindLowPod ownerrefPod must have an owner
kube_deploymentLowPod ownerrefPod must be attached to a deployment
kube_replication_controllerLowPod ownerrefPod must be attached to a replication controller
kube_stateful_setLowPod ownerrefPod must be attached to a statefulset
persistentvolumeclaimLowPod specA PVC must be attached to the pod
kube_cronjobLowPod ownerrefPod must be attached to a cronjob
image_nameLowPod specN/A
short_imageLowPod specN/A
image_tagLowPod specN/A
eks_fargate_nodeLowPod specEKS Fargate environment
kube_runtime_classLowPod specPod must be attached to a runtime class
gpu_vendorLowPod specContainer must be attached to a GPU resource
image_idLowContainer image IDN/A
kube_autoscaler_kindLowKubernetes autoscaler typeKubernetes autoscaler must be used
kube_priority_classLowPod priority classPod must have priority class set
kube_qosLowPod Quality of Service classN/A

Host tag

The Agent can attach Kubernetes environment information as “host tags”.

TagCardinalitySourceRequirement
kube_cluster_nameLowDD_CLUSTER_NAME envvar or cloud provider integrationDD_CLUSTER_NAME envvar or cloud provider integration enabled
kube_node_roleLowNode label node-role.kubernetes.io/<role>Node label must exist
kube_nodeLowNodeName field in a pod’s specifications
orch_cluster_idLowOrchestrator cluster metadataOrchestrator environment

Tag Autodiscovery

Starting with Agent v6.10+, the Agent can autodiscover tags from Pod annotations. It allows the Agent to associate tags to all data emitted by the entire pods or an individual container within this pod.

As a best practice in containerized environments, Datadog recommends using unified service tagging to help unify tags. Unified service tagging ties Datadog telemetry together through the use of three standard tags: env, service, and version. To learn how to configure your environment with unified tagging, refer to the dedicated unified service tagging documentation.

To apply a <TAG_KEY>:<TAG_VALUE> tag to all data emitted by a given pod and collected by the Agent use the following annotation on your pod:

annotations:
  ad.datadoghq.com/tags: '{"<TAG_KEY>": "<TAG_VALUE>","<TAG_KEY_1>": "<TAG_VALUE_1>"}'

If you want to apply a <TAG_KEY>:<TAG_VALUE> tag to an individual container <CONTAINER_NAME> within a pod, use the following annotation on your pod:

annotations:
  ad.datadoghq.com/<CONTAINER_NAME>.tags: '{"<TAG_KEY>": "<TAG_VALUE>","<TAG_KEY_1>": "<TAG_VALUE_1>"}'

Starting with Agent v7.17+, the Agent can Autodiscover tags from Docker labels. This process allows the Agent to associate custom tags to all data emitted by a container, without modifying the Agent configuration.

com.datadoghq.ad.tags: '["<TAG_KEY>:TAG_VALUE", "<TAG_KEY_1>:<TAG_VALUE_1>"]'

Tag extraction

Kubernetes resources labels as tags

Starting with Agent v7.58+, the Agent can be configured to collect labels for any Kubernetes resource and use them as tags to attach to all metrics, traces, and logs associated with that resource.

This configuration option is more generic and should be preferred over the following options:

  • podLabelsAsTags
  • nodeLabelsAsTags
  • namespaceLabelsAsTags

Each resource type should be specified in the format resourceType.apiGroup, where resourceType is the plural name of the resource.

If a specific resource is in the empty API group (for example, pods and nodes), it can be specified using resourceType.

To extract a given node label <NODE_LABEL> and transform them as tag keys <NODE_TAG_KEY> within Datadog, add the following configuration to your Operator’s DatadogAgent configuration in datadog-agent.yaml:

apiVersion: datadoghq.com/v2alpha1
kind: DatadogAgent
metadata:
  name: datadog
spec:
  global:
    kubernetesResourcesLabelsAsTags:
      nodes:
        <NODE_LABEL>: <NODE_TAG_KEY>

For example:

apiVersion: datadoghq.com/v2alpha1
kind: DatadogAgent
metadata:
  name: datadog
spec:
  global:
    kubernetesResourcesLabelsAsTags:
      nodes:
       kubernetes.io/arch: arch
      pods:
        baz: qux

For Agent v7.24.0+, use the following environment variable configuration to add all resource labels as tags to your metrics. In this example, the tags’ names for pods are prefixed by <PREFIX>_:

apiVersion: datadoghq.com/v2alpha1
kind: DatadogAgent
metadata:
  name: datadog
spec:
  global:
    kubernetesResourcesLabelsAsTags:
      pods:
        "*": <PREFIX>_%%label%%

Each resource type should be specified in the format resourceType.apiGroup, where resourceType is the plural name of the resource.

If a specific resource is in the empty API group (for example, pods and nodes), it can be specified using resourceType.

To extract a given node label <NODE_LABEL> and transform them as tag keys <NODE_TAG_KEY> within Datadog, add the following configuration to your Helm datadog-values.yaml file:

datadog:
  kubernetesResourcesLabelsAsTags:
    nodes:
      <NODE_LABEL>: <NODE_TAG_KEY>

For example, you could set up:

datadog:
  kubernetesResourcesLabelsAsTags:
    nodes:
      kubernetes.io/arch: arch
    pods:
      baz: qux

For Agent v7.24.0+, use the following environment variable configuration to add all resource labels as tags to your metrics. In this example, the tags’ names for pods are prefixed by <PREFIX>_:

datadog:
  kubernetesResourcesLabelsAsTags:
    pods:
      "*": <PREFIX>_%%label%%

Each resource type should be specified in the format resourceType.apiGroup, where resourceType is the plural name of the resource.

If a specific resource is in the empty API group (for example pods and nodes), it can be specified using resourceType.

To extract a given node label <NODE_LABEL> and transform them as tag keys <NODE_TAG_KEY> within Datadog, add the following environment variable to the Datadog Agent:

 DD_KUBERNETES_RESOURCES_LABELS_AS_TAGS='{"nodes":{"<NODE_LABEL>": "<NODE_TAG_KEY>"}}'

For example, you could set up:

DD_KUBERNETES_RESOURCES_LABELS_AS_TAGS='{"nodes":{"kubernetes.io/arch": "arch"},"pods":{"baz":"qux"}}'

For Agent v7.24.0+, use the following environment variable configuration to add all resource labels as tags to your metrics. In this example, the tags’ names for pods are prefixed by <PREFIX>_:

DD_KUBERNETES_RESOURCES_LABELS_AS_TAGS='{"pods":{"*": "<PREFIX>_%%label%%"}}'

Notes: Custom metrics may impact billing. See the custom metrics billing page for more information.

This configuration option is merged with other configurations set in podLabelsAsTags, namespaceLabelsAsTags and nodeLabelsAsTags. In case of conflict, kubernetesResourcesLabelsAsTags take precedence while merging the configurations.

For example, if you have the following configurations:

datadog:
  kubernetesResourcesLabelsAsTags:
    pods:
      foo: bar
      baz: qux

  podLabelsAsTags:
    foo: quux
    bar: quuz

The following mapping is used to extract tags from pod labels:

foo: bar
baz: qux
bar: quuz

Kubernetes resources annotations as tags

Starting with Agent v7.58+, the Agent can be configured to collect annotations for any Kubernetes resource and use them as tags to attach to all metrics, traces. and logs associated with that resource.

This configuration option is more generic and should be preferred over the following options:

  • podAnnotationsAsTags
  • nodeAnnotationsAsTags
  • namespaceAnnotationsAsTags

Each resource type should be specified in the format resourceType.apiGroup, where resourceType is the plural name of the resource.

If a specific resource is in the empty API group (for example, pods and nodes), it can be specified using resourceType.

To extract a given node annotation <NODE_ANNOTATION> and transform them as tag keys <NODE_TAG_KEY> within Datadog, add the following configuration to your Operator’s DatadogAgent configuration in datadog-agent.yaml:

apiVersion: datadoghq.com/v2alpha1
kind: DatadogAgent
metadata:
  name: datadog
spec:
  global:
    kubernetesResourcesAnnotationsAsTags:
      nodes:
        <NODE_ANNOTATION>: <NODE_TAG_KEY>

For example:

apiVersion: datadoghq.com/v2alpha1
kind: DatadogAgent
metadata:
  name: datadog
spec:
  global:
    kubernetesResourcesAnnotationsAsTags:
      nodes:
       kubernetes.io/arch: arch
      pods:
        baz: qux

For Agent v7.24.0+, use the following environment variable configuration to add all resource annotations as tags to your metrics. In this example, the tags’ names for pods are prefixed by <PREFIX>_:

apiVersion: datadoghq.com/v2alpha1
kind: DatadogAgent
metadata:
  name: datadog
spec:
  global:
    kubernetesResourcesAnnotationsAsTags:
      pods:
        "*": <PREFIX>_%%annotation%%

Each resource type should be specified in the format resourceType.apiGroup, where resourceType is the plural name of the resource.

If a specific resource is in the empty API group (for example pods and nodes), it can be specified using resourceType.

To extract a given node annotation <NODE_ANNOTATION> and transform them as tag keys <NODE_TAG_KEY> within Datadog, add the following configuration to your Helm datadog-values.yaml file:

datadog:
  kubernetesResourcesAnnotationsAsTags:
    nodes:
      <NODE_ANNOTATION>: <NODE_TAG_KEY>

For example:

datadog:
  kubernetesResourcesAnnotationsAsTags:
    nodes:
      kubernetes.io/arch: arch
    pods:
      baz: qux

For Agent v7.24.0+, use the following environment variable configuration to add all resource annotations as tags to your metrics. In this example, the tags’ names for pods are prefixed by <PREFIX>_:

datadog:
  kubernetesResourcesAnnotationsAsTags:
    pods:
      "*": <PREFIX>_%%annotation%%

Each resource type should be specified in the format resourceType.apiGroup, where resourceType is the plural name of the resource.

If a specific resource is in the empty api group (for example, pods and nodes), it can be specified using resourceType.

To extract a given node annotation <NODE_ANNOTATION> and transform them as tag keys <NODE_TAG_KEY> within Datadog, add the following environment variable to the Datadog Agent:

 DD_KUBERNETES_RESOURCES_ANNOTATIONS_AS_TAGS='{"nodes":{"<NODE_ANNOTATION>": "<NODE_TAG_KEY>"}}'

For example, you could set up:

DD_KUBERNETES_RESOURCES_ANNOTATIONS_AS_TAGS='{"nodes":{"kubernetes.io/arch": "arch"},"pods":{"baz":"qux"}}'

For Agent v7.24.0+, use the following environment variable configuration to add all resource annotations as tags to your metrics. In this example, the tags’ names for pods are prefixed by <PREFIX>_:

DD_KUBERNETES_RESOURCES_ANNOTATIONS_AS_TAGS='{"pods":{"*": "<PREFIX>_%%annotation%%"}}'

Notes: Custom metrics may impact billing. See the custom metrics billing page for more information.

This configuration option is merged with other configurations set in podAnnotationsAsTags, namespaceAnnotationsAsTags and nodeAnnotationsAsTags. In case of conflict, kubernetesResourcesAnnotationsAsTags take precedence while merging the configurations.

For example, if you have the following configurations:

datadog:
  kubernetesResourcesAnnotationsAsTags:
    pods:
      foo: bar
      baz: qux

  podAnnotationsAsTags:
    foo: quux
    bar: quuz

The following mapping is used to extract tags from pod annotations:

foo: bar
baz: qux
bar: quuz

Node labels as tags

If you are on agent version 7.58.0+, you are advised to use Kubernetes resources labels as tags to node configure labels as tags.

Starting with Agent v6.0+, the Agent can collect labels for a given node and use them as tags to attach to all metrics, traces, and logs emitted associated with this host in Datadog:

To extract a given node label <NODE_LABEL> and transform it as a tag key <TAG_KEY> within Datadog, add the following configuration to your Operator’s DatadogAgent configuration in datadog-agent.yaml:

apiVersion: datadoghq.com/v2alpha1
kind: DatadogAgent
metadata:
  name: datadog
spec:
  global:
    nodeLabelsAsTags:
      <NODE_LABEL>: <TAG_KEY>

For example, you could set up:

apiVersion: datadoghq.com/v2alpha1
kind: DatadogAgent
metadata:
  name: datadog
spec:
  global:
    nodeLabelsAsTags:
      kubernetes.io/arch: arch

For Agent v7.24.0+, use the following environment variable configuration to add all node labels as tags to your metrics. In this example, the tags’ names are prefixed by <PREFIX>_:

apiVersion: datadoghq.com/v2alpha1
kind: DatadogAgent
metadata:
  name: datadog
spec:
  global:
    nodeLabelsAsTags:
      "*": <PREFIX>_%%label%%

To extract a given node label <NODE_LABEL> and transform it as a tag key <TAG_KEY> within Datadog, add the following configuration to your Helm datadog-values.yaml file:

datadog:
  nodeLabelsAsTags:
    <NODE_LABEL>: <TAG_KEY>

For example, you could set up:

datadog:
  nodeLabelsAsTags:
    kubernetes.io/arch: arch

For Agent v7.24.0+, use the following environment variable configuration to add all node labels as tags to your metrics. In this example, the tags’ names are prefixed by <PREFIX>_:

datadog:
  nodeLabelsAsTags:
    "*": <PREFIX>_%%label%%

To extract a given node label <NODE_LABEL> and transform it as a tag key <TAG_KEY> within Datadog, add the following environment variable to the Datadog Agent:

DD_KUBERNETES_NODE_LABELS_AS_TAGS='{"<NODE_LABEL>": "<TAG_KEY>"}'

For example, you could set up:

DD_KUBERNETES_NODE_LABELS_AS_TAGS='{"kubernetes.io/arch":"arch"}'

For Agent v7.24.0+, use the following environment variable configuration to add all node labels as tags to your metrics. In this example, the tags’ names are prefixed by <PREFIX>_:

DD_KUBERNETES_NODE_LABELS_AS_TAGS='{"*":"<PREFIX>_%%label%%"}'

Note: Custom metrics may impact billing. See the custom metrics billing page for more information.

Pod labels as tags

If you are on agent version 7.58.0+, you are advised to use Kubernetes resources labels as tags to configure pod labels as tags.

Starting with Agent v6.0+, the Agent can collect labels for a given pod and use them as tags to attach to all metrics, traces, and logs emitted by this pod:

To extract a given pod label <POD_LABEL> and transform it as a tag key <TAG_KEY> within Datadog, add the following configuration to your Operator’s DatadogAgent configuration in datadog-agent.yaml:

apiVersion: datadoghq.com/v2alpha1
kind: DatadogAgent
metadata:
  name: datadog
spec:
  global:
    podLabelsAsTags:
      <POD_LABEL>: <TAG_KEY>

For example, you could set up:

apiVersion: datadoghq.com/v2alpha1
kind: DatadogAgent
metadata:
  name: datadog
spec:
  global:
    podLabelsAsTags:
      app: kube_app

For Agent v7.24.0+, use the following environment variable configuration to add all pod labels as tags to your metrics. In this example, the tags’ names are prefixed by <PREFIX>_:

apiVersion: datadoghq.com/v2alpha1
kind: DatadogAgent
metadata:
  name: datadog
spec:
  global:
    podLabelsAsTags:
      "*": <PREFIX>_%%label%%

To extract a given pod label <POD_LABEL> and transform it as a tag key <TAG_KEY> within Datadog, add the following configuration to your Helm datadog-values.yaml file:

datadog:
  podLabelsAsTags:
    <POD_LABEL>: <TAG_KEY>

For example, you could set up:

datadog:
  podLabelsAsTags:
    app: kube_app

For Agent v7.24.0+, use the following environment variable configuration to add all pod labels as tags to your metrics. In this example, the tags’ names are prefixed by <PREFIX>_:

datadog:
  podLabelsAsTags:
    "*": <PREFIX>_%%label%%

To extract a given pod label <POD_LABEL> and transform it as a tag key <TAG_KEY> within Datadog, add the following environment variable to the Datadog Agent:

DD_KUBERNETES_POD_LABELS_AS_TAGS='{"<POD_LABEL>": "<TAG_KEY>"}'

For example, you could set up:

DD_KUBERNETES_POD_LABELS_AS_TAGS='{"app":"kube_app"}'

For Agent v6.8.0+, use the following environment variable configuration to add all pod labels as tags to your metrics. In this example, the tags names are prefixed by <PREFIX>_:

DD_KUBERNETES_POD_LABELS_AS_TAGS='{"*":"<PREFIX>_%%label%%"}'

Note: Custom metrics may impact billing. See the custom metrics billing page for more information.

Pod annotations as tags

If you are on agent version 7.58.0+, you are advised to use Kubernetes resources labels as tags to configure pod annotations as tags.

Starting with Agent v6.0+, the Agent can collect annotations for a given pod and use them as tags to attach to all metrics, traces, and logs emitted by this pod:

To extract a given pod annotation <POD_ANNOTATION> and transform it as a tag key <TAG_KEY> within Datadog, add the following configuration to your Operator’s DatadogAgent configuration in datadog-agent.yaml

apiVersion: datadoghq.com/v2alpha1
kind: DatadogAgent
metadata:
  name: datadog
spec:
  global:
    podAnnotationsAsTags:
      <POD_ANNOTATION>: <TAG_KEY>

For example, you could set up:

apiVersion: datadoghq.com/v2alpha1
kind: DatadogAgent
metadata:
  name: datadog
spec:
  global:
    podAnnotationsAsTags:
      app: kube_app

For Agent v7.24.0+, use the following environment variable configuration to add all pod annotations as tags to your metrics. In this example, the tags’ names are prefixed by <PREFIX>_:

apiVersion: datadoghq.com/v2alpha1
kind: DatadogAgent
metadata:
  name: datadog
spec:
  global:
    podAnnotationsAsTags:
      "*": <PREFIX>_%%label%%

To extract a given pod annotation <POD_ANNOTATION> and transform it as a tag key <TAG_KEY> within Datadog, add the following configuration to your Helm datadog-values.yaml file:

datadog:
  podAnnotationsAsTags:
    <POD_ANNOTATION>: <TAG_KEY>

For example, you could set up:

datadog:
  podAnnotationsAsTags:
    app: kube_app

For Agent v7.24.0+, use the following environment variable configuration to add all pod annotation as tags to your metrics. In this example, the tags’ names are prefixed by <PREFIX>_:

datadog:
  podAnnotationsAsTags:
    "*": <PREFIX>_%%label%%

To extract a given pod annotation <POD_ANNOTATION> and transform it as a tag key <TAG_KEY> within Datadog, add the following environment variable to the Datadog Agent:

DD_KUBERNETES_POD_ANNOTATIONS_AS_TAGS='{"<POD_ANNOTATION>": "<TAG_KEY>"}'

For example, you could set up:

DD_KUBERNETES_POD_ANNOTATIONS_AS_TAGS='{"app":"kube_app"}'

For Agent v7.24.0+, use the following environment variable configuration to add all pod annotations as tags to your metrics. In this example, the tags names are prefixed by <PREFIX>_:

DD_KUBERNETES_POD_ANNOTATIONS_AS_TAGS='{"*":"<PREFIX>_%%annotation%%"}'

Note: Custom metrics may impact billing. See the custom metrics billing page for more information.

Namespace labels as tags

If you are on agent version 7.58.0+, you are advised to use Kubernetes resources labels as tags to configure namespace labels as tags.

Starting with Agent 7.55.0+, the Agent can collect labels for a given namespace and use them as tags to attach to all metrics, traces, and logs emitted by all pods in this namespace:

To extract a given namespace label <NAMESPACE_LABEL> and transform it as a tag key <TAG_KEY> within Datadog, add the following configuration to your Operator’s DatadogAgent configuration in datadog-agent.yaml:

apiVersion: datadoghq.com/v2alpha1
kind: DatadogAgent
metadata:
  name: datadog
spec:
  global:
    namespaceLabelsAsTags:
      <NAMESPACE_LABEL>: <TAG_KEY>

For example, you could set up:

apiVersion: datadoghq.com/v2alpha1
kind: DatadogAgent
metadata:
  name: datadog
spec:
  global:
    namespaceLabelsAsTags:
      app: kube_app

For Agent v7.24.0+, use the following environment variable configuration to add all namespace labels as tags to your metrics. In this example, the tags’ names are prefixed by <PREFIX>_:

apiVersion: datadoghq.com/v2alpha1
kind: DatadogAgent
metadata:
  name: datadog
spec:
  global:
    namespaceLabelsAsTags:
      "*": <PREFIX>_%%label%%

To extract a given namespace label <NAMESPACE_LABEL> and transform it as a tag key <TAG_KEY> within Datadog, add the following configuration to your Helm datadog-values.yaml file:

datadog:
  namespaceLabelsAsTags:
    <NAMESPACE_LABEL>: <TAG_KEY>

For example, you could set up:

datadog:
  namespaceLabelsAsTags:
    app: kube_app

For Agent v7.24.0+, use the following environment variable configuration to add all namespace labels as tags to your metrics. In this example, the tags’ names are prefixed by <PREFIX>_:

datadog:
  namespaceLabelsAsTags:
    "*": <PREFIX>_%%label%%

To extract a given namespace label <NAMESPACE_LABEL> and transform it as a tag key <TAG_KEY> within Datadog, add the following environment variable to the Datadog Agent:

DD_KUBERNETES_NAMESPACE_LABELS_AS_TAGS='{"<NAMESPACE_LABEL>": "<TAG_KEY>"}'

For example, you could set up:

DD_KUBERNETES_NAMESPACE_LABELS_AS_TAGS='{"app":"kube_app"}'

Use the following environment variable configuration to add all namespace labels as tags to your metrics. In this example, the tag names are prefixed by <PREFIX>_:

DD_KUBERNETES_NAMESPACE_LABELS_AS_TAGS='{"*":"<PREFIX>_%%label%%"}'

Note: Custom metrics may impact billing. See the custom metrics billing page for more information.

Container environment variables as tags

Starting with Agent v7.32+, the Agent can collect container environment variables and use them as tags to attach to all metrics, traces, and logs corresponding to the container. Both docker and containerd containers are supported:

To extract a given environment variable <ENV_VAR> and transform it as a tag key <TAG_KEY> within Datadog, add the following configuration to your Operator’s DatadogAgent configuration in datadog-agent.yaml:

apiVersion: datadoghq.com/v2alpha1
kind: DatadogAgent
metadata:
  name: datadog
spec:
  #(...)
  override:
    nodeAgent:
      env:
        - name: DD_CONTAINER_ENV_AS_TAGS
          value: '{"<ENV_VAR>": "<TAG_KEY>"}'

For example, you could set up:

apiVersion: datadoghq.com/v2alpha1
kind: DatadogAgent
metadata:
  name: datadog
spec:
  #(...)
  override:
    nodeAgent:
      env:
        - name: DD_CONTAINER_ENV_AS_TAGS
          value: '{"app":"kube_app"}'

To extract a given environment variable <ENV_VAR> and transform it as a tag key <TAG_KEY> within Datadog, add the following configuration to your Helm datadog-values.yaml file:

datadog:
  env:
    - name: DD_CONTAINER_ENV_AS_TAGS
      value: '{"<ENV_VAR>": "<TAG_KEY>"}'

For example, you could set up:

datadog:
  env:
    - name: DD_CONTAINER_ENV_AS_TAGS
      value: '{"app":"kube_app"}'

To extract a given environment variable <ENV_VAR> and transform it as a tag key <TAG_KEY> within Datadog, add the following environment variable to the Datadog Agent:

DD_CONTAINER_ENV_AS_TAGS='{"<ENV_VAR>": "<TAG_KEY>"}'

For example:

DD_CONTAINER_ENV_AS_TAGS='{"app":"kube_app"}'

Note: Custom metrics may impact billing. See Custom Metrics Billing for more details.

Container labels as tags

Starting with Agent v7.33+, the Agent can collect container labels and use them as tags. The agent attaches the tags to all metrics, traces, and logs associated with the container.

The Agent can generate tags from container labels for both docker and containerd containers. In the case of containerd, the minimum supported version is v1.5.6, because previous releases do not propagate labels correctly.

To extract a given container label <CONTAINER_LABEL> and transform it as a tag key <TAG_KEY> within Datadog, add the following configuration to your Operator’s DatadogAgent configuration in datadog-agent.yaml:

apiVersion: datadoghq.com/v2alpha1
kind: DatadogAgent
metadata:
  name: datadog
spec:
  #(...)
  override:
    nodeAgent:
      env:
        - name: DD_CONTAINER_LABELS_AS_TAGS
          value: '{"<CONTAINER_LABEL>": "<TAG_KEY>"}'

For example, you could set up:

apiVersion: datadoghq.com/v2alpha1
kind: DatadogAgent
metadata:
  name: datadog
spec:
  #(...)
  override:
    nodeAgent:
      env:
        - name: DD_CONTAINER_LABELS_AS_TAGS
          value: '{"app":"kube_app"}'

To extract a given container label <CONTAINER_LABEL> and transform it as a tag key <TAG_KEY> within Datadog, add the following configuration to your Helm datadog-values.yaml file:

datadog:
  env:
    - name: DD_CONTAINER_LABELS_AS_TAGS
      value: '{"<CONTAINER_LABEL>": "<TAG_KEY>"}'

For example, you could set up:

datadog:
  env:
    - name: DD_CONTAINER_LABELS_AS_TAGS
      value: '{"app":"kube_app"}'

To extract a given container label <CONTAINER_LABEL> and transform it to a tag key <TAG_KEY>, add the following environment variable to the Datadog Agent:

DD_CONTAINER_LABELS_AS_TAGS='{"<CONTAINER_LABEL>":"<TAG_KEY>"}'

For example:

DD_CONTAINER_LABELS_AS_TAGS='{"app":"kube_app"}'

Note: Custom metrics may impact billing. See Custom Metrics Billing for more details.

Further Reading

投递是什么意思 高回声是什么意思 乳腺回声不均匀是什么意思 蜂王浆什么时间吃最好 飞机上可以带什么吃的
杏仁有什么作用和功效 全程c反应蛋白高说明什么 胃肠化是什么意思 polo衫配什么裤子好看 左上眼皮跳是什么预兆
夏天的诗句有什么 冬至穿什么衣服 1943年属羊的是什么命 女生左手中指戴戒指什么意思 啃手指甲是什么毛病
非营利性医院是什么意思 几月初几是叫什么历 属鼠男和什么属相最配 幽门螺杆菌是一种什么病 为什么天气热皮肤就痒
大梁是什么朝代hcv8jop1ns1r.cn 为什么会有湿气hcv9jop8ns1r.cn 仿制药是什么意思hcv8jop0ns3r.cn 手掌心经常出汗是什么原因hcv7jop6ns5r.cn 开什么店好赚钱hcv9jop5ns6r.cn
骨密度低吃什么药最快baiqunet.com roma是什么牌子hcv7jop6ns7r.cn 电动车电池什么牌子好hcv9jop5ns5r.cn 春天都开什么花hcv7jop7ns2r.cn 品红是什么颜色hcv8jop6ns9r.cn
醛固酮高有什么危害hcv8jop5ns3r.cn 喘息性支气管炎吃什么药wzqsfys.com 水泡长什么样hcv9jop2ns6r.cn 氨酶偏高是什么意思hcv8jop5ns6r.cn 多梦睡眠质量不好是什么原因hcv7jop5ns4r.cn
门可罗雀什么意思hcv9jop5ns6r.cn 吃什么油最好hcv8jop9ns5r.cn 2001年是什么生肖hcv8jop9ns1r.cn 塞飞洛是什么档次的包hcv9jop2ns1r.cn 肝肾阴虚是什么原因引起的dajiketang.com
百度 技术支持:蜘蛛池 www.kelongchi.com