tle253/prome-ecs2
This Docker image integrates Prometheus, the leading open-source monitoring and alerting toolkit, with a custom application that simplifies the process of pulling metrics from AWS Elastic Container Service (ECS). It is designed to provide seamless observability into ECS environments by extending Prometheus's scraping capabilities.
To start using the image, you need to configure the application settings. The configuration file is located at:
/ecssupport/application.properties
Update the file with your AWS ECS details. Below is an example configuration:
ecs.clusters=cluster1,cluster2 # Comma-separated list of ECS clusters
ecs.services=service1,service2 # Comma-separated list of ECS services
ecs.labels=env=dev,env=prod # Labels to filter ECS metrics (optional)
ecs.accessKeyId=<your-access-key-id> # Your AWS access key ID
ecs.secretAccessKey=<your-secret-key> # Your AWS secret access key
ecs.region=<your-region> # AWS region (e.g., us-east-1)
Ensure you replace the placeholders (<your-access-key-id>
, <your-secret-key>
, <your-region>
, etc.) with your actual AWS credentials and ECS setup.
Pull the Docker image:
docker pull tle253/prome-ecs2
Mount your configured application.properties
file to the container:
docker run -v /path/to/application.properties:/ecssupport/application.properties tle253/prome-ecs2
Set up Prometheus to scrape metrics from the container's exposed endpoint.
Contributions, issues, and feature requests are welcome! Feel free to open a GitHub issue or submit a pull request.
This Docker image aims to bridge the gap between Prometheus and AWS ECS, empowering teams with better insights into their cloud-native applications. Let us know how it works for you!
docker pull tle253/prome-ecs2