Skip to content

Commit

Permalink
Merge pull request #9747 from jgtoriginal/DeprecationWarning
Browse files Browse the repository at this point in the history
[FIX] DeprecationWarning: prom-client ... when starting Rocket Chat server
  • Loading branch information
rodrigok committed Feb 17, 2018
2 parents a62a6ab + 5dab240 commit 50e6799
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rocketchat-lib/server/lib/metrics.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ RocketChat.metrics = {};

// one sample metrics only - a counter

RocketChat.metrics.messagesSent = new client.Counter('messages_sent', 'cumulated number of messages sent');
RocketChat.metrics.messagesSent = new client.Counter({'name': 'message_sent', 'help': 'cumulated number of messages sent'});

0 comments on commit 50e6799

Please sign in to comment.