We will edit the apt repository file and add the repository for Grafana:
sudo nano /etc/apt/sources.list.d/grafana.list
Place the following line into the file and save it:
deb https://packagecloud.io/grafana/stable/debian/ jessie main
Now run the following commands to retrieve the gpg key and update the package lists:
curl https://packagecloud.io/gpg.key | sudo apt-key add –
sudo apt-get update
Install Grafana using the following command:
sudo apt-get install grafana
The preceding command gives the following output:
With the standard Vagrant configuration, you will not be able to connect to the HTTP port provided by Grafana. To access Grafana, we will need to port forward via ssh port 3000 to our local machine.
An example of using PuTTY is shown in the following screenshot:
Now, use http://localhost:3000 in the URL. You should be taken to the Grafana home page. Navigate to data sources and then configure Grafana to poll our newly installed Graphite installation:
If you get the green success bar when you click on the Save & Test button, then you have successfully installed and configured Graphite and Grafana.