From 22e2bcf5afa723463bbc3b8f34a58a2536356386 Mon Sep 17 00:00:00 2001 From: Alexander Tim Hobelsberger <alexander_tim.hobelsberger@student.reutlingen-university.de> Date: Wed, 23 Nov 2022 17:01:08 +0100 Subject: [PATCH] Custom Metrics --- index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 5f59398..5350900 100644 --- a/index.js +++ b/index.js @@ -47,10 +47,11 @@ const client = require('prom-client'); const register = new client.Registry(); client.collectDefaultMetrics({register}); -const clientConnectionCounter = new client.Counter({ +/* const clientConnectionCounter = new client.Counter({ name: 'node_user_connections_count', help: 'The total number of client connections' -}); +}); */ + const histogram = new client.Histogram({ name: 'node_request_duration_seconds', -- GitLab