You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Extracting attributes from pod labels and annotations
220
220
221
-
The k8sattributesprocessor can also set resource attributes from k8s labels and annotations of pods, namespaces and nodes.
222
-
The config for associating the data passing through the processor (spans, metrics and logs) with specific Pod/Namespace/Node annotations/labels is configured via "annotations" and "labels" keys.
223
-
This config represents a list of annotations/labels that are extracted from pods/namespaces/nodes and added to spans, metrics and logs.
221
+
The k8sattributesprocessor can also set resource attributes from k8s labels and annotations of pods, namespaces, deployments and nodes.
222
+
The config for associating the data passing through the processor (spans, metrics and logs) with specific Pod/Namespace/Deployment/Node annotations/labels is configured via "annotations" and "labels" keys.
223
+
This config represents a list of annotations/labels that are extracted from pods/namespaces/deployments/nodes and added to spans, metrics and logs.
224
224
Each item is specified as a config of tag_name (representing the tag name to tag the spans with),
225
225
key (representing the key used to extract value) and from (representing the kubernetes object used to extract the value).
226
-
The "from" field has only three possible values "pod", "namespace" and "node" and defaults to "pod" if none is specified.
226
+
The "from" field has only three possible values "pod", "namespace", "deployment" and "node" and defaults to "pod" if none is specified.
0 commit comments