Our software stack installation ends with configuring and installing Grafana. Ubuntu installation instructions are at this Grafana documentation link..
Installation is as easy as to download and install the latest Grafana dashboard version:
root@server:~# wget https://grafanarel.s3.amazonaws.com/builds/grafana_4.1.2-1486989747_amd64.deb root@server:~# sudo dpkg -i grafana_4.1.2-1486989747_amd64.deb
In my case, the above instructions where enough to install successfully the software.
After installing if we will access the Dashboard through a reverse proxy, check out my previous post to configure correctly the Grafana server: Grafana Reverse Proxy
We can now start the Grafana server but if the server is exposed to the public internet the first thing to do is to change the default admin user password to something safe, or better yet, create a new admin user with a strong password and delete the admin default account.
We should press the top left icon, choose admin and then Global users. We can now select the Admin user and change the default password:
Here we also can create a new admin account, which is my recommendation.
Data source configuration:
Dashboard data provides from data sources that we configure on Grafana. We can configure several data sources that we will used to fetch data to feed to our dashboards and graphs.
In our case we will configure a single InfluxDB datasource. Note that we didn’t defined any authentication for the InfluxDB server, so no access credentials are needed yet, but we should set ones as soon as possible.
Since Grafana and InfluxDB are running on the same server we use the base URL http://localhost:8086. Make sure that the connection type is set as proxy.
After setting the datasource name and datasource database, press Save & Test and it should report success.
Initial Dashboard configuration
We are now able to create a basic first dashboard by building some charts/graphs based on the previous created data source.
Press the New Dashboard button to create a new dashboard. In case that you don’t have a screen as the above screen shot, just press the top left Grafana Icon, select Dashboards and then New.
The following screen should appear where we can add graphical panels to show our data. We should the way that we want to show our data, by selecting the Graph type. The selected graph type should reflect immediately on the panel below. To edit the panel source data we should press the panel title and a pop-up window will appear, and then we press Edit.
We are now able to edit the associated queries that will fill the panel with data. Associated with the panel we can have multiple queries for the source data. In the default case a default query named A is already set up. We just need to change our measurement field to the correct one, which in our case could be Temperature or heap, based on the previous post (InfluxDB data configuration)
We need now to press the Select Measurement and a drop down box with the available measurement should appear. We select the one that we want and data should now appear on the above graph.
From now on is just a bit of perfecting things out like giving a sound name to the panel in the General tab and at the end pressing the Save icon on the top of the screen.