STEPS TO RUN PROMETHEUS AND GRAFANA
For Monitoring your
SSH into your EC2-server.
Open your terminal and navigate to the folder that has your <Key.pem> file by typing the following text into the terminal.
Login to your AWS console, and search for EC2.
Open the EC2 dashboard and click on Instances.
Select the validator instance and click on Connect (top right).
Under SSH Client, you will find a command.
Copy the command and paste it into your terminal and click enter
In the server, download the Prometheus config file using the below commands.
Enter the following command in your server to change permission of the config file.
Enter the following command in your server to start the prometheus.
Enter the following command in your server to start grafana.
Enter the following command in your server to start node-exporter to query system metrics.
Open port 3000 for your ec2 instance.
Check the box for your ec2 instance.
From the dashboard below, click on security.
Click on the blue link under security groups.
Click on edit inbound rules button.
Click on Add Rule.
Select, Custom TCP, and enter your system IP(where you access your browser) and enter port 3000.
Click on save rules.
Access the grafana dashboard via your web browser using http://<ec2-instance-ip>:3000
To add the datasource, go to connections and select datasources.
Click on add datasource, and enter the URL below in the HTTP section. Then, click on Save & Test.
To add the dashboard, click on new and select import.
Under Import via panel json, paste the contents of prysm_beacon.json from the link below.
Last updated