From 90e0bc495f138532ab6b2cd04a74bc53057ccdc7 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 16 Sep 2023 08:25:34 +0200 Subject: Don't try to collect default metrics that don't work in Bun --- src/index.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/index.ts b/src/index.ts index 7a2c5f5..c7b7892 100644 --- a/src/index.ts +++ b/src/index.ts @@ -29,14 +29,6 @@ type File = { mtime: Date; }; -const collectDefaultMetrics = prom.collectDefaultMetrics; -collectDefaultMetrics({ - labels: { - FLY_APP_NAME: Bun.env.FLY_APP_NAME, - FLY_ALLOC_ID: Bun.env.FLY_ALLOC_ID, - FLY_REGION: Bun.env.FLY_REGION, - }, -}); const metrics = { requestsByStatus: new prom.Counter({ name: "homestead_requests_by_status", -- cgit 1.4.1