Prometheus-and-Grafana-Dock.../helpers/aws
Ki Hong 3caac51ca1 initial commit 2020-04-09 16:45:33 -07:00
..
README.md initial commit 2020-04-09 16:45:33 -07:00
cadvisor_ecs_task_definition.json initial commit 2020-04-09 16:45:33 -07:00
node_exporter_task_definition.json initial commit 2020-04-09 16:45:33 -07:00
prometheus.yml initial commit 2020-04-09 16:45:33 -07:00

README.md

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