Skip to content
Snippets Groups Projects
Commit 30c9b564 authored by Markus Klose's avatar Markus Klose
Browse files

Comments

parent 3d0c9c6a
Branches
No related tags found
1 merge request!7Comments
This commit is part of merge request !7. Comments created here will be created in the context of that merge request.
......@@ -53,6 +53,10 @@ client.collectDefaultMetrics({register});
help: 'The total number of client connections'
}); */
// Declaring custom metrics to monitor the chatserver
// These metrics will monitor the system during runtime
// Prometheus will scrape these metrics and provide them to Gafana
const messageCounterIn = new client.Counter({
name: 'node_message_counter_in',
help: 'Counts the amount of incoming messages from clients to server'
......@@ -116,7 +120,7 @@ const totalClientsInDB = new client.Gauge({
});
global.TOTALCLIENTSINDB = totalClientsInDB;
// Register the metrics, to be collected in Prometheus database
register.registerMetric(messageCounterIn);
register.registerMetric(messageCounterOut);
register.registerMetric(messageAll);
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment