Don't try to collect default metrics that don't work in Bun
Alan Pearce alan@alanpearce.eu
Sat, 16 Sep 2023 08:25:34 +0200
1 files changed, 0 insertions(+), 8 deletions(-)
jump to
M src/index.ts → src/index.ts
@@ -29,14 +29,6 @@ size: number; 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",