Skip to content

gcp.gce: Add instance group name #905

@punya

Description

@punya

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

  • Fetching instance group at query time -- doesn't work if the instance no longer exists
  • Using a label or naming convention -- fragile

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions