diff --git a/src/lib/features/scheduler/schedule-services.ts b/src/lib/features/scheduler/schedule-services.ts index dd00eb0574..69d3a218fc 100644 --- a/src/lib/features/scheduler/schedule-services.ts +++ b/src/lib/features/scheduler/schedule-services.ts @@ -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),