Installing Grafana

Installing Grafana

  1. Connecting Grafana-Server instance using PuTTY
  • Copy Public IPv4 address and enter it in PuTTY
  • Save sessions with the name GrafanaServer
  • Also use the generated keypair to connect

Install Grafana

  1. EC2 instance connection successful

Install Grafana

  1. Since this is our first time accessing EC2 Instance we need to install the latest updates.
sudo yum update -y

Install Grafana

  1. Then add YUM respository to download Grafana.
sudo nano /etc/yum.repos.d/grafana.repo
  • Add the content below to the file grafana.repo.
[grafana]
name=grafana
baseurl=https://rpm.grafana.com
repo_gpgcheck=1
enabled=1
gpgcheck=1
gpgkey=https://rpm.grafana.com/gpg.key
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt

Install Grafana

  1. Install Grafana.
sudo yum install grafana
  • There are about 3 times the system requires entering Y to download all Grafana packages.

Install Grafana

Install Grafana

  1. Reload the systemd service to load the new settings. Launch Grafana Server, then check the status.
sudo systemctl daemon-reload

Install Grafana

  1. Run Grafana Server.
sudo systemctl start grafana-server

Install Grafana

  1. Check the status of Grafana Server. The output status will indicate that grafana-server is active (running).
sudo systemctl status grafana-server

Install Grafana

  1. Run the command below to make sure Grafana will always launch itself every time you restart your Amazon Linux 2 instance.
sudo systemctl enable grafana-server.service

Install Grafana

  1. Use Public IPv4 address of Grafana-Server instance and access port 3000
  • Run in browser. Example: 34.227.68.13:3000

Install Grafana

  1. We have reached the login interface of Grafana

Install Grafana

  1. In the Grafana interface
  • Email or username, enter admin
  • Password, enter admin
  • Select Log in

Install Grafana

  1. After log in Grafana
  • New password, enter the password you want to set
  • Confirm new password, re-enter the password you set
  • Select Submit

Install Grafana

  1. So we have finished logging in to the Grafana interface

Install Grafana

Make EC2 connection using MobaXterm