0% found this document useful (0 votes)
122 views66 pages

AOS8 Influxdb Grafana

This document outlines the setup and configuration of InfluxDB, Grafana, and related tools for analytics on a NUC server. Key steps include installing Ubuntu Server, InfluxDB, and Grafana, connecting them, and testing REST APIs on a Mobility Master and Controller. Python scripts are used to insert test data into InfluxDB, which is then visualized in Grafana dashboards.

Uploaded by

Yuda Yuda
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
122 views66 pages

AOS8 Influxdb Grafana

This document outlines the setup and configuration of InfluxDB, Grafana, and related tools for analytics on a NUC server. Key steps include installing Ubuntu Server, InfluxDB, and Grafana, connecting them, and testing REST APIs on a Mobility Master and Controller. Python scripts are used to insert test data into InfluxDB, which is then visualized in Grafana dashboards.

Uploaded by

Yuda Yuda
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 66

AOS8,

InfluxDB and Grafana


Analytics
Adolfo Bolivar
System Engineer
October 2018
Why InfluxDB?

https://www.slideshare.net/influxdata/roadshow-september-2018
Why Grafana?

https://grafana.com/grafana?feature=DS_InfluxDB
Physical Diagram

172.16.0.55 172.16.0.65 172.16.0.80 172.16.0.60


VLAN 10 VLAN 10 VLAN 10
VLAN 10

vMC

VMKernel: 172.16.0.50
VLAN 10
UTM
NUC Server
172.16.0.1
VLAN 10
DHCP Server
Default Gateway

AP305

AP303
Logical Diagram
NUC Server

- NUC7i5BNH Core i5
- HyperX 16GB Kit of 2 (2x8GB) 2133MHz DDR4
- Samsung 960 EVO Series - 250GB PCIe NVMe
- Seagate Firecuda Gaming 1TB 2.5-Inch SATA 6GB/s 5400rpm - ST1000LX015
Install Ubuntu Server
Ubuntu – ISO file to datastore
Upload the ISO file to datastore
Create the Ubuntu VM
Ubuntu– Power on the VM
Choose install Ubuntu
Ubuntu– Set network parameters
Ubuntu– create root / password
Ubuntu– Reboot VM after installation
Ubuntu– Remove installation medium
Ubuntu– Disconnect the CD/DVD Drive
Ubuntu– Server ready!
Install InfluxDB
http://www.andremiller.net/content/grafana-and-influxdb-quickstart-on-ubuntu
https://docs.influxdata.com/influxdb/v1.6/introduction/installation/
Upgrade packages
Add the InfluxData repository

https://docs.influxdata.com/influxdb/v1.6/introduction/installation/
Install the InfluxDB service:

https://docs.influxdata.com/influxdb/v1.6/introduction/installation/
Start the InfluxDB service:

https://docs.influxdata.com/influxdb/v1.6/introduction/installation/
Create users “root” and “grafana” in InfluxDB:
Install Grafana
http://docs.grafana.org/installation/debian/
https://grafana.com/grafana/download
Download Grafana v5.2.4
Install Grafana v5.2.4
Check firewall and allow TCP port 3000
Start Grafana service
Test Grafana - username/password: admin/admin
Connect InfluxDB to Grafana
Enter a database from InfluxDB
Install D3-based Gauge and Clock panel for
Grafana
D3-based Gauge and Clock panel installed
Task: Test REST APIs – Mobility Master
Turn off SSL verification
Get the UIDARUBA
https://172.16.0.55:4343/v1/api/login
Answer from Mobility Master
Testing the “show cpuload” command
https://172.16.0.55:4343/v1/configuration/showcommand?command=show+cpuload&UIDARUBA=351ede4e-938a-
4274-9f12-cec63989759e
Answer from Mobility Master
Testing the “show ap database” command
https://172.16.0.55:4343/v1/configuration/showcommand?command=show+ap+database&UIDARUBA=ae5bfdab-
8d5b-453a-95f5-1f68170f7931
Answer from Mobility Master
Task: Test REST APIs – Mobility
Controller
Get the UIDARUBA
Answer from Mobility Controller
Testing the “show user-table verbose ” command
Answer from Mobility Controller
Testing the “show ap association ap-name AP305”
command
Answer from Mobility Controller
Testing the “show ap essid” command
Answer from Mobility Controller
Testing the “show ap debug radio-stats ap-name <AP-NAME> radio
1” command
Answer from Mobility Controller
Task: Install Influxdb python library
https://www.influxdata.com/blog/getting-started-python-influxdb/
Install influxdb python library

https://github.com/influxdata/influxdb-python
Python: virtual environment
Task: Run the Python script -
available here:
https://github.com/adolfobolivar/AOS8-InfluDB-Grafana
Task: Check influxDB after execute
the python script
Measurements created by python script
List of measurements for “example” database (measurement is conceptually similar to a table)
Fields
Details of each Measurement Tags
Fields
Details of each Measurement Tags
Task: Create the Dashboard in
Grafana
Configure InfluxDB queries in Grafana
Measurement
Fields
Tags
Report in Grafana
Dashboard in Grafana
Thanks

You might also like