add metrics listenr to event persister

This commit is contained in:
Daniel Lovbrotte Olsen 2022-12-14 09:15:57 +01:00
parent d900b8f288
commit bb105192c2
1 changed files with 1 additions and 0 deletions

View File

@ -621,6 +621,7 @@ in
isAuto = true; type = "event-persist"; index = i;
settings.worker_listeners = [{ port = cfg.workers.workerStartingPort + cfg.workers.federationReceivers + cfg.workers.initialSyncers + cfg.workers.normalSyncers + i - 1;}]
++ lib.optional wcfg.enableMetrics { port = cfg.workers.metricsStartingPort + cfg.workers.federationSenders + cfg.workers.federationReceivers + cfg.workers.initialSyncers + cfg.workers.normalSyncers + i;
resources = [ { names = [ "metrics" ]; } ];
};
});
})