Skip to content

feat(github): record rate limit of each response as gauges (#4752) - #7612

Merged
dan-petty merged 1 commit into
mainfrom
feat/4752-github-rate-limit-gauges
Nov 28, 2026
Merged

dan-petty merged 1 commit into
mainfrom
feat/4752-github-rate-limit-gauges

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Records GitHub API rate-limit ceiling, remaining capacity, spend, and reset epoch from every response header and /rate_limit refresh as Prometheus gauges per resource (core, graphql, search, etc.), and adds a Grafana panel visualizing rate-limit used vs. limit by resource.

Closes #4752

Change: openspec/changes/archive/2026-11-28-4752-github-rate-limit-gauges/

@dan-petty dan-petty added type/feature Type feature: a new function scope/github GitHub Projects v2, Views, Milestones, Labels, and PR automation labels Nov 28, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 28, 2026 17:39
@dan-petty

Copy link
Copy Markdown
Owner Author

Check results

Head commit: f72090ba25db76e70b408d0d740e9ce0b3a8e09c

Check Conclusion Link
Tests & Coverage success run
devops-cli success run
zizmor success run
trivy-config success run
Trivy neutral run
Changed-Test Independence success run
CodeQL success run
Plan Check skipped run
Test Job Duration skipped run
Tests on Main skipped run
Fail-to-Pass Check skipped run
Tests & Coverage (shard 2 of 6) success run
Tests & Coverage (shard 1 of 6) success run
Tests & Coverage (shard 5 of 6) success run
Changed-Test Independence (run 2 of 3) success run
Service Image success run
Tests & Coverage (shard 6 of 6) success run
Design Tokens success run
Tests & Coverage (shard 3 of 6) success run
Changed-Test Independence (run 3 of 3) success run
Tests & Coverage (shard 4 of 6) success run
Changed-Test Independence (run 1 of 3) success run
Runner Image success run
Semantic PR title success run
Image Pins success run
Docs Site Build success run
Static Analysis success run
Analyze (python) success run
Analyze (actions) success run

Skipped check: Trivy
Skipped check: Plan Check
Skipped check: Test Job Duration
Skipped check: Tests on Main
Skipped check: Fail-to-Pass Check

@dan-petty
dan-petty merged commit 0cf23a1 into main Nov 28, 2026
29 checks passed
@dan-petty
dan-petty deleted the feat/4752-github-rate-limit-gauges branch November 28, 2026 18:04
dan-petty-release Bot added a commit that referenced this pull request Nov 28, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.238.0](v0.237.0...v0.238.0)
(2026-11-28)


### Features

* **github:** record rate limit of each response as gauges
([#4752](#4752))
([#7612](#7612))
([0cf23a1](0cf23a1))
* **pr:** add devops pr comment and gh issue comment
([#7613](#7613))
([d50732c](d50732c)),
closes [#4855](#4855)
* **roadmap:** report SLOs and incidents in project review
([#4714](#4714))
([#7614](#7614))
([bc611e7](bc611e7))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/github GitHub Projects v2, Views, Milestones, Labels, and PR automation type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(github): record the rate limit of each response as gauges

1 participant