open-telemetry / semantic-conventions

Defines standards for generating consistent, accessible telemetry across a variety of domains
Apache License 2.0
284 stars 175 forks source link

gcp.gce: Add instance group name #905

Open punya opened 7 months ago

punya commented 7 months ago

Area(s)

area:gcp

Is your change request related to a problem? Please describe.

On GCE, instance groups can be used to organize the configuration and lifecycle of multiple VM instances as a single entity. I'd like to associate the instance group name with telemetry from its individual instances to help with grouping, in the same way that a cluster or namespace helps to group k8s pods.

Describe the solution you'd like

A new attribute gcp.gce.instance.group that is optionally populated on GCP instances. It can be retrieved as the value of the created-by instance metadata field.

Describe alternatives you've considered

Additional context

No response

johnbryan commented 7 months ago

Should/could this be cloud agnostic?

joaopgrassi commented 4 months ago

This would be a resource attribute, right? @punya do you plan to work/submit a PR for starting a discussion on it?