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

Add pingdom_min_request_limit internal metric #15

Merged

Conversation

rabenhorst
Copy link
Contributor

Add pingdom_min_request_limit internal metric, which returns the minimal value of reaming requests from Req-Limit-Short and Req-Limit-Long headers. This will allow to monitor the remaining request limit to take action before the API rate limits a token or whole account.

Copy link

@pedro-stanaka pedro-stanaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG - some nits

cmd/pingdom-exporter/main.go Outdated Show resolved Hide resolved
cmd/pingdom-exporter/main.go Outdated Show resolved Hide resolved
@pedro-stanaka
Copy link

@danielfm pinging you for a review. Obrigado!

@pedro-stanaka
Copy link

One more thing I noticed, I think you need to add docs for the metric in the README.

README.md Outdated Show resolved Hide resolved
@rabenhorst rabenhorst requested a review from danielfm May 13, 2024 17:11
@danielfm
Copy link
Collaborator

Thanks!

@danielfm danielfm self-assigned this May 29, 2024
@danielfm danielfm merged commit 1a75e05 into jusbrasil:master May 29, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

None yet

4 participants