Skip to content
Snippets Groups Projects
Verified Commit 7a41002e authored by Quentin Duchemin's avatar Quentin Duchemin
Browse files

Add Mattermost websocket connection number

parent 95ffe16b
No related branches found
No related tags found
No related merge requests found
......@@ -130,6 +130,17 @@ class MattermostCollector(object):
}
})
metrics.append({
'measurement': 'total_websocket_connections',
'tags': {
'name': instance['config']['name']
},
'time': current_timestamp,
'fields': {
'value': data['total_websocket_connections']
}
})
# Get daily stats
daily_data = self._get_daily_stats(instance)
if daily_data is None:
......@@ -177,6 +188,7 @@ class MattermostCollector(object):
# Extract values
data['public_channels'] = cls._get_value(res, 'channel_open_count')
data['private_channels'] = cls._get_value(res, 'channel_private_count')
data['total_websocket_connections'] = clis._get_value(res, 'total_websocket_connections')
data['posts'] = cls._get_value(res, 'post_count')
data['users'] = cls._get_value(res, 'unique_user_count')
data['teams'] = cls._get_value(res, 'team_count')
......
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