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

RATE-LIMIT whit Prometheus #4681

Open
2 tasks done
tokar86a opened this issue Apr 16, 2024 · 3 comments
Open
2 tasks done

RATE-LIMIT whit Prometheus #4681

tokar86a opened this issue Apr 16, 2024 · 3 comments
Labels
area:metrics related to monitoring metrics help question Further information is requested

Comments

@tokar86a
Copy link

tokar86a commented Apr 16, 2024

⚠️ Please verify that this question has NOT been raised before.

  • I checked and didn't find similar issue

🛡️ Security Policy

📝 Describe your problem

Trying to found out why i am getting this error in the logs when i configure Prometheus to scrap for the data on /metrics

Seems to be going away when i stop Prometheus from scraping the data.

📝 Error Message(s) or Log

kuma  | 2024-04-16T17:51:28+02:00 [RATE-LIMIT] INFO: remaining requests: 60
kuma  | 2024-04-16T17:53:14+02:00 [RATE-LIMIT] INFO: remaining requests: 60
kuma  | 2024-04-16T17:53:44+02:00 [RATE-LIMIT] INFO: remaining requests: 60
kuma  | 2024-04-16T17:54:14+02:00 [RATE-LIMIT] INFO: remaining requests: 60
kuma  | 2024-04-16T17:54:44+02:00 [RATE-LIMIT] INFO: remaining requests: 60

🐻 Uptime-Kuma Version

1.23.11

💻 Operating System and Arch

Ubuntu 22.04 X86

🌐 Browser

Firefox 124.0.2

🖥️ Deployment Environment

  • Database: sqlite
  • number of monitors: 4
@tokar86a tokar86a added the help label Apr 16, 2024
@CommanderStorm CommanderStorm added the question Further information is requested label Apr 16, 2024
@CommanderStorm
Copy link
Collaborator

You are getting these INFO-log messages to inform you that you have 60 remaining requests.

You are missing a question: what are you asking about?

@CommanderStorm CommanderStorm added the area:metrics related to monitoring metrics label Apr 16, 2024
@tokar86a
Copy link
Author

You are getting these INFO-log messages to inform you that you have 60 remaining requests.

You are missing a question: what are you asking about?

I am asking why i am getting this info log and it seems to be spamming it. It is somehow i can disable that sort of information or make it appear less frequent?

@CommanderStorm
Copy link
Collaborator

The log message indicates that an action has been performed against a rate-limited endpoint.
This is nothing to be conceared about, unless you are actually spamming a rate limited endpoint.

See

log.info("rate-limit", "remaining requests: " + remainingRequests);

Note

An enhancement might be to not warn on the first rate-limited request.
Our contribution guide is here: https://github.com/louislam/uptime-kuma/blob/master/CONTRIBUTING.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:metrics related to monitoring metrics help question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants