[receiver/k8s_cluster] Define entities and relationships in metadata.yaml#46172
Conversation
200c19e to
4deb683
Compare
ae8ad71 to
dc58f48
Compare
| - ref: k8s.deployment.uid | ||
| description: | ||
| - ref: k8s.deployment.name | ||
| relationships: |
There was a problem hiding this comment.
Is this part of the data-model already?
That would also be nice to be surfaced in the generated docs too I guess.
There was a problem hiding this comment.
Is this part of the data-model already?
Not yet. It is about to be defined in open-telemetry/opentelemetry-specification#4836.
For now, mdatagen only supports relationship definitions (see open-telemetry/opentelemetry-collector#14582). The type of relationships is currently ignored.
At this stage, I only need the relationships as plain connections in order to generate the new metrics builder Go API based on the set of entities associated with metrics in metadata.yaml. Once that API generation is ready, I'll apply it to k8s_cluster receiver to see the diff in generated Go code. But as the preliminary step, I'ld like the receiver to have entities defined first
|
Needs rebase. |
dc58f48 to
53d2929
Compare
|
I removed changes on the emitted data for now. Otherwise, it would result in incomplete entities that don't support disabling attributes. For now, I kept entities and relationships definition only |
Define entities and relationships for Kubernetes resources in metadata.yaml. Resolves open-telemetry#41080 The new data is added to the experimental resource proto field proto (https://github.com/open-telemetry/opentelemetry-proto/blob/main/opentelemetry/proto/resource/v1/resource.proto#L44) and be be simply ignored if not needed.
53d2929 to
5ac7633
Compare
…yaml (open-telemetry#46172) Define entities and relationships for Kubernetes resources in metadata.yaml. Updates open-telemetry#41080 This PR adds entity type definitions with their identity and descriptive attributes, as well as relationships between entities (e.g., pod managed_by replicaset, deployment part_of namespace). These definitions will be used by the metadata generator to create the necessary code for entity support in a future update.
Define entities and relationships for Kubernetes resources in metadata.yaml.
Updates #41080
This PR adds entity type definitions with their identity and descriptive attributes, as well as relationships between entities (e.g., pod managed_by replicaset, deployment part_of namespace). These definitions will be used by the metadata generator to create the necessary code for entity support in a future update.