Skip to content

Forward metrics to another GCP Project #2309

@philipsabri

Description

@philipsabri

Describe the bug

Similarly to #885 we want to forward to a specific GCP project. In my case I'm hosting the GKE cluster in project A and using a pod service account with workload identity towards a GCP service account in Project B.
It seems like it's not respecting the GOOGLE_CLOUD_PROJECT for the java apps.

Logs

prePopulateVerifiedDescriptors | Failed to pre populate verified descriptors for PROJECT-A

com.google.api.gax.rpc.PermissionDeniedException: io.grpc.StatusRuntimeException: PERMISSION_DENIED: Permission monitoring.metricDescriptors.create denied (or the resource may not exist).

The environment variable GOOGLE_CLOUD_PROJECT is set to Project B
The SA in project B have the necessary IAM permission

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions