diff options
author | Alan Pearce | 2023-09-17 09:56:26 +0200 |
---|---|---|
committer | Alan Pearce | 2023-09-17 09:56:26 +0200 |
commit | dd8d6e2a89fa0b33ab1008d8cf5bc777d3d46a99 (patch) | |
tree | 34ccb28744379487ddf45f392a76a4669a03bb1a /src | |
parent | 105886c757f83cf7258fbafaa6c4f8580f2fc29a (diff) | |
download | website-dd8d6e2a89fa0b33ab1008d8cf5bc777d3d46a99.tar.lz website-dd8d6e2a89fa0b33ab1008d8cf5bc777d3d46a99.tar.zst website-dd8d6e2a89fa0b33ab1008d8cf5bc777d3d46a99.zip |
Also rename requests metric
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 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({ |