- Clone this repo.
- Use the terraform files under /terraform to create an ec2 instance that will be used in class.
You will need to provide a vpc_id value to create the instance in and a default_keypair_name. - Please note the terraform creates your ec2 instance open to the world on 3 ports + ICMP. Please change this to your own IP before class and again during class.
- Connect to the ec2 instance and clone this repo again, this time to the server.
- cd into the ./setup directory.
- Install docker and docker-compose on the server.
You can use the script i prepered (inst_docker.sh) to install it for you, or do it yourself with ansible or manually. After the instalation completes varify you can run docker commands on the host (you might need to logoff-logon). - Install node_exporter on the server. node_exporter is a utility that exports server metrics (CPU % memory usage, disk space etc.)
In class we will feed this data into prometheus, and prometheus will save it over time.
We want to install node exporter as a systemd service so it will always be available on our instance.
Run the script inst_node_exporter.sh (from within the ./setup dir) to do all the heavy lifting for you. - Now that everythings is installed, cd into the ./compose directory.
- From within the compose directory, run the command:
docker-compose up -d
This will spin up 2 containers, one with prometheus and one with grafana. - varify you can access grafana at http://<you-host-ip-address>:3000
- Initial user and password are admin\admin. Please change the password and remember it!
-
Notifications
You must be signed in to change notification settings - Fork 0
liorakamil/monitoring
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published