File tree Expand file tree Collapse file tree 2 files changed +17
-13
lines changed Expand file tree Collapse file tree 2 files changed +17
-13
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"RedisServers":
3
3
[
4
- {
5
- "server": "127.0.0.1",
6
- "port" : 6379,
7
- "password" : "1234"
8
- }
4
+ {
5
+ "server": "154.17.59.99,
6
+ "port" : 6379,
7
+ },
8
+ {
9
+ "server": "localhost",
10
+ "port" : 6380,
11
+ "password" : "some-password"
12
+ }
13
+ }
9
14
],
10
15
11
16
"DataStoreType" : "redis",
12
17
13
18
"RedisStatsServer":
14
19
{
15
- "server" : "127.0.0.1",
16
- "port" : 6381,
17
- "password" : "1234"
20
+ "server" : "ec2-184-72-166-144.compute-1.amazonaws.com",
21
+ "port" : 6385
18
22
}
19
23
}
Original file line number Diff line number Diff line change @@ -286,15 +286,15 @@ def stop(self):
286
286
287
287
if __name__ == '__main__' :
288
288
parser = argparse .ArgumentParser (description = 'Monitor redis.' )
289
- # parser.add_argument('--duration',
290
- # type=int,
291
- # help="duration to run the monitor command (in seconds)",
292
- # required=True)
289
+ parser .add_argument ('--duration' ,
290
+ type = int ,
291
+ help = "duration to run the monitor command (in seconds)" ,
292
+ required = True )
293
293
parser .add_argument ('--quiet' ,
294
294
help = "do not write anything to standard output" ,
295
295
required = False ,
296
296
action = 'store_true' )
297
297
args = parser .parse_args ()
298
- duration = 10 # args.duration
298
+ duration = args .duration
299
299
monitor = RedisMonitor ()
300
300
monitor .run (duration )
You can’t perform that action at this time.
0 commit comments