Repository navigation
feat: monitor rate.vn home, health and public API #5
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -42,6 +42,22 @@ sites: | |
| icon: https://dos.ai/icon.svg | ||
| maxResponseTime: 5000 | ||
|
|
||
| - name: Rate.vn | ||
| url: https://rate.vn | ||
| icon: https://rate.vn/img/rate-logo-64.png | ||
| maxResponseTime: 5000 | ||
|
|
||
| # 503 when the Supabase read fails (DOS/Rate#829). Cold starts take up to ~9 s. | ||
| - name: Rate.vn Health | ||
| url: https://rate.vn/api/health | ||
| icon: https://rate.vn/img/rate-logo-64.png | ||
| maxResponseTime: 10000 | ||
|
|
||
| - name: Rate.vn API | ||
| url: https://rate.vn/api/v1/rate/stats | ||
| icon: https://rate.vn/img/rate-logo-64.png | ||
| maxResponseTime: 5000 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since the maxResponseTime: 15000 |
||
|
|
||
| status-website: | ||
| cname: status.dos.ai | ||
| logoUrl: https://dos.ai/icon.svg | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment on line 50 notes that cold starts can take up to ~9 seconds. Setting
maxResponseTimeto10000(10 seconds) leaves a very narrow margin of only 1 second. Under slight network jitter or platform load, cold starts can easily exceed 10 seconds, leading to false-positive downtime alerts. It is recommended to increase this threshold to15000(15 seconds) to provide a safe buffer and prevent alert fatigue.