Skip to content

Commit 9406510

Browse files
committed
Updated sample .conf to show password usage. Also, uncommented the "duration" CLI flag (originally commented it out for debugging purposes).
This project now supports password authentication for both client servers and the STAT server.
1 parent 5e66e07 commit 9406510

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed

src/redis-live.conf

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
11
{
22
"RedisServers":
33
[
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+
}
914
],
1015

1116
"DataStoreType" : "redis",
1217

1318
"RedisStatsServer":
1419
{
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
1822
}
1923
}

src/redis-monitor.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -286,15 +286,15 @@ def stop(self):
286286

287287
if __name__ == '__main__':
288288
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)
293293
parser.add_argument('--quiet',
294294
help="do not write anything to standard output",
295295
required=False,
296296
action='store_true')
297297
args = parser.parse_args()
298-
duration = 10 #args.duration
298+
duration = args.duration
299299
monitor = RedisMonitor()
300300
monitor.run(duration)

0 commit comments

Comments
 (0)