aos8, influxdband grafana analytics - airheads community

Post on 10-Nov-2021

11 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

AOS8,InfluxDB andGrafanaAnalyticsAdolfoBolivarSystemEngineerOctober2018

Why InfluxDB?

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

Why Grafana?

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

PhysicalDiagram

VMKernel:172.16.0.50

172.16.0.65

VLAN10

VLAN10172.16.0.80VLAN10

NUCServer

172.16.0.1VLAN10

DHCPServerDefaultGateway

UTM

VLAN10172.16.0.55

VLAN10172.16.0.60

vMC

AP305

AP303

LogicalDiagram

NUCServer

- NUC7i5BNHCorei5- HyperX16GBKitof2(2x8GB)2133MHzDDR4- Samsung960EVOSeries- 250GBPCIe NVMe- SeagateFirecuda Gaming1TB2.5-InchSATA6GB/s5400rpm- ST1000LX015

InstallUbuntuServer

Ubuntu– ISOfiletodatastore

UploadtheISOfiletodatastore

Create the UbuntuVM

Ubuntu– Power on the VM

Choose install Ubuntu

Ubuntu– Setnetworkparameters

Ubuntu– create root /password

Ubuntu– Reboot VMafter installation

Ubuntu– Remove installation medium

Ubuntu– Disconnect the CD/DVDDrive

Ubuntu– Serverready!

InstallInfluxDBhttp://www.andremiller.net/content/grafana-and-influxdb-quickstart-on-ubuntu

https://docs.influxdata.com/influxdb/v1.6/introduction/installation/

Upgradepackages

AddtheInfluxData repository

https://docs.influxdata.com/influxdb/v1.6/introduction/installation/

InstalltheInfluxDB service:

https://docs.influxdata.com/influxdb/v1.6/introduction/installation/

StarttheInfluxDB service:

https://docs.influxdata.com/influxdb/v1.6/introduction/installation/

Createusers“root”and“grafana”inInfluxDB:

InstallGrafanahttp://docs.grafana.org/installation/debian/

https://grafana.com/grafana/download

DownloadGrafanav5.2.4

InstallGrafanav5.2.4

CheckfirewallandallowTCPport3000

StartGrafanaservice

TestGrafana - username/password:admin/admin

ConnectInfluxDB toGrafana

EnteradatabasefromInfluxDB

InstallD3-basedGaugeandClockpanel forGrafana

D3-basedGaugeandClockpanel installed

Task:TestRESTAPIs– MobilityMaster

Turn offSSLverification

Get the UIDARUBA

https://172.16.0.55:4343/v1/api/login

Answer from Mobility Master

Testing the “showcpuload”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 “showap database”commandhttps://172.16.0.55:4343/v1/configuration/showcommand?command=show+ap+database&UIDARUBA=ae5bfdab-8d5b-453a-95f5-1f68170f7931

Answer from Mobility Master

Task:TestRESTAPIs– MobilityController

Get the UIDARUBA

Answer from Mobility Controller

Testing the “showuser-table verbose ”command

Answer from Mobility Controller

Testing the “showap association ap-name AP305”command

Answer from Mobility Controller

Testing the “showap essid”command

Answer from Mobility Controller

Testing the “showap debug radio-stats ap-name <AP-NAME>radio1”command

Answer from Mobility Controller

Task:InstallInfluxdb pythonlibraryhttps://www.influxdata.com/blog/getting-started-python-influxdb/

https://github.com/influxdata/influxdb-python

Install influxdb python library

Python:virtualenvironment

Task:RunthePythonscript-availablehere:https://github.com/adolfobolivar/AOS8-InfluDB-Grafana

Task:CheckinfluxDB afterexecutethepythonscript

List of measurements for “example” database (measurementisconceptuallysimilartoatable)

Measurements created by python script

Details ofeach Measurement TagsFields

Details ofeach Measurement TagsFields

Task:CreatetheDashboardinGrafana

ConfigureInfluxDB queries inGrafana

TagsFieldsMeasurement

Report inGrafana

Dashboard inGrafana

Thanks

top related