Skip to content

Sidecar usage for outside of GKE clusters #251

Open
@mboveri

Description

@mboveri

Hello,

I have kubernetes clusters in multiple clouds (GCP, AWS, on-prem OpenStack) and would like to export all my prometheus metrics to Stackdriver. Right now, stackdriver-prometheus-sidecar does not have the ability to explicitly specify which service account credentials to use when communicating with the Google Cloud Monitoring (GCM) API. This means that the sidecar cannot function outside of GCE nodes, where Workload Identity normally provides authentication and authorization. It would be really nice if we were able to leverage the stackdriver-prometheus-sidecar to export metrics from our non-GCP Kubernetes clusters into GCM. Is it possible to add a configuration flag to the sidecar that specifies a location on disk where service account keys could be placed? That way, one could stash the service account keys in a kubernetes Secret object and mount them into the container, even on clusters outside of GCP.

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