{"comment":{"url":"https://api.github.com/repos/hopglass/hopglass-server/comments/17745165","html_url":"https://github.com/hopglass/hopglass-server/commit/f3b3c57984da9e25c58c12e56be7ada71767d9ec#commitcomment-17745165","id":17745165,"user":{"login":"tantive","id":10166298,"avatar_url":"https://avatars.githubusercontent.com/u/10166298?v=3","gravatar_id":"","url":"https://api.github.com/users/tantive","html_url":"https://github.com/tantive","followers_url":"https://api.github.com/users/tantive/followers","following_url":"https://api.github.com/users/tantive/following{/other_user}","gists_url":"https://api.github.com/users/tantive/gists{/gist_id}","starred_url":"https://api.github.com/users/tantive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tantive/subscriptions","organizations_url":"https://api.github.com/users/tantive/orgs","repos_url":"https://api.github.com/users/tantive/repos","events_url":"https://api.github.com/users/tantive/events{/privacy}","received_events_url":"https://api.github.com/users/tantive/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":null,"commit_id":"f3b3c57984da9e25c58c12e56be7ada71767d9ec","created_at":"2016-06-05T12:48:02Z","updated_at":"2016-06-05T12:48:02Z","body":"```\r\ndiff --git a/modules/provider/prometheus-metrics.js b/modules/provider/prometheus-metrics.js\r\nindex 50695a5..0615530 100644\r\n--- a/modules/provider/prometheus-metrics.js\r\n+++ b/modules/provider/prometheus-metrics.js\r\n@@ -72,7 +72,9 @@ module.exports = function(receiver, config) {\r\n     counter.meshnodes = {}\r\n     counter.meshnodes.online = 0\r\n     counter.meshnodes.total = 0\r\n-    counter.clients = 0\r\n+    counter.clients = {}\r\n+    counter.clients.online = 0\r\n+    counter.clients.total = 0\r\n     counter.traffic = {}\r\n     counter.traffic.forward = 0\r\n     counter.traffic.rx = 0\r\n@@ -178,7 +182,8 @@ module.exports = function(receiver, config) {\r\n       }, function() {\r\n         stream.write('meshnodes_total ' + counter.meshnodes.total + '\\n')\r\n         stream.write('meshnodes_online_total ' + counter.meshnodes.online + '\\n')\r\n-        stream.write('total_clients ' + counter.clients + '\\n')\r\n+        stream.write('clients_total ' + counter.clients.total + '\\n')\r\n+        stream.write('clients_online_total ' + counter.clients.online + '\\n')\r\n \r\n         var labels = {}\r\n```"}}
{"actor":{"display_login":"tantive"}}