diff --git a/README.md b/README.md index 5bc3774..2775c20 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/discoverecs.py b/discoverecs.py index 001fd77..69c9167 100644 --- a/discoverecs.py +++ b/discoverecs.py @@ -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: