all repos — website @ 90e0bc495f138532ab6b2cd04a74bc53057ccdc7

My website

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
commit

90e0bc495f138532ab6b2cd04a74bc53057ccdc7

parent

135319739943f4f036f77a70db2a96d4249bbd43

1 files changed, 0 insertions(+), 8 deletions(-)

jump to
M src/index.tssrc/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",