• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / gotrue / 5799534360
65%

Build:
DEFAULT BRANCH: master
Ran 08 Aug 2023 04:36PM UTC
Jobs 1
Files 109
Run time 4s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 Aug 2023 04:29PM UTC coverage: 65.914% (+0.02%) from 65.898%
5799534360

push

github

web-flow
feat: add email rate limit breach metric (#1208)

## What kind of change does this PR introduce?

This PR aims to expose a set of email rate limit metrics as a Prometheus
metric that can then be consumed by an alerting system like Prometheus.
When a rate limit is triggered we increment a counter. This can then be
passed to a monitoring system such as Prometheus alert manager which can
fire off a notification (or similar) when a threshold (say 5 occurrences
in an hour) has been breached.

Extends: #1213 


The presence of the metric was tested via using the default
`prometheus.yml` file that comes on download. To test that the rate
limit is firing, we decreased `GOTRUE_RATE_LIMIT_EMAIL_SENT="5"` to 5
and ran `ab` against the endpoint like

`ab -p mass_signup.txt -T application/json -c 10 -n 50
http://localhost:9999/otp`

---------

Co-authored-by: joel@joellee.org <joel@joellee.org>

5 of 5 new or added lines in 1 file covered. (100.0%)

7236 of 10978 relevant lines covered (65.91%)

50.25 hits per line

Jobs
ID Job ID Ran Files Coverage
1 5799534360.1 08 Aug 2023 04:36PM UTC 0
65.91
GitHub Action Run
Source Files on build 5799534360
Detailed source file information is not available for this build.
  • Back to Repo
  • 4ff1fe05 on github
  • Prev Build on master (#5799525024)
  • Next Build on master (#5890474479)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc