discoecs-2.2.2
توضیحات
Easy to setup AWS ECS autodiscovery for Prometheus
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | discoecs-2.2.2 |
| نام | discoecs |
| نسخه کتابخانه | 2.2.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | bindreturn |
| ایمیل نویسنده | bindreturn@protonmail.ch |
| آدرس صفحه اصلی | https://github.com/bindreturn/discoecs |
| آدرس اینترنتی | https://pypi.org/project/discoecs/ |
| مجوز | - |
# AWS ECS autodiscovery for Prometheus
## Installation:
```
$ pip install discoecs
```
## Usage examples - commandline:
Scan ECS tasks every 70 seconds, outputting Prometheus config to `ecs-targets.json` with 8080 as default Prometheus metrics port.
```
$ discoecs -v -f ecs-targets.json -p 8080 -i 70
```
Important note: provide AWS credentials and default region in any of the boto3 library standard locations, such as ~/.aws/credentials or using environment variables `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`, `AWS_DEFAULT_REGION`.
## Programmatic use
```
>>> import boto3
>>> import discoecs.get_cluster_tasks
>>> ecs_client = boto3.client('ecs')
>>> ecs_tasks = get_cluster_tasks(ecs_client)
```
نحوه نصب
نصب پکیج whl discoecs-2.2.2:
pip install discoecs-2.2.2.whl
نصب پکیج tar.gz discoecs-2.2.2:
pip install discoecs-2.2.2.tar.gz