forked from open-telemetry/opentelemetry-collector-contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[processor/k8sattributes] Add resource_attributes to metadata.yaml (o…
…pen-telemetry#23213) This PR adds the resource attributes added by the k8sattributes processor to the metadata.yaml file in the resource_attributes group. Only the attributes which are added by default (see [documentation](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/v0.79.0/processor/k8sattributesprocessor#configuration)) are marked as enabled. The default resource attributes defined in metadata.yaml are used to make the default extract::metadata list. Resource attributes are exposed through a different configuration interface. This is noted in the metadata.yaml file.
- Loading branch information
1 parent
330e109
commit 1aed350
Showing
7 changed files
with
459 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
101 changes: 101 additions & 0 deletions
101
processor/k8sattributesprocessor/internal/metadata/generated_config.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
94 changes: 94 additions & 0 deletions
94
processor/k8sattributesprocessor/internal/metadata/generated_config_test.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
89 changes: 89 additions & 0 deletions
89
processor/k8sattributesprocessor/internal/metadata/testdata/config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
default: | ||
all_set: | ||
resource_attributes: | ||
container.id: | ||
enabled: true | ||
container.image.name: | ||
enabled: true | ||
container.image.tag: | ||
enabled: true | ||
k8s.container.name: | ||
enabled: true | ||
k8s.cronjob.name: | ||
enabled: true | ||
k8s.daemonset.name: | ||
enabled: true | ||
k8s.daemonset.uid: | ||
enabled: true | ||
k8s.deployment.name: | ||
enabled: true | ||
k8s.deployment.uid: | ||
enabled: true | ||
k8s.job.name: | ||
enabled: true | ||
k8s.job.uid: | ||
enabled: true | ||
k8s.namespace.name: | ||
enabled: true | ||
k8s.node.name: | ||
enabled: true | ||
k8s.pod.hostname: | ||
enabled: true | ||
k8s.pod.name: | ||
enabled: true | ||
k8s.pod.start_time: | ||
enabled: true | ||
k8s.pod.uid: | ||
enabled: true | ||
k8s.replicaset.name: | ||
enabled: true | ||
k8s.replicaset.uid: | ||
enabled: true | ||
k8s.statefulset.name: | ||
enabled: true | ||
k8s.statefulset.uid: | ||
enabled: true | ||
none_set: | ||
resource_attributes: | ||
container.id: | ||
enabled: false | ||
container.image.name: | ||
enabled: false | ||
container.image.tag: | ||
enabled: false | ||
k8s.container.name: | ||
enabled: false | ||
k8s.cronjob.name: | ||
enabled: false | ||
k8s.daemonset.name: | ||
enabled: false | ||
k8s.daemonset.uid: | ||
enabled: false | ||
k8s.deployment.name: | ||
enabled: false | ||
k8s.deployment.uid: | ||
enabled: false | ||
k8s.job.name: | ||
enabled: false | ||
k8s.job.uid: | ||
enabled: false | ||
k8s.namespace.name: | ||
enabled: false | ||
k8s.node.name: | ||
enabled: false | ||
k8s.pod.hostname: | ||
enabled: false | ||
k8s.pod.name: | ||
enabled: false | ||
k8s.pod.start_time: | ||
enabled: false | ||
k8s.pod.uid: | ||
enabled: false | ||
k8s.replicaset.name: | ||
enabled: false | ||
k8s.replicaset.uid: | ||
enabled: false | ||
k8s.statefulset.name: | ||
enabled: false | ||
k8s.statefulset.uid: | ||
enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.