Skip to content

Commit

Permalink
Merge pull request #181 from casey-green/master
Browse files Browse the repository at this point in the history
When parsing redis port, get last element after ':' instead of second
  • Loading branch information
johann8384 committed Nov 11, 2014
2 parents e99f523 + 77ed497 commit 9f807e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collectors/0/redis-stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def scan_for_instances():
if not (line and 'redis-server' in line):
continue
pid = int(line.split()[6].split("/")[0])
port = int(line.split()[3].split(":")[1])
port = int(line.split()[3].split(":")[-1])

# now we have to get the command line. we look in the redis config file for
# a special line that tells us what cluster this is. else we default to using
Expand Down

0 comments on commit 9f807e2

Please sign in to comment.