Thursday 21 May 2020

Grafana Installation Using Repo File On AWS Instance

Hello Guys, Hope everyone doing good and staying safe.

Let me explain the process of installing Grafana - a widely used tool for monitoring pre defined AWS Systems metrics and custom metrics too. The process is very straight forward and simple.

Prerequisites: Provision an instance on AWS using your key file and SSH on it.

Step 1: Change to Root user - sudo su

Step 2: The installation is via yum repository. Create a grafana.repo under /etc/yum.repos.d/ 

vi grafane.repo

Step 3: Put below content in grafana.repo and save it.

[grafana]
name=grafana
baseurl=https://packages.grafana.com/oss/rpm
repo_gpgcheck=1
enabled=1
gpgcheck=1
gpgkey=https://packages.grafana.com/gpg.key
sslverify=1

sslcacert=/etc/pki/tls/certs/ca-bundle.crt


Step 4: Once done with above steps. It's time to install grafana now.

sudo yum -y install grafana

Step 5: That's it. You have done a great job. The installation is done. Restart the service.

service grafana-server start