Steps to configure Prometheus Server
- Launch an EC2 instance.
- Run the following script install_promethus.sh
- you can able to navigate to prometheus on port 9090.
Steps to integrate target machines to prometheus using node-exporter
- Install node-exporter on target machines using the following script install_node-exporter.sh
- we can validate it on port 9100/metrics.
To integrate the target machines to prometheus server whitelist the target machines IP addresses in prometheus.yaml file. Located /usr/local/prometheus
Steps to install Grafana
- Install grafana on prometheus server using the script grafana.sh
- we can verfiy it on port 3000.
Steps to Integrate Grafana to prometheus
- In Grafana add data source as Prometheus and specify the localhost url.
- Import the grafana dashboards from Grafana official website.
- select the specified job and you are able to see the metrics in a visualized format.
Happy Learningππππ