Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

Easy to setup AWS ECS autodiscovery for Prometheus

Project description

AWS ECS autodiscovery for Prometheus


    $ 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)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for discoecs, version 2.2.2
Filename, size File type Python version Upload date Hashes
Filename, size discoecs-2.2.2.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page