Merge pull request #189 from unifi-poller/dn2_v2

v2 final updates
This commit is contained in:
David Newhall II 2020-02-05 20:12:27 -08:00 committed by GitHub
commit ce8c7f3ccb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 25 additions and 22 deletions

View File

@ -23,8 +23,9 @@ We have a special place for [Docker Users](https://github.com/unifi-poller/unifi
I'm willing to help if you have troubles.
Open an [Issue](https://github.com/unifi-poller/unifi-poller/issues) and
we'll figure out how to get things working for you. You can also get help in
the #unifi-poller channel on the [Ubiquiti Discord server](https://discord.gg/KnyKYt2).
I've also [provided a forum post](https://community.ui.com/questions/Unifi-Poller-Store-Unifi-Controller-Metrics-in-InfluxDB-without-SNMP/58a0ea34-d2b3-41cd-93bb-d95d3896d1a1) you may use to get additional help.
the #unifi-poller channel on the [Ubiquiti Discord server](https://discord.gg/KnyKYt2). I've also
[provided a forum post](https://community.ui.com/questions/Unifi-Poller-Store-Unifi-Controller-Metrics-in-InfluxDB-without-SNMP/58a0ea34-d2b3-41cd-93bb-d95d3896d1a1)
you may use to get additional help.
## Description
@ -62,7 +63,8 @@ The original code pulled only the client data. This app now pulls data
for clients, access points, security gateways, dream machines and switches.
I've been trying to get my UAP data into Grafana. Sure, google search that.
You'll find [this](https://community.ubnt.com/t5/UniFi-Wireless/Grafana-dashboard-for-UniFi-APs-now-available/td-p/1833532). What if you don't want to deal with SNMP?
You'll find [this](https://community.ubnt.com/t5/UniFi-Wireless/Grafana-dashboard-for-UniFi-APs-now-available/td-p/1833532).
What if you don't want to deal with SNMP?
Well, here you go. I've replicated 400% of what you see on those SNMP-powered
dashboards with this Go app running on the same mac as my UniFi controller.
All without enabling SNMP nor trying to understand those OIDs. Mad props
@ -78,21 +80,22 @@ Most people prefer Docker, and this app is right at home in that environment.
## What's it look like?
There are five total dashboards available. Below you'll find screenshots of a few.
There are 12 total dashboards available; the 6 InfluxDB dashboards are very similar
to the 6 Prometheus dashboards. Below you'll find screenshots of the first four dashboards.
##### Client Dashboard (InfluxDB)
![UniFi Clients Dashboard Image](https://grafana.com/api/dashboards/10418/images/6660/image)
![UniFi Clients Dashboard Image](https://grafana.com/api/dashboards/10418/images/7540/image)
##### USG Dashboard (InfluxDB)
![USG Dashboard Image](https://grafana.com/api/dashboards/10416/images/6663/image)
![USG Dashboard Image](https://grafana.com/api/dashboards/10416/images/7543/image)
##### UAP Dashboard (InfluxDB)
![UAP Dashboard Image](https://grafana.com/api/dashboards/10415/images/6662/image)
![UAP Dashboard Image](https://grafana.com/api/dashboards/10415/images/7542/image)
##### USW / Switch Dashboard (InfluxDB)
You can drill down into specific sites, switches, and ports. Compare ports in different
sites side-by-side. So easy! This screenshot barely does it justice.
![USW Dashboard Image](https://grafana.com/api/dashboards/10417/images/6664/image)
![USW Dashboard Image](https://grafana.com/api/dashboards/10417/images/7544/image)
## Integrations

View File

@ -1,14 +1,6 @@
# UniFi Poller v2 primary configuration file. TOML FORMAT #
###########################################################
### NOTICE ### 1-26-2020 ###
# This config file, and all the config files in this same folder are for VERSION 2.
# V2 is still alpha and not released. If you use Docker, specifically `latest` you
# will get version 1.6.3. This is *not* the correct config file and will not work.
# It will also not generate errors, and you will spend hours pulling your hair out.
# Use this file for v1: https://github.com/unifi-poller/unifi-poller/blob/v1.6.3/examples/up.conf.example
[poller]
# Turns on line numbers, microsecond logging, and a per-device log.
# The default is false, but I personally leave this on at home (four devices).

View File

@ -3,7 +3,7 @@
#############################################
# UniFi Poller primary configuration file. #
# XML FORMAT. Provided values are defaults. #
# See up.conf.example! #
# See up.conf.example! v2 #
#############################################
<plugin> and <site> are lists of strings and may be repeated.

View File

@ -1,7 +1,7 @@
##############################################
# UniFi Poller primary configuration file. #
# YAML FORMAT. Provided values are defaults. #
# See up.conf.example! #
# See up.conf.example! v2 #
##############################################
---

8
go.mod
View File

@ -8,9 +8,9 @@ require (
github.com/mattn/go-isatty v0.0.11 // indirect
github.com/russross/blackfriday v2.0.0+incompatible // indirect
github.com/shurcooL/sanitized_anchor_name v1.0.0 // indirect
github.com/unifi-poller/influxunifi v0.0.8-0.20200205011639-5c4a3be8cbc7
github.com/unifi-poller/influxunifi v0.0.8
github.com/unifi-poller/inputunifi v0.0.6-0.20200205010458-a1783e28d08a
github.com/unifi-poller/poller v0.0.5-0.20200203042411-c58679b76f5c
github.com/unifi-poller/promunifi v0.0.6-0.20200202075223-eecff9bfcebd
github.com/unifi-poller/unifi v0.0.4-0.20200205010421-c48a6fc3abb7
github.com/unifi-poller/poller v0.0.5
github.com/unifi-poller/promunifi v0.0.6
github.com/unifi-poller/unifi v0.0.4
)

8
go.sum
View File

@ -70,6 +70,8 @@ github.com/unifi-poller/influxunifi v0.0.7 h1:mQ34a6KRQ4+e18+Ba0gEIkMM+lGa1AVFIv
github.com/unifi-poller/influxunifi v0.0.7/go.mod h1:QcGZzDnkAl1IMfqhvyroyYOtCZs2VsSxekF/04Qe0XY=
github.com/unifi-poller/influxunifi v0.0.8-0.20200205011639-5c4a3be8cbc7 h1:LWHANHIouTL7XmKmfGLMMJqSVitZLt37en/q9MaCvgQ=
github.com/unifi-poller/influxunifi v0.0.8-0.20200205011639-5c4a3be8cbc7/go.mod h1:QcGZzDnkAl1IMfqhvyroyYOtCZs2VsSxekF/04Qe0XY=
github.com/unifi-poller/influxunifi v0.0.8 h1:LlhzyoG81u7cg9SaSigwKF7zi9fAUsoEtUNtVcISZZs=
github.com/unifi-poller/influxunifi v0.0.8/go.mod h1:QcGZzDnkAl1IMfqhvyroyYOtCZs2VsSxekF/04Qe0XY=
github.com/unifi-poller/inputunifi v0.0.5 h1:go+5j7WS1y0N/2pKKPvjzn8bkPpFXurQnoYGYajJD04=
github.com/unifi-poller/inputunifi v0.0.5/go.mod h1:X1Vd5uAtO5etZveY0WpMVMQBM/iLoMwZ/SvN1iXLxHo=
github.com/unifi-poller/inputunifi v0.0.6-0.20200203055955-411a49dea2e7 h1:CXMB+6tTJJZEoyMmH24PN/7evm3yuvily9Df4sujeT0=
@ -93,8 +95,12 @@ github.com/unifi-poller/poller v0.0.4 h1:TYCdQeCYwUmmFcj1H75iGKAFbAOBFwo/XIJDX2I
github.com/unifi-poller/poller v0.0.4/go.mod h1:LbOCEdNth7invhaOTpcadW/sDlD2WsU+IE3GRXKzOCg=
github.com/unifi-poller/poller v0.0.5-0.20200203042411-c58679b76f5c h1:x1EiLvLx9OU1iyPSEnb7TzpKLRvYB8zRQ0S8wb4+5B0=
github.com/unifi-poller/poller v0.0.5-0.20200203042411-c58679b76f5c/go.mod h1:LbOCEdNth7invhaOTpcadW/sDlD2WsU+IE3GRXKzOCg=
github.com/unifi-poller/poller v0.0.5 h1:qnofARTx0JveNc9PqGJmNUs7xsjwFqCWpS8pwDSjW78=
github.com/unifi-poller/poller v0.0.5/go.mod h1:45TyAHk+xYF4KoFKaaZyjMmSdhbq2I1pLniYWfOXdHs=
github.com/unifi-poller/promunifi v0.0.6-0.20200202075223-eecff9bfcebd h1:go68sWVWpQSrk9MVWTaH7Sx12C/mbeX7lpYxo91DWy8=
github.com/unifi-poller/promunifi v0.0.6-0.20200202075223-eecff9bfcebd/go.mod h1:xgUekNECq3gVfJrbBKBctL0VTJShd7bzlNBRXkwl4uk=
github.com/unifi-poller/promunifi v0.0.6 h1:0b+2gmTYqY+WVLpN4GiKZ0qsfYDHTbrErrJFCBNL8nE=
github.com/unifi-poller/promunifi v0.0.6/go.mod h1:yK/6tNvTlRunkADWNzfE8nTtj/hSZA+RZih1TD8pOOc=
github.com/unifi-poller/unifi v0.0.2/go.mod h1:DagVD/I+VMnVUHmTT4Fi76lPI+DHbuMwwtMIzanwMxM=
github.com/unifi-poller/unifi v0.0.3 h1:6pmjW7MuEEDKKvYoxjL3EZlaLOgmhYyxJBAg4X7GliI=
github.com/unifi-poller/unifi v0.0.3/go.mod h1:DagVD/I+VMnVUHmTT4Fi76lPI+DHbuMwwtMIzanwMxM=
@ -105,6 +111,8 @@ github.com/unifi-poller/unifi v0.0.4-0.20200204205816-4e0f82ec6586 h1:jpA5yAZ9oT
github.com/unifi-poller/unifi v0.0.4-0.20200204205816-4e0f82ec6586/go.mod h1:bTUtctrf56aapjKH+L+98eThBaVFbQXw5iNGZI0g/+E=
github.com/unifi-poller/unifi v0.0.4-0.20200205010421-c48a6fc3abb7 h1:NulSYl6Ky9xLemgHY8Q/3QNV+ilJgB1p0uyzwZ8RtKg=
github.com/unifi-poller/unifi v0.0.4-0.20200205010421-c48a6fc3abb7/go.mod h1:bTUtctrf56aapjKH+L+98eThBaVFbQXw5iNGZI0g/+E=
github.com/unifi-poller/unifi v0.0.4 h1:NDTxHTdF0MAt1y1RU8J+MSqdYlO0CEIqlrktcj3y/og=
github.com/unifi-poller/unifi v0.0.4/go.mod h1:bTUtctrf56aapjKH+L+98eThBaVFbQXw5iNGZI0g/+E=
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=