Skip to content
Snippets Groups Projects
Commit 22e2bcf5 authored by Alexander Tim Hobelsberger's avatar Alexander Tim Hobelsberger
Browse files

Custom Metrics

parent f8c081e9
No related branches found
No related tags found
No related merge requests found
...@@ -47,10 +47,11 @@ const client = require('prom-client'); ...@@ -47,10 +47,11 @@ const client = require('prom-client');
const register = new client.Registry(); const register = new client.Registry();
client.collectDefaultMetrics({register}); client.collectDefaultMetrics({register});
const clientConnectionCounter = new client.Counter({ /* const clientConnectionCounter = new client.Counter({
name: 'node_user_connections_count', name: 'node_user_connections_count',
help: 'The total number of client connections' help: 'The total number of client connections'
}); }); */
const histogram = new client.Histogram({ const histogram = new client.Histogram({
name: 'node_request_duration_seconds', name: 'node_request_duration_seconds',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment