Save metric list to disk

This commit is contained in:
Christoph Hagen 2023-12-25 19:20:50 +01:00
parent 479635344d
commit 9bd7174bdd

View File

@ -70,6 +70,7 @@ func configure(_ app: Application) async throws {
provider = .init(observer: monitor, accessManager: configuration.monitoringTokens) provider = .init(observer: monitor, accessManager: configuration.monitoringTokens)
provider.asyncScheduler = scheduler provider.asyncScheduler = scheduler
provider.registerRoutes(app) provider.registerRoutes(app)
monitor.saveCurrentListOfMetricsToLogFolder()
try await status.update(.nominal) try await status.update(.nominal)
} }