mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-26 13:48:33 +02: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
|
rateLimits
|
||||||
.labels({ endpoint: '/auth/simple', method: 'POST' })
|
.labels({ endpoint: '/auth/simple', method: 'POST' })
|
||||||
.set(config.rateLimiting.simpleLoginMaxPerMinute);
|
.set(config.rateLimiting.simpleLoginMaxPerMinute);
|
||||||
|
rateLimits
|
||||||
|
.labels({
|
||||||
|
endpoint: '/api/incoming-webhook/:name',
|
||||||
|
method: 'POST',
|
||||||
|
})
|
||||||
|
.set(
|
||||||
|
config.rateLimiting.callIncomingWebhookMaxPerSecond *
|
||||||
|
60,
|
||||||
|
);
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user