From 2f0daba15c23d7e877df28291198ae7a6474f5fb Mon Sep 17 00:00:00 2001 From: Thanh Le Date: Fri, 15 Nov 2024 20:22:42 +0100 Subject: [PATCH] Add io metrics for app & ingestor --- modules/app/src/main/scala/app.scala | 1 + modules/ingestor/src/main/scala/app.scala | 1 + 2 files changed, 2 insertions(+) diff --git a/modules/app/src/main/scala/app.scala b/modules/app/src/main/scala/app.scala index 8b2f4c9..ce81afc 100644 --- a/modules/app/src/main/scala/app.scala +++ b/modules/app/src/main/scala/app.scala @@ -26,6 +26,7 @@ object App extends IOApp.Simple: config <- AppConfig.load.toResource _ <- Logger[IO].info(s"Starting lila-search with config: $config").toResource _ <- RuntimeMetrics.register[IO] + _ <- IOMetrics.register[IO]() res <- AppResources.instance(config) _ <- mkServer(res, config) yield () diff --git a/modules/ingestor/src/main/scala/app.scala b/modules/ingestor/src/main/scala/app.scala index 19a859e..acf52cd 100644 --- a/modules/ingestor/src/main/scala/app.scala +++ b/modules/ingestor/src/main/scala/app.scala @@ -20,6 +20,7 @@ object App extends IOApp.Simple: for given Meter[IO] <- mkMeter _ <- RuntimeMetrics.register[IO] + _ <- IOMetrics.register[IO]() config <- AppConfig.load.toResource _ <- Logger[IO].info(s"Starting lila-search ingestor with config: $config").toResource res <- AppResources.instance(config)