prometheus-community / prometheus-community/stackdriver_exporter
How to get metrics from multiple projects
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 295
- Forks
- 117
- Avg merge
- 9d 14h
- Merged PRs (30d)
- 7
Description
What if I had a service account which had access to multiple projects and wanted to scrape GCP metrics for all of those projects? Currently we are able to get metrics only for the parent project and not other projects where we have access to.
/gcp_stackdriver_exporter/stackdriver_exporter --monitoring.metrics-type-prefixes loadbalancing.googleapis.com/
How to do that? How to use the roles/permissions of a service account to get metrics from other projects other than just adding those project names?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the gcp_stackdriver_exporter/stackdriver_exporter entry point and inspect handling of --monitoring.metrics-type-prefixes and the configured service account. Determine how project access is currently scoped and what is needed to scrape authorized projects beyond the parent project. Done means metrics from multiple accessible GCP projects can be collected and the behavior is covered by the project's tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, google-cloud, prometheus
- Domain
- cloud, observability-sre
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100