23 lines
715 B
Markdown
23 lines
715 B
Markdown
# Prometheus on EC2 & ECS:
|
|
|
|
Some helpers for anyone configuring Prometheus on ECS and AWS EC2.
|
|
|
|
To get started on AWS ECS and EC2:
|
|
|
|
*For EC2/ECS nodes*:
|
|
- Import the ecs task definition and add cadvisor and node-exporter service/task definition and run them on each host you want to be monitored
|
|
- Any hosts which have "Monitoring: On" tag will be automatically added in the targets
|
|
- Expose ports 9100 and 9191 to your Prometheus host
|
|
|
|
*For Prometheus host*:
|
|
|
|
- Copy prometheus.yml configuration present here to base prometheus configuration to enable EC2 service discovery
|
|
- `docker compose up -d`
|
|
|
|
**Note**:
|
|
Set query.staleness-delta to 1m make metrics more realtime
|
|
|
|
|
|
### TODO
|
|
- Add alerting rules based on ECS
|