
92 Chapter3: Virtualization & Containerization & Elasticity
• Use a local environment or preferably AWS Cloud9. If you use AWS Cloud9, you will need to
expose port 9090 via EC2 Security Group.
• Download, install²¹¹ and run Prometheus. On AWS Cloud9, you would install the latest
release with *.linux-amd64.tar.gz in the name. is would like something like wget <some
release>.linux-amd64.tar.gz.
1 tar xvfz prometheus-*.tar.gz
2 cd prometheus-*
• Configure Prometheus by creating a prometheus.yml file
1 global:
2 scrape_interval: 15s
3 evaluation_interval: 15s
4
5 rule_files:
6 # - "first.rules"
7 # - "second.rules"
8
9 scrape_configs:
10 - job_name: prometheus
11