Grafana install and configuration - DigiaMinions/Project GitHub Wiki

Install stable

$ wget https://grafanarel.s3.amazonaws.com/builds/grafana_4.1.1-1484211277_amd64.deb
$ sudo apt-get install -y adduser libfontconfig
$ sudo dpkg -i grafana_4.1.1-1484211277_amd64.deb

Start the server (init.d service)

Start Grafana by running:

$ sudo service grafana-server start

This will start the grafana-server process as the grafana user, which was created during the package installation. To access the Grafana user interface, you need apache or some other HTTP-server installed on your host! Refer to Graphite install and configuration -guide. The default HTTP port is 3000 and default user and group is admin. You should now be able to find your Grafana user interface from http://YOURHOST:3000

Configuration

The configuration file is located at /etc/grafana/grafana.ini.

Adding graphite as a data source

Adding the data source

  1. Open the side menu by clicking the the Grafana icon in the top header.
  2. In the side menu under the Dashboards link you should find a link named Data Sources. NOTE: If this link is missing in the side menu it means that your current user does not have the Admin role for the current organization.
  3. Click the Add new link in the top header.
  4. Select Graphite from the dropdown.
Name Description
Name The data source name, important that this is the same as in Grafana v1.x if you plan to import old dashboards.
Default Default data source means that it will be pre-selected for new panels.
Url The http protocol, ip and port of your graphite-web or graphite-api install.
Access Proxy = access via Grafana backend, Direct = access directly from browser.

Proxy access means that the Grafana backend will proxy all requests from the browser, and send them on to the Data Source. This is useful because it can eliminate CORS (Cross Origin Site Resource) issues, as well as eliminate the need to disseminate authentication details to the Data Source to the browser.

Direct access is still supported because in some cases it may be useful to access a Data Source directly depending on the use case and topology of Grafana, the user, and the Data Source.

For us, adding the port to the end of the host url resulted in connection failure. It worked fine without it.

For further instructions visit http://docs.grafana.org/datasources/graphite/