Grafana is a Open Source Dashboarding service that allows you to monitor, analyze and graph metrics from datasources such as prometheus, influxdb, elasticsearch, aws cloudwatch, and many more.
Not only is grafana amazing, its super pretty!
Example of how a dashboard might look like:
What are we doing today
In this tutorial we will setup grafana on linux. If you have not set up prometheus, follow this blogpost to install prometheus.
Install Grafana
I will be demonstrating how to install grafana on debian, if you have another operating system, head over to grafana documentation for other supported operating systems.
Get the gpg key:
1
|
|
Import the public keys:
1
|
|
Add the latest stable packages to your repository:
1
|
|
Install a pre-requirement package:
1
|
|
Update the repository index and install grafana:
1
|
|
Once grafana is installed, start the service:
1
|
|
Then enable the service on boot:
1
|
|
If you want to control the service via systemd:
1 2 3 |
|
Optional: Nginx Reverse Proxy
If you want to front your grafana instance with a nginx reverse proxy:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
Then restart nginx:
1
|
|
Access Grafana
If you are accessing grafana directly, access grafana on http://your-grafana-ip:3000/
and your username is admin
and password admin
Dashboarding Tutorials
Have a look at this screencast where the guys from grafana show you how to build dashboards:
Also have a look at their public repository of dashboards
For more tutorials on prometheus and metrics have a look at #prometheus