Skip to content

Monitoring: Add per API key rate monitoring and Discord alerts  #797

Closed

Description

@nishika26

Is your feature request related to a problem?
There is no monitoring or alerting for per API key request rates, leading to potential abuse on high-cost endpoints. This lack of visibility can result in unexpected costs and runaway clients.

Describe the solution you'd like
Implement monitoring and Discord alerts for per API key request rates with the following thresholds in a one-minute window:

  • llm/call/ → more than 15 requests per minute
  • evaluations/ → more than 3 requests per minute
  • collections/ → more than 3 requests per minute

Notifications should be sent to a designated Discord channel detailing the triggering API key, endpoint, and request count. This proposal is for monitoring and alerting only; no rate limiting is required.

Activity

  1. changed the title [-]Add per API key rate monitoring and Discord alerts for high-cost endpoints[/-] [+]Monitoring: Alerts for API usage[/+] on Apr 29, 2026
  2. changed the title [-]Monitoring: Alerts for API usage[/-] [+]Monitoring: Add per API key rate monitoring and Discord alerts [/+] on Apr 29, 2026
  3. moved this to To Do in Kaapi-devon Apr 29, 2026
  4. added theissue type on Apr 29, 2026
  5. moved this to To Do in Kaapi-devon Apr 29, 2026
  6. moved this from To Do to In Progress in Kaapi-devon Apr 29, 2026
  7. moved this from In Progress to To Do in Kaapi-devon Apr 29, 2026
  8. self-assigned this
    on May 4, 2026
  9. moved this from To Do to In Progress in Kaapi-devon May 15, 2026
  10. AkhileshNegi commented on May 26, 2026

    @AkhileshNegi
    Collaborator

    We explored using Sentry for this. Sentry lets us set a threshold based on minimum frequency over a 5-minute window and trigger alerts based on the count.
    Image

    The issue is that these alerts are platform-wide, not project-specific. Since we need alerts at the project level, using only the Sentry UI won’t be enough. We’ll need to explore handling this through code and trigger Sentry alerts when the threshold is reached.

  11. moved this from In Progress to Closed in Kaapi-devon Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

Projects

  • Status
    Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions