about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2023-09-16 08:25:34 +0200
committerAlan Pearce2023-09-16 08:25:34 +0200
commit90e0bc495f138532ab6b2cd04a74bc53057ccdc7 (patch)
tree99109e6b335affa3e4824b5d00cdbfb70544c147
parent135319739943f4f036f77a70db2a96d4249bbd43 (diff)
downloadwebsite-90e0bc495f138532ab6b2cd04a74bc53057ccdc7.tar.lz
website-90e0bc495f138532ab6b2cd04a74bc53057ccdc7.tar.zst
website-90e0bc495f138532ab6b2cd04a74bc53057ccdc7.zip
Don't try to collect default metrics that don't work in Bun
-rw-r--r--src/index.ts8
1 files changed, 0 insertions, 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",