mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-23 00:22:19 +01:00
chore: add call incoming webhook rate limit metric (#6252)
Follow up to https://github.com/Unleash/unleash/pull/6248 - Add this rate limit to metrics. 
This commit is contained in:
parent
2c5cd13160
commit
e4649e6421
@ -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) {}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user