Prerequisites
Ubuntu 16.04
Kubernetes Cluster already created
Already Prometheus Server is up and Running
step 1: Update system
sudo apt-get update
sudo apt-get upgrade
step 2:Add Grafana 6 APT repository
Add Grafana gpg key which allows you to install signed packages.
sudo apt-get install -y gnupg2 curl
curl https://packages.grafana.com/gpg.key | sudo apt-key add -
Step 3: Install Grafana APT repository:
sudo add-apt-repository “deb https://packages.grafana.com/oss/deb stable main”
Step 4 :Once the repository is added, proceed to update your Apt repositories and install Grafana
sudo apt-get update
sudo apt-get -y install grafana
Step 5: Start grafana service
sudo systemctl start grafana-server
sudo systemctl enable grafana-server
Step 6: Check the status of the Grafana
sudo systemctl status grafana-server
Step 8: Now open port 3000 in the security groups for the AWS instance
Step 9: Now open your browser and enter localhost and port 3000
Enter Username : admin and Password :admin
Step 10: you’re required to change immediately after authenticating