summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2023-09-14 19:52:30 +0200
committerAlan Pearce2023-09-15 19:24:53 +0200
commit4218b3b54104cf3318943fcfb0a05b5f0b6cfe8e (patch)
tree3a1990be6c43b154a88cac297b786155f2123a5e
parent7bb417f923bdaac08d0d48ef1df6d191e5030bd6 (diff)
downloadwebsite-4218b3b54104cf3318943fcfb0a05b5f0b6cfe8e.tar.lz
website-4218b3b54104cf3318943fcfb0a05b5f0b6cfe8e.tar.zst
website-4218b3b54104cf3318943fcfb0a05b5f0b6cfe8e.zip
Add namespace to prometheus metrics
-rw-r--r--src/index.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/index.ts b/src/index.ts
index d979f43..a377985 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -36,12 +36,12 @@ collectDefaultMetrics({
 });
 const counters = {
   requestsByStatus: new prom.Counter({
-    name: "requests_by_status",
+    name: "homestead_requests_by_status",
     help: "Number of requests by status code",
     labelNames: ["status_code"],
   }),
   requestsByPath: new prom.Counter({
-    name: "requests_by_path",
+    name: "homestead_requests_by_path",
     help: "Number of requests by path",
     labelNames: ["path"],
   }),