Skip to content

Commit

Permalink
Use range for compatibility with python3
Browse files Browse the repository at this point in the history
  • Loading branch information
aminehmida committed Sep 2, 2019
1 parent ed8c5e3 commit c3d763b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ECS Service Discovery for Prometheus
## Info
This tool provides Prometheus service discovery for Docker containers running on AWS ECS. You can easily instrument your app using a Prometheus
client and enable discovery adding an ENV variable at the Service Task Definition. Your container will then be added
to the list of Prometheus targets to be scraped. Requires python2 and boto3. Works with Prometheus 2.x. It supports bridge, host, and awsvpc
to the list of Prometheus targets to be scraped. Requires python2 or python3 and boto3. Works with Prometheus 2.x. It supports bridge, host and awsvpc
network modes.

## Setup
Expand Down
2 changes: 1 addition & 1 deletion discoverecs.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def log(message):
print(message)

def chunk_list(l, n):
return [l[i:i + n] for i in xrange(0, len(l), n)]
return [l[i:i + n] for i in range(0, len(l), n)]

def dict_get(d, k, default):
if k in d:
Expand Down

0 comments on commit c3d763b

Please sign in to comment.