Skip to content

ManagedMetric does not return the name of the Managed Resource #49

@rouzbehsedighi

Description

@rouzbehsedighi

When using a ManagedMetric to collect status metrics from Crossplane-managed resources, the resulting metric data does not include the metadata.name of the managed resource (e.g., the name of btp-subaccount, or other managed resource being observed).

Since ManagedMetric does not allow projections, there is no way to include the name or identity of the resource in the metric output. This makes it impossible to distinguish which specific resource a given metric value belongs to.

Expected behavior

Each recorded metric from a ManagedMetric should:

  • Include the metadata.name of the managed resource as a dimension (e.g., resource_name).
  • Optionally include the namespace or other identifying fields.

This would enable distinguishing between metrics from multiple instances of the same kind.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/providerAll Provider related issuesbugSomething isn't workingkind/bug

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions