-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
49 lines (48 loc) · 1.42 KB
/
Copy pathconfig.js
File metadata and controls
49 lines (48 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/**
* Configuration file. You may try to enable other DSTAT plugins, most of them must to work.
* Don't enable plugins that starts with "--top-*".
*
* You can read man of DSTAT at https://github.com/dagwieers/dstat
*
* Use {env: key} to specify environment variables. DSTAT uses this variables for connection to
* MySQL, Mongodb and others. You cant open any plugin file in "/usr/share/dstat/" directory
* to see if some plugin need environment variables to be set.
*
* You need to have write permission to be able to run this server because of pipe that
* are used as buffer between DSTAT and server.
*
* @type {{dataBuffer: string, env: {}, plugins: string[], port: number, debug: boolean, delay: number}}
*/
module.exports = {
dataBuffer : "/var/www/dstat.dev/dstat_pipe",
env: {
DSTAT_MYSQL_USER: 'root',
DSTAT_MYSQL_PWD: 'root'
},
plugins: ['--redis', '--cpu', '--mongodb-cmds', '--mysql5-cmds', '--mysql5-rps', '--mysql5-conn', '--mysql5-io', '--mysql5-keys', '--mem', '--page', '--fs', '--disk', '--disk-util', '--socket', '--net', '-N', 'lo,total'],
port: 3016,
debug: false,
delay: 1
};
/**
Tested plugins that works well:
plugins:
[
'--redis',
'--memcache',
'--mongodb-cmds',
'--mysql5-cmds',
'--mysql5-conn',
'--mysql5-io',
'--mysql5-keys',
'--cpu', '-C,0,3,total',
'--mem',
'--proc',
'--page',
'--fs',
'--disk',
'--disk-util',
'--socket',
'--net', -N lo,total'
]
*/