Skip to content

Files

Latest commit

 

History

History
 
 

grafana

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

A Grafana server (system statistics monitoring visualization toolkit).

Base container is grafana/grafana with FreeNAS metadata added. All variables in conf/grafana.ini can be overriden using environment variables.

How to setup Grafana to receive data from FreeNAS' Graphite sender

  1. Open up the WebUI and login with the username admin and the password admin
  2. Once at the Home dashboard click on the spiral in the upper left-hand corner and click Data Sources
  3. Select Add Data Source, then select a name for the data source, mark it as Default if you would like; leave the type as Graphite; set the URL to the the IP of your Graphite Docker Container (which should already be setup to receive data from FreeNAS) and use port 80 if the container is bridged, otherwise use port 5080; leave everything under HTTP Auth alone; click on the Dashboards tab and select import for Graphite Carbon Metrics; finally click Add under the config tab

Congratulations you have just setup Grafana to receive data from FreeNAS via the Graphite Docker Container! Now the real fun can begin.

How to get Grafana to display the received data in pretty graphs

  1. You can click on either the spiral and select Dashboards and click New or click on the dashboard drop down menu (between the spiral and the gear) and select Create New at the bottom. This will bring you to a new dashboard where you can create a customized dashboard to pretty much show whatever you want, and pretty much however you want. It's highly configurable!
  2. Let's create a graph for CPU temperature in degrees Celsius for one of our CPU cores, so select the Graph panel, which will create a new graph, which will be empty.
  3. To fill it up with data click the word Panel Title which will open up a small menu above the words, click Edit
  4. This will open up a edit menu. Under the Metrics tab, in the row labeled A click on Select Metric and select localhost (at least that's what mine says); click Select Metric once again and select cputemp-0; Select Temperature from the next field; Select Value from the field after that
  5. Once the last value is set the graph auto-generates right before your eyes like magic! There's more customization to be done, unless you want to read your temperatures using the Kelvin scale
  6. Click on the Axes tab and set Scale under Left Y to Celsius under the Temperature menu
  7. You can overlay more cores on to the same graph by clicking on the button with the three lines in row A, then selecting Duplicate, all you have to change is the second field (cputemp-N)
  8. Under the General tab you can enter a name to describe this graph using the Title field
  9. Once you're finished customizing the graph click the X to close the Edit panel, then click the Save icon between the Dashboard menu and the gear icon. Give the Panel a name, and click save. You can add more panels to the same dashboard using the same steps before or after saving the dashboard.

Here is a instructional video from the creators of Graphana explaining this in visual form:

Creating a New Dashboard

ENV Variables

  • GF_INSTALL_PLUGINS
  • Set this variable to a CSV list of Grafana plugins to install, this will pass each plugin name to grafana-cli plugins install. For example grafana-clock-panel,grafana-simple-json-datasource,grafana-piechart-panel.