@cryptotaxi247 / netdata-1 / commits / bed75dbf1

Update dovecot.chart.py

Add two extra charts with data from sessions chart. New charts are activesessions and logins.

justohall committed Oct 11, 2016 at 22:25 UTC bed75dbf1ae744ccf70820a5f60077ed5577f673
1 file changed +11 -1
python.d/dovecot.chart.py
+11 -1
@@ -15,7 +15,7 @@ ORDER = ['sessions', 'commands',
15 'context_switches',
16 'disk', 'bytes', 'syscalls',
17 'lookup', 'cache',
18 - 'auth', 'auth_cache']
18 + 'auth', 'auth_cache', 'activesessions', 'logins']
19
20 CHARTS = {
21 'sessions': {
@@ -81,6 +81,16 @@ CHARTS = {
81 'lines': [
82 ['auth_cache_hits', 'hit', 'absolute'],
83 ['auth_cache_misses', 'miss', 'absolute']
84 + ]},
85 + 'activesessions': {
86 + 'options': [None, "active sessions", 'number', 'IMAP', 'dovecot.sessions', 'line'],
87 + 'lines': [
88 + ['num_connected_sessions', 'active sessions', 'absolute']
89 + ]},
90 + 'logins': {
91 + 'options': [None, "logins", 'number', 'IMAP', 'dovecot.logins', 'line'],
92 + 'lines': [
93 + ['num_logins', 'logins', 'absolute']
94 ]}
95 }
96