diff options
author | Alan Pearce | 2023-09-14 19:52:30 +0200 |
---|---|---|
committer | Alan Pearce | 2023-09-15 19:24:53 +0200 |
commit | 4218b3b54104cf3318943fcfb0a05b5f0b6cfe8e (patch) | |
tree | 3a1990be6c43b154a88cac297b786155f2123a5e /src | |
parent | 7bb417f923bdaac08d0d48ef1df6d191e5030bd6 (diff) | |
download | website-4218b3b54104cf3318943fcfb0a05b5f0b6cfe8e.tar.lz website-4218b3b54104cf3318943fcfb0a05b5f0b6cfe8e.tar.zst website-4218b3b54104cf3318943fcfb0a05b5f0b6cfe8e.zip |
Add namespace to prometheus metrics
Diffstat (limited to 'src')
-rw-r--r-- | src/index.ts | 4 |
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"], }), |