Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

continuously poll new projects based on filters #318

Open
DanArlowski opened this issue Mar 18, 2024 · 0 comments
Open

continuously poll new projects based on filters #318

DanArlowski opened this issue Mar 18, 2024 · 0 comments

Comments

@DanArlowski
Copy link

Problem Statement
We have GCP projects that are created dynamically and need to be discovered by the stackdriver exporter,
but currently that aren't, since the exporter fetches the projects only at startup.utilize.

Desired State
The stackdriver exporter fetches the projects it needs to scrape (google.projects.filter arg) on some configurable interval,
that's way we can auto discover new projects and scrape their metrics.

Solution Proposal

  • Utilize mutex and keep the prometheus registry & project list in order to register/unregister projects in a separate subroutine.
  • Create a continuous update for GCP projects using the filters,
  • The update mechanism can and should be editable to both disable the behavior as well as increasing/decreasing the time between polls

we already created a working POC,
which just needs a bit more polishing

@SuperQ
please let me know what do you think so we can start working on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant