prometheus-community / prometheus-community/stackdriver_exporter

How to get metrics from multiple projects

Open
#132 2 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.