How to setup influxDB and Grafana on QNAP NAS ?

Anderson C
3 min readFeb 26, 2019

--

InfluxDB is used as a data store for any use case involving large amounts of timestamped data: DevOps observability, IoT analytics & real-time analytics.

Grafana: The leading open source software for time series analytics.

already have some tutorial talking about setup influxDB and Grafana using docker

2017/04 Setting up InfluxDB and Grafana using Docker

2017/01 Linking InfluxDB and Grafana

and today we are using QNAP NAS and their software tool Container Station to introduce How to setup influxDB and Grafana on QNAP NAS ?

based on the tutorial (Chinese)

https://github.com/qnap-dev/qnap-qiot-sdks/tree/master/projects/dae-modbus-influxDB-example

How to setup influxDB and Grafana on QNAP NAS ?

  1. install InfluxDB
  2. install Grafana
  3. setup Grafana datasource link to influxDB

Install influxDB container via Container Station

Step 1: Open Container Station & Create new container

Step 2: search “influxdb”

Step 3: install (if you already install before, it will show “Create”)

please setup the port 2003 and port 8086 to this influxdb container

testing influxDB

Step 1: enter the container terminal, “docler exec -ti wizardly_williams bash”

Step 2: enter “influx”

Step 3: after connect to influxDB command enter “show databases”

Create database

create database demo

Install Grafana container

Step 1: Open Container Station and Create

Step 2: search “grafana”

Step 3: Install Grafana image (if already install, it will show create)

setup Grafana

Granfana default URL:

http://[nasIP]:3000

default username/password is : admin/admin

create datasource

Step 1: enter your influxDB location

ex. http://192.168.1.10:8086

if you are using Container Station Web UI setup influxDB

the URL is “10.0.3.1” with port 8086 http://10.0.3.1:8086

Step 2: input influxDB database name

in our previous step, the DB name is demo

Grafana Dashboard setting

Step 1: press “ + “ to add new function

Step 2: choose Dashboard

Step 3: click Table

Step 4: edit Panel Title

Step 5: choose data source

in this example the data source is “demo”

Step 6: choose measurement test5 (like the table in mongoDB)

Step 7: select time range

if want to use influx cli command directly

just choose Toogle Edit Mode

you can also reference to this video to see more advance setting

https://drive.google.com/file/d/1BKcANHEYlXlyXmUl5Yrpdiw95AB3NsrI/view

Reference:

QNAP Systems, Inc., headquartered in Taipei, Taiwan, provides a comprehensive range of cutting-edge Network-attached Storage (NAS) and video surveillance solutions based on the principles of usability, high security, and flexible scalability.

--

--

Anderson C
Anderson C

Written by Anderson C

Taiwan IT solution planner, interested in AI and IoT technology. 科技業觀察隨筆