diff --git a/src/lib/metrics.ts b/src/lib/metrics.ts index 7a448ed5a8..98225f49ff 100644 --- a/src/lib/metrics.ts +++ b/src/lib/metrics.ts @@ -355,6 +355,15 @@ export default class MetricsMonitor { rateLimits .labels({ endpoint: '/auth/simple', method: 'POST' }) .set(config.rateLimiting.simpleLoginMaxPerMinute); + rateLimits + .labels({ + endpoint: '/api/incoming-webhook/:name', + method: 'POST', + }) + .set( + config.rateLimiting.callIncomingWebhookMaxPerSecond * + 60, + ); } catch (e) {} }