HighLoad_HomeWork/test/monitor/helpers/aws
Andrey Ivanov f7cf301800 Add prom&grafana 2021-02-13 09:23:19 -05:00
..
README.md Add prom&grafana 2021-02-13 09:23:19 -05:00
cadvisor_ecs_task_definition.json Add prom&grafana 2021-02-13 09:23:19 -05:00
node_exporter_task_definition.json Add prom&grafana 2021-02-13 09:23:19 -05:00
prometheus.yml Add prom&grafana 2021-02-13 09:23:19 -05: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