1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-04 11:17:02 +02:00

Add comment

This commit is contained in:
Gastón Fournier 2024-10-17 23:22:49 +02:00
parent e97f74891f
commit add3beda05
No known key found for this signature in database
GPG Key ID: AF45428626E17A8E

View File

@ -59,6 +59,10 @@ export const scheduleServices = async (
'updateLastSeen',
);
// TODO this works fine for keeping labeledAppCounts up to date, but
// it would be nice if we can keep client_apps_total prometheus metric
// up to date. We'd need to have access to DbMetricsMonitor, which is
// where the metric is registered and call an update only for that metric
schedulerService.schedule(
instanceStatsService.getLabeledAppCounts.bind(instanceStatsService),
minutesToMilliseconds(5),