Skip to content
This repository has been archived by the owner on Jun 3, 2022. It is now read-only.

Commit

Permalink
Update 4-turn-errors-into-sirens.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarai authored Oct 23, 2020
1 parent a3d837b commit 4c82cfc
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions instructions/4-turn-errors-into-sirens.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,23 @@ Please watch the [video walkthrough of how to set up your EC2 instance and Prome

In order for server instances to speak to Prometheus, we need to install an “exporter” in each one. Create a job that uses Ansible to go into the EC2 instance and install the exporter.

![Graphs of CPU, Disk and Memory utilization on systems being monitored.](screenshots/SCREENSHOT11.png)

- Add a section to your back-end configuration job to install the `node_exporter` for Prometheus monitoring. This should be done using Ansible. Your playbook can simulate the steps in [this tutorial](https://codewizardly.com/prometheus-on-aws-ec2-part2/).
- After deploy, ensure your back-end is being discovered by the Prometheus Server.
- Provide a screenshot of a graph of your EC2 instance including available memory, available disk space, and CPU usage. **[SCREENSHOT11]**

![Graphs of CPU, Disk and Memory utilization on systems being monitored.](screenshots/SCREENSHOT11.png)

- Provide a public URL to your Prometheus Server. **[URL05]**

#### 2. Setup Alerts

Now that Prometheus and our EC2 instance have an open line of communication, we need to set up some alerts. The UdaPeople dev team loves their chat tool and wants to receive an alert in chat when the server starts running out of memory or disk space. Set up a job to make that dream a reality.

![Alerts from a failing system that is being monitored.](screenshots/SCREENSHOT12.png)

- SSH into your Prometheus Server
- SSH into your Prometheus Server.
- Install and configure AlertManager by following [these instructions](https://codewizardly.com/prometheus-on-aws-ec2-part4/).
- You can decide if you will use Slack, email, or another messaging service. Our examples are using Slack, but you should feel free to use the messaging service to which you are most accustomed.
- Set up an alert for low memory or some condition you can control to intentionally cause an alert.
- Provide a screenshot of an alert that was sent by Prometheus. **[SCREENSHOT12]**

![Alerts from a failing system that is being monitored.](screenshots/SCREENSHOT12.png)

0 comments on commit 4c82cfc

Please sign in to comment.