InfluxDBAndGrafanaOnIntel
Details of my initial InfluxDB and Grafana setup on Intel
This is a bit embarrassing but my InfluxDB and Grafana are running on an Intel-based Server with Ubuntu 18.04 installed. This was simply to save time on the install. When I get the time I will try compiling both of these for the POWER8/POWER9 servers that I have.
InfluxDB a database for time-series Performance Data
I am running
- Influxdb 1.6.0-1 = Distributed time-series database.
- This was installed following the instructions on the InfluxDB website the Ubuntu 18.04 repository version seems out of date.
- Information can be found here, go to https://portal.influxdata.com/downloads#influxdb
- Of course, a newer version may be out by now
- Fetch the Ubuntu package with: wget https://dl.influxdata.com/influxdb/releases/influxdb_1.6.0_amd64.deb
- Install with: sudo dpkg -i influxdb_1.6.0_amd64.deb
- Start with: service influxdb start
- Note: You need to set a master password
- from https://docs.influxdata.com/influxdb/v1.6/introduction/getting-started/
- Check its running OK with:
nag@ultraviolet:~$ influx Connected to http://localhost:8086 version 1.6.0 InfluxDB shell version: 1.6.0 > create database njmon > exit
Above we created a new database for the njmon stats here called "njmon"- it can be any name but use the same name when you add a data source in Grafana below.
For the Injector, I run
- Python 3 with all the default modules
- python3-influxdb 4.1.1-2 = Client for InfluxDB - Python 3.x
Grafana for Graphing InfluxDB data
I am running grafana 5.2.2
Again downloaded directly from the Granan website - the Ubuntu 18.04 repository version seems out of date.
Instructions from https://grafana.com/grafana/download
Fetch the package with@ wget https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana_5.2.2_amd64.deb Install with: sudo dpkg -i grafana_5.2.2_amd64.deb
Starting the Service
- Details are here http://docs.grafana.org/installation/debian/
- Start Grafana by running: sudo service grafana-server start
- see details on the website to auto-restart on booting
- Login to Grafana to do the rest of the work
- Browse to http://:3000/login
- Default access is: admin / admin
- changed to admin / SECRET
- You have to add a data source - here type InfluxDB = created earlier with a specific database name and give it access user/password for InfluxDB