GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — API Quotas for Monitoring · Issue #2576 · googleapis/google-cloud-java

API Quotas for Monitoring #2576

New issue
Copy link
New issue
Copy link
Closed
Closed
API Quotas for Monitoring#2576
Copy link
Assignees
pongad
Labels
api: monitoringIssues related to the Cloud Monitoring API.authtype: questionRequest for information or clarification. Not an issue.

Description

@keitwb
keitwb
opened on Nov 5, 2017
Issue body actions

Hi, I'm using the MetricServiceClient for getting StackDriver timeseries. I am authenticating using a user oauth token (this user has access to multiple projects), but there seems to be a global quota across multiple projects because when I fetch only one or two projects at a time I have no throttling, but when I fetch four or five different projects at a time, I start getting throttled with errors like the following:

io.grpc.StatusRuntimeException: RESOURCE_EXHAUSTED: Insufficient tokens for quota 'DefaultGroup' and limit 'USER-100s' of service 'monitoring.googleapis.com' for consumer 'project_number:764086051850'.

The strange thing is, that project_number doesn't correspond to any project I am fetching, or even have access to -- it is meaningless to me.

This appears to be the quota for # of requests per 100 seconds, but I have that set to 10,000 on all projects and I'm not doing nearly that many requests, as the quota historical chart in the web console confirms.

Is there really some global quota that applies across multiple projects and if so, is there some way to work around it?

Activity

  1. garrettjonesgoogle
    added
    auth
    on Nov 5, 2017
  2. garrettjonesgoogle
    assigned
    vchudnov-g
    on Nov 5, 2017
  3. anthmgoogle
    added
    api: monitoringIssues related to the Cloud Monitoring API.
    type: questionRequest for information or clarification. Not an issue.
    on Nov 8, 2017
  4. anthmgoogle commented on Nov 8, 2017

    @anthmgoogle
    anthmgoogle
    on Nov 8, 2017
    More actions

    This looks like it might be because of using shared credentials such as with "gcloud auth application-default login". We recommend using a downloaded service account key and setting the environment variable GOOGLE_APPLICATION_CREDENTIALS to point to it:
    https://developers.google.com/identity/protocols/application-default-credentials#howtheywork
    This should let you adjust the quota for your API.

    Please advise if this does not fixed the problem.

  5. anthmgoogle
    self-assigned this
    on Nov 8, 2017
  6. pongad commented on Jan 22, 2018

    @pongad
    pongad
    on Jan 22, 2018
    Contributor
    More actions

    I'll close this due to inactivity. Please reopen if required.

  7. pongad
    closed this as completedon Jan 22, 2018
  8. theacodes
    unassigned
    vchudnov-g
    and
    anthmgoogle
    on Sep 28, 2018
  9. JustinBeckwith
    assigned
    pongad
    on Feb 1, 2021
  10. chingor13
    added a commit that references this issue on Feb 20, 2026

    chore(main): release 3.8.0 (#2576)

    a8e767b
  11. chingor13
    added a commit that references this issue on Mar 30, 2026

    ci: [java] automatic kokoro label in and /gcbrun comment (#1965) (#2576)

    de3236f
  12. meltsufin
    added 2 commits that reference this issue on Apr 29, 2026

    deps: update actions/checkout action to v5 (#2576)

    1375f6d

    deps: update actions/checkout action to v5 (#2576)

    67633f7
  13. rahul2393
    added a commit that references this issue on May 21, 2026

    chore: Update generation configuration at Fri Jun 6 02:32:26 UTC 2025 (…

    70f505a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @pongad
    pongad

Labels

api: monitoringIssues related to the Cloud Monitoring API.authtype: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.