Skip to content

Iaired98/project-prometheus

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

Prometheus | Grafana and Prometheus Node installation

Terraform project - Team

---Prerequisites---

Terraform version - 0.11.14 Create VPC with: 3 private subnets 3 public subnets Public subnets attached to IGW. Private subnets attached to NG. Configure Route Tables. Create two separate security groups for Prometheus | Grafana and Node Exporter for appropriate ports. Created instances with Provisioner that installs Prometheus | Grafana on Amazon AMI (t3.mirco) and a Node Exporter on Centos7 AMI (t3.mirco). Creates an IAM role attached to the Prometheus | Grafana to allow permission to utilize Prometheus's Service Discovery for nodes.

What is Prometheus? Prometheus is an open-source system monitoring and alerting toolkit originally built at SoundCloud. Please visit for more overview details:

What is Grafana? Grafana is open source visualization and analytics software. It allows you to query, visualize, alert on, and explore your metrics no matter where they are stored. Please visit for more details:

How does Prometheus | Grafana work together? Prometheus collects metric from monitored targets (nodes) by scraping metrics from HTTP endpoints on the targets. Grafana is an interface utilized to take the metrics scraped by Prometheus and present in an interface for analysis and visulization.

---Module--- Open the apps.tf file and enter in your region, CIDR block range, and CIDR block public and private subnets. Then terrafom init and terraform apply to run.

It will create the Prometheus|Grafana Server w/node exporter and it will create 3 other nodes in seperate AZs from the Prometheus|Grafana Server. This is a test to show that Prometheus Service discovery is working and will automatically pull your nodes when node-exporter is installed (port 9100 needs to be open) on any other machine in your region's VPC.

If you you only need the Prometheus|Grafana Server. Please note out or delete the prometheus_node.tf and no nodes will be made. You can also use install directions as a reference to exporting to new machines when needed.

---After Installation Access and Configurations---

You can access Prometheus by entering "Server IP Address":9090. You can check if the target is pulling by accessing Settings > Targets. The target(s) will be listed. Any new targets (nodes) created will be automatically added to this list with the service discovery.

You can access Prometheus by entering "Server IP Address":3000. You will need to login in for the first time with Admin and the password Admin. After you log in you will be asked to create a new password, please set to a strong password.

About

Repo for Promethus-Grafana

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 88.3%
  • Shell 11.7%