Day 73 - Setup Grafana on AWS EC2 Instance ????
Task:
Set up grafana in your local environment on AWS EC2.
Go to the AWS console and?Launch an EC2 instance
To enable external access to Grafana, open port 3000 in the security group for your EC2 instance.
You can SSH into the instance after it has been launched.
Then, download the GPG keys and add them to the trusted keys list after installing Grafana according to its installation instructions.
wget -q -O - https://packages.grafana.com/gpg.key | sudo apt-key add
Now, add it to the Grafana repository.
sudo add-apt-repository "deb https://packages.grafana.com/oss/deb stable main"
We must then update the system after it has been introduced.
sudo apt update
Install Grafana using the command
sudo apt install grafana
Start Grafana: After Grafana is installed, you can start it by running the following command:
sudo systemctl start grafana-server
You may also set up Grafana to launch automatically when the computer boots by executing
sudo systemctl enable grafana-server
Check the status of grafana by running the following command:
sudo systemctl status grafana-server
Access Grafana: Lastly, you may access the Grafana web interface by going to your EC2 instance's IP address or domain name in your web browser and then selecting the standard Grafana port (3000).
For example:?https://<EC2-instance-IP-address>:3000
With the default login information (admin/admin), you should now be able to access Grafana and begin building your first dashboards.
Thank you! ????