From dd8d6e2a89fa0b33ab1008d8cf5bc777d3d46a99 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 17 Sep 2023 09:56:26 +0200 Subject: Also rename requests metric --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 874da30..216dda1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -32,8 +32,8 @@ type File = { const metrics = { requests: new prom.Counter({ - name: "homestead_requests_by_path", - help: "Number of requests by path", + name: "homestead_requests", + help: "Number of requests by path, status code, and method", labelNames: ["path", "status_code", "method"], }), requestDuration: new prom.Histogram({ -- cgit 1.4.1