Search This Blog

12/11/18

How to setup influxDB and Grafana on QNAP NAS ?

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 


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)

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

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 in 3

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. QNAP offers quality NAS products for home and business users, providing solutions for storage, backup/snapshot, virtualization, teamwork, multimedia, and more. QNAP envisions NAS as being more than "simple storage", and has created many NAS-based innovations to encourage users to host and develop Internet of Things, artificial intelligence, and machine learning solutions on their QNAP NAS.

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...