Skip to content

Add Google AI Studio usage via Cloud Monitoring #3072

Description

@brzvsk

Summary

Could CodexBar add a separate Google AI Studio provider for project-level Gemini API usage through the official
Cloud Monitoring API and gcloud Application Default Credentials?

This is distinct from:

Evidence

I ran a read-only seven-day spike against an active project. It made no Gemini generation calls, imported no cookies,
and changed no APIs, IAM, or project settings.

  • 14 populated native generativelanguage.googleapis.com/* series;
  • 6 unambiguous quota usage/limit pairs;
  • request, input/output token, and model-level data available;
  • about 48 minutes of observed reporting lag.

Native Gemini metrics were sufficient; generic Service Runtime quota metrics were not.

Proposed v1

  • Built-in provider using ADC, reusing/refactoring Vertex AI's Cloud Monitoring transport.
  • Explicit project selection; no automatic Google Cloud changes.
  • Primary window: highest unambiguous quota usage.
  • Details: project/model request and token totals plus update time.
  • No browser cookies, private AI Studio endpoints, per-key breakdown, billing/cost, or cross-provider fallback.
  • Never render or log project/credential label values.

A local provider plugin cannot support this safely today because plugins cannot access gcloud/ADC.

Would a separate built-in Google AI Studio provider fit CodexBar's provider boundary?

If accepted, I can prepare a focused implementation that reuses the existing Vertex AI ADC and Cloud Monitoring code
where practical, with fixture-only tests and no live credentials.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low-risk cleanup, docs, polish, ergonomics, or speculative feature.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.issue-rating: 🌊 off-meta tidepoolIssue quality rating does not apply to this item.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions