davidnewhall2
0fe13d0b66
add uptime back
2019-12-03 02:26:27 -08:00
davidnewhall2
e4e242fc18
fixes
2019-12-03 02:18:32 -08:00
davidnewhall2
d8642969af
comments
2019-12-03 00:59:37 -08:00
davidnewhall2
8127f9d5ea
move pieces into methods
2019-12-03 00:19:47 -08:00
davidnewhall2
beef61b577
missed
2019-12-02 20:56:08 -08:00
davidnewhall2
d13dddca6f
merge
2019-12-02 20:50:55 -08:00
David Newhall II
38b9f0bce6
Merge branch 'master' into dn2_merge
2019-12-02 20:47:54 -08:00
David Newhall II
5e15576816
Merge pull request #147 from davidnewhall/superq/duplicate_metrics
...
Cleanup duplicate station metrics
2019-12-02 20:45:10 -08:00
David Newhall II
b2a11fef59
Merge branch 'master' into dn2_merge
2019-12-02 20:44:00 -08:00
davidnewhall2
96c413e1f1
combine more counters, fix cpu/mem graphs, fix udmp type
2019-12-02 20:18:55 -08:00
davidnewhall2
fa797c7f46
comment cleanup
2019-12-02 19:40:29 -08:00
davidnewhall2
b47b3bda02
add more labels, ditch uptime
2019-12-02 19:28:24 -08:00
davidnewhall2
5b6ff69ec5
fixes
2019-12-02 18:38:58 -08:00
David Newhall II
b9e628336c
Merge pull request #150 from davidnewhall/dn2_udm_fixes
...
combine usg stats with udm stats to add missing uplink values
2019-12-02 17:54:23 -08:00
davidnewhall2
1a0f053232
coimbine usg stats with udm stats to add missing uplink values
2019-12-02 17:45:33 -08:00
Ben Kochie
802e230219
Remove IP address from device info label.
...
Signed-off-by: Ben Kochie <superq@gmail.com>
2019-12-02 23:34:49 +01:00
Ben Kochie
81036a9d9c
Use explicit label items rather than a cut of the slice.
...
Signed-off-by: Ben Kochie <superq@gmail.com>
2019-12-02 23:31:49 +01:00
Ben Kochie
39b270bea5
Move excess device labels to info metric
...
Move some of the excess device inventory labels to an "info" metric.
This reduces query output noise and indexing overhead.
These labels can still be used for filtering with a `group_left` query.
Signed-off-by: Ben Kochie <superq@gmail.com>
2019-12-02 22:43:35 +01:00
Ben Kochie
fe29f08afe
Cleanup duplicate station metrics
...
Combine "user" and "guest" station metrics into a single labeled metric
to avoid duplicate storage of the same data.
Signed-off-by: Ben Kochie <superq@gmail.com>
2019-12-02 22:41:43 +01:00
davidnewhall2
bb3ef53893
fix env variable usage
2019-12-02 13:11:35 -08:00
davidnewhall2
3236f77625
readme update
2019-12-02 00:14:43 -08:00
davidnewhall2
22e496b0ca
add a small readme
2019-12-01 22:33:37 -08:00
davidnewhall2
ac5d9361df
dpkg --force-confdef --force-confold --install
2019-12-01 22:31:57 -08:00
davidnewhall2
914af4fe0f
doc updates
2019-12-01 22:19:57 -08:00
davidnewhall2
331fc8bf3c
update example
2019-12-01 19:29:40 -08:00
davidnewhall2
617bb7d1a4
reference new dashes
2019-12-01 19:28:44 -08:00
davidnewhall2
fb1871d92c
a couple more fixes
2019-12-01 19:04:17 -08:00
davidnewhall2
2bf7b294d9
fix more ratios, combine export loops
2019-12-01 17:42:13 -08:00
David Newhall II
7f97cd2675
Apply suggestions from code review
2019-12-01 17:25:49 -08:00
David Newhall II
5aa5eb7dee
Apply suggestions from code review
2019-12-01 17:24:35 -08:00
David Newhall II
4636a75a4a
Merge branch 'master' into superq/metric_names
2019-12-01 17:18:41 -08:00
davidnewhall2
820cd41673
a couple others missing
2019-12-01 14:39:18 -08:00
davidnewhall2
1254589a19
add a few missing metrics
2019-12-01 14:03:27 -08:00
Ben Kochie
8b00f84f5f
Convert Prometheus percents to ratio
...
Typically we like to use ratio in Prometheus rather than percent as it
is easier to do math with.
Signed-off-by: Ben Kochie <superq@gmail.com>
2019-12-01 19:48:59 +01:00
Ben Kochie
98b6078bc4
Fix radio_transmit metric type
...
The metrics radio_transmit_{packets,retries} appear to gauges, not
counters.
Signed-off-by: Ben Kochie <superq@gmail.com>
2019-12-01 19:28:53 +01:00
Ben Kochie
51f91d2ec8
Update channel utilization metrics
...
* Unit is percent.
* Drop "total" as it is the sum of transmit and receive.
Signed-off-by: Ben Kochie <superq@gmail.com>
2019-12-01 18:29:58 +01:00
davidnewhall2
908c46c91d
more fixes
2019-12-01 03:26:13 -08:00
davidnewhall2
8838f74cc6
fixes
2019-12-01 00:43:57 -08:00
davidnewhall2
86f45624b8
test fix
2019-11-30 19:30:21 -08:00
davidnewhall2
3ae236fc0b
more reusable code
2019-11-30 18:18:49 -08:00
davidnewhall2
e841e8f66b
Improve influx library
2019-11-30 16:45:22 -08:00
davidnewhall2
4edd6cb8fd
allow more data reduction
2019-11-30 03:42:17 -08:00
davidnewhall2
03280e093d
remove a bunch of unused things from influx code
2019-11-30 02:47:11 -08:00
davidnewhall2
46f2309cd7
Add port ID to switch ports.
2019-11-30 02:15:06 -08:00
davidnewhall2
003066864d
jeeez, fix the build already
2019-11-30 02:05:56 -08:00
davidnewhall2
fef69bec58
add back comment
2019-11-30 01:58:38 -08:00
davidnewhall2
8b8ee0f18c
fix build
2019-11-30 01:57:50 -08:00
davidnewhall2
12da25c671
update readme
2019-11-30 01:47:06 -08:00
davidnewhall2
41eb73ae8c
move pkgs, update readme, add two more metrics to influx client
2019-11-30 01:45:42 -08:00
davidnewhall2
612087c8cd
one more..
2019-11-29 23:36:26 -08:00
davidnewhall2
580f37ec35
add two more metrics to clients
2019-11-29 23:17:26 -08:00
davidnewhall2
3036c530a0
update deps
2019-11-29 23:03:17 -08:00
davidnewhall2
425d2df16d
still cleaning
2019-11-29 22:58:48 -08:00
davidnewhall2
b46679ab0a
still cleaning
2019-11-29 22:56:56 -08:00
davidnewhall2
8a2747aaab
tighter for loops
2019-11-29 22:35:42 -08:00
davidnewhall2
0e23e823ec
more cleanup
2019-11-29 21:16:49 -08:00
davidnewhall2
6e9061ff70
Add more to the interface
2019-11-29 20:30:51 -08:00
davidnewhall2
1efcc28208
use fewer tags
2019-11-29 14:43:23 -08:00
davidnewhall2
929af32fd9
fix comments
2019-11-29 13:55:59 -08:00
davidnewhall2
ceab726c36
remove all
2019-11-29 13:37:10 -08:00
davidnewhall2
2b7b3bfb9c
add radio label to vaps
2019-11-29 04:14:46 -08:00
davidnewhall2
18bfc7ee46
use the same labels on all client metrics - derp
2019-11-29 03:33:24 -08:00
davidnewhall2
0690a998f1
use the same labels on all client metrics
2019-11-29 03:30:19 -08:00
davidnewhall2
c4e5ff4d61
fix labels on UAP
2019-11-29 02:47:20 -08:00
davidnewhall2
2cb6ef2fe9
fix up client labels
2019-11-29 00:44:33 -08:00
davidnewhall2
80447988cf
bug fix
2019-11-28 21:08:53 -08:00
davidnewhall2
8da6fef4fe
add an interface for testing
2019-11-28 20:43:06 -08:00
davidnewhall2
637dfb10b2
cleanup
2019-11-28 20:17:37 -08:00
davidnewhall2
d5a9538ac2
unify variable names
2019-11-28 16:09:21 -08:00
davidnewhall2
c0f6fab9fc
add UDM support
2019-11-28 16:02:13 -08:00
davidnewhall2
d8aeab84d3
cosolidate code
2019-11-28 04:14:05 -08:00
davidnewhall2
2c3da9afde
re-arrange a file pieces.
2019-11-28 03:54:53 -08:00
davidnewhall2
4ada65f9ac
small qol update
2019-11-28 03:34:29 -08:00
davidnewhall2
099a3a0e0c
fix a few more unit locations
2019-11-28 03:08:13 -08:00
David Newhall II
cc17b4186c
Apply suggestions from code review
...
Co-Authored-By: Ben Kochie <superq@gmail.com>
2019-11-28 02:57:34 -08:00
davidnewhall2
b41e5d8181
fixes
2019-11-28 02:45:59 -08:00
David Newhall II
f730456081
Update promunifi/clients.go
...
Co-Authored-By: Ben Kochie <superq@gmail.com>
2019-11-28 02:41:27 -08:00
davidnewhall2
3554fb4851
convert speeds to bps
2019-11-28 02:40:29 -08:00
David Newhall II
7c728d854c
Update promunifi/clients.go
...
Co-Authored-By: Ben Kochie <superq@gmail.com>
2019-11-28 02:33:40 -08:00
David Newhall II
b764f844f4
Update promunifi/usw.go
...
Co-Authored-By: Ben Kochie <superq@gmail.com>
2019-11-28 02:32:12 -08:00
davidnewhall2
88bc562f87
more fixes!
2019-11-28 02:30:39 -08:00
davidnewhall2
d1e774df24
more fixes
2019-11-28 02:25:33 -08:00
davidnewhall2
c28350f520
track zeros
2019-11-27 22:31:46 -08:00
davidnewhall2
35dc9c1dd2
trim a few more zeros
2019-11-27 22:20:48 -08:00
davidnewhall2
ae0ad1f132
clean up site and clients
2019-11-27 22:04:12 -08:00
davidnewhall2
3adc68087a
fix linter
2019-11-27 21:33:22 -08:00
davidnewhall2
e12f6a92ff
fix the names
2019-11-27 21:22:37 -08:00
David Newhall II
c4d481ec02
Update promunifi/clients.go
...
Co-Authored-By: Ben Kochie <superq@gmail.com>
2019-11-27 03:08:22 -08:00
davidnewhall2
8898e12a46
Update comment
2019-11-27 02:57:24 -08:00
davidnewhall2
cec675e968
update deps
2019-11-26 01:52:02 -08:00
davidnewhall2
27bb7f93cf
rearrange wait group
2019-11-26 01:49:22 -08:00
davidnewhall2
245f9b4fc0
add radio table stats
2019-11-25 23:55:00 -08:00
davidnewhall2
e89866f21e
add more uap stats
2019-11-25 22:34:37 -08:00
davidnewhall2
9e74c12db0
fix version setting
2019-11-25 13:34:49 -08:00
davidnewhall2
b20b6fcf82
fix lint errors
2019-11-25 13:20:45 -08:00
davidnewhall2
94155793e2
shave a few more nanoseconds
2019-11-25 12:59:26 -08:00
davidnewhall2
4e37391852
shave off some nanoseconds
2019-11-25 03:14:14 -08:00
davidnewhall2
ecfe14f8c3
rename client struct
2019-11-25 00:36:50 -08:00
davidnewhall2
693f6e37b3
fix more port numbers
2019-11-25 00:19:05 -08:00
davidnewhall2
85487e74e9
Updates
2019-11-25 00:17:59 -08:00
davidnewhall2
babefe45fd
fix bugs
2019-11-18 03:07:23 -08:00
davidnewhall2
ec5173b4ee
missed a couple
2019-11-18 02:43:13 -08:00
davidnewhall2
953b900440
move tx/rx labels around
2019-11-18 02:41:20 -08:00
davidnewhall2
5d5a8bbff8
rename some things
2019-11-18 02:10:16 -08:00
davidnewhall2
7bf76c9d85
this makes more sense
2019-11-18 01:38:34 -08:00
davidnewhall2
9dc7a3a3fa
found a bug in site code
2019-11-18 01:26:49 -08:00
davidnewhall2
ca0a737f15
spread things out
2019-11-18 01:19:30 -08:00
davidnewhall2
47efa49aed
Add more usw data, start uap
2019-11-18 01:06:25 -08:00
davidnewhall2
7cb041bd15
Add speed test stats to usg
2019-11-18 00:14:11 -08:00
davidnewhall2
4fb9525ff0
less appendage
2019-11-18 00:01:33 -08:00
davidnewhall2
02c73dd84a
add usg exports
2019-11-17 21:43:47 -08:00
davidnewhall2
1b21330f89
add switch sys stats
2019-11-17 20:35:20 -08:00
davidnewhall2
d5264b1a04
and some more desciprion fixes
2019-11-17 18:24:26 -08:00
davidnewhall2
1840503f34
a few more fixes
2019-11-17 18:21:30 -08:00
davidnewhall2
381a31a5b2
missed one
2019-11-17 18:13:35 -08:00
davidnewhall2
3c07340df2
remove IDS, fix metric names to standards, remove timestamp
2019-11-17 18:13:02 -08:00
davidnewhall2
a7f33ade23
better logging
2019-11-17 17:18:37 -08:00
davidnewhall2
cb874f5ea3
fix comment
2019-11-17 14:27:51 -08:00
davidnewhall2
8aa229b4e1
some cleanup
2019-11-17 14:27:23 -08:00
davidnewhall2
931ffff60e
Add USW and conuter
2019-11-17 14:03:59 -08:00
davidnewhall2
5a6bf50509
code shrinking
2019-11-17 11:55:00 -08:00
davidnewhall2
8af637ee74
dep ensure
2019-11-17 11:03:17 -08:00
davidnewhall2
c3bbddbacf
dont need that anymore
2019-11-17 10:11:58 -08:00
davidnewhall2
d129665792
add site code
2019-11-17 03:02:25 -08:00
davidnewhall2
ead0a95995
new files
2019-11-17 01:52:41 -08:00
davidnewhall2
f3196de714
a few bugs
2019-11-17 01:26:07 -08:00
davidnewhall2
40d14f806f
rename package
2019-11-17 01:21:30 -08:00
davidnewhall2
d63a91655e
fix a bug and send a few more pieces into the mix
2019-11-17 01:12:33 -08:00
davidnewhall2
e762929221
Base layout .. maybe.
2019-11-17 00:52:13 -08:00
davidnewhall2
3751d4873a
a few more steps
2019-11-12 01:30:40 -08:00
davidnewhall2
0480a96fca
Rename all the packages
2019-11-12 00:36:49 -08:00
davidnewhall2
4df79dc968
split influx code into new package
2019-11-12 00:12:50 -08:00
davidnewhall2
7bfb111538
rename internal package
2019-11-12 00:05:51 -08:00
davidnewhall2
6c19dce90d
this is just a start, nothing works yet
2019-11-12 00:04:01 -08:00
a5hs
c48f602765
Correct url for the script pipe to bash
...
This may confuse those who don't always read what they're piping into a privileged shell...
2019-11-07 05:32:46 +00:00
David Newhall II
cc3d80114d
fix test
2019-10-08 22:00:54 -07:00
David Newhall II
bb0b384314
builder has the certs, so use that
2019-10-07 22:50:34 -07:00
David Newhall II
3db77caaa6
Add SSL certificates to Docker container
2019-10-07 22:49:11 -07:00
David Newhall II
c7c33423c1
Merge remote-tracking branch 'origin/master' into dn2_fix_crash
2019-10-01 19:56:52 -07:00
David Newhall II
47004ce453
protect against nil return values
2019-10-01 19:53:43 -07:00
David Newhall II
70838fd46f
fix typos
2019-09-25 00:26:28 -07:00
David Newhall II
2de867cc1d
Remove max errors parameter
2019-09-25 00:12:09 -07:00
davidnewhall2
39d329f9ea
library updates
2019-09-21 00:00:08 -07:00
davidnewhall2
9584a5b21f
ignore G402
2019-09-20 18:41:04 -07:00
davidnewhall2
50c5e6932b
Fix some bugs.
2019-09-20 18:36:20 -07:00
davidnewhall2
a72cbd4f71
Merge branch 'master' of github.com:davidnewhall/unifi-poller
2019-09-11 00:27:40 -07:00
davidnewhall2
efe4c08773
fix test
2019-09-11 00:27:33 -07:00
Dan Wall
4f27a9cbfe
Fix docker compose environment variables
2019-09-10 18:17:31 +10:00
David Newhall II
67d0496b65
fix deploy key extract
2019-09-09 20:57:39 -07:00
David Newhall II
ba3afa7c0b
Update deploy key
2019-09-09 20:55:03 -07:00
David Newhall II
ced1080350
Merge pull request #110 from davidnewhall/dn2_udm_non_pro
...
Add AP support to UDM. Fix restart on linux/systemd. Add more debug.
2019-09-09 20:00:43 -07:00
davidnewhall2
14a29dad12
fix state conflict
2019-09-09 19:12:04 -07:00
Jon Bloom
5ac37c9358
sane defaults
2019-09-09 13:38:14 -04:00
davidnewhall2
04867a730f
update readmes
2019-09-09 01:33:08 -07:00
davidnewhall2
ced7b2dbd7
Add radio description to each client
2019-09-08 03:00:30 -07:00
davidnewhall2
d18e0aa2b7
Fix num_sta types to no break existing dbs.
2019-09-08 02:10:59 -07:00
Jon Bloom
8c80d0f842
rename .env, add newlines, branch in env var
2019-09-06 16:47:24 -04:00
Jon Bloom
5dd34d4732
add docker-compose for influxdb, chronograf, grafana, unifi-poller
2019-09-06 16:20:09 -04:00
davidnewhall2
1cc241b5e1
Fix types.
2019-09-04 12:30:54 -07:00
davidnewhall2
b940bda56d
update library
2019-09-03 23:13:12 -07:00
davidnewhall2
cdfa12ea1e
Create UAP device from UDM.
2019-09-03 21:49:16 -07:00
davidnewhall2
5b2a653e57
Rename variables
2019-09-03 13:43:42 -07:00
davidnewhall2
a0f30440ce
Update discord links, make processPoints better, add restartsec to unit
2019-09-03 11:54:58 -07:00
davidnewhall2
db64791e94
add more debug logs
2019-09-03 01:08:42 -07:00
davidnewhall2
192c5cb5ba
Add AP support to UDM.
2019-09-03 00:24:15 -07:00
davidnewhall2
4b45f3244e
Finally fix UDM.
2019-08-28 12:25:37 -07:00
davidnewhall2
c293ab3c74
update readme
2019-08-27 22:51:14 -07:00
davidnewhall2
fb82146cc5
readme update
2019-08-27 21:43:33 -07:00
davidnewhall2
d7b21ee43d
Update unifi lib.
2019-08-27 21:16:35 -07:00
David Newhall II
1d588993ad
Fix default user in config files.
2019-08-26 02:16:44 -07:00
David Newhall II
9be62a2118
move things
2019-08-26 01:06:35 -07:00
David Newhall II
3f8d3daf21
get local types dynamically
2019-08-26 00:24:25 -07:00
David Newhall II
d4cced15db
fix Duration types
2019-08-26 00:13:03 -07:00
David Newhall II
18bb580131
return error on bad parsed env variable
2019-08-25 23:53:03 -07:00
David Newhall II
b1a9336f47
fix tests
2019-08-25 23:37:58 -07:00
David Newhall II
5ee7b085a9
Use actual struct with TypeOf
2019-08-25 23:31:49 -07:00
David Newhall II
96db7429d8
Use reflection and tags for env variables.
2019-08-25 23:19:29 -07:00
David Newhall II
b077d32076
Update readme
2019-08-25 21:00:52 -07:00
David Newhall II
5219afef47
fix broken test
2019-08-25 20:37:10 -07:00
David Newhall II
fd770bb58e
Allow environment variable configuration
2019-08-25 20:00:27 -07:00
David Newhall II
0471caaba7
Remove struct inheritance.
2019-08-25 19:01:29 -07:00
David Newhall II
1ace91efa2
Add a debug message for re-auth
2019-08-25 18:07:16 -07:00
David Newhall II
19fa63caaf
Add nil checks
2019-08-25 16:38:29 -07:00
David Newhall II
f39440fa9c
Rename clients influx file
2019-08-25 15:06:18 -07:00
David Newhall II
edb70fe357
Rename files
2019-08-25 15:04:00 -07:00
David Newhall II
cd2981b5be
Fix tests
2019-08-25 13:35:59 -07:00
David Newhall II
ad09948be9
Update unifi library
2019-08-25 13:33:22 -07:00
David Newhall II
a76f7d9401
Add influx code to unifi-poller
2019-08-25 13:24:58 -07:00
David Newhall II
3eda364f44
change default config options to uncommented
2019-08-25 02:09:48 -07:00
David Newhall II
f658d9cd4a
Add reauth feature, remove errors library.
2019-08-25 01:54:19 -07:00
davidnewhall2
0c57f6cbb6
Add UDM support and fix FlexInt bug. Closes #97 closes #98 closes #100
2019-08-24 04:01:19 -07:00
David Newhall II
a6597b3f38
Merge branch 'master' of github.com:davidnewhall/unifi-poller
2019-08-15 13:22:17 -07:00
David Newhall II
e488d371cb
Update import path
2019-08-15 13:22:09 -07:00
davidnewhall2
ad3ed9f98a
Fix these paths too
2019-07-20 02:57:39 -07:00
davidnewhall2
625154d150
Rename the library path.
2019-07-20 02:55:45 -07:00
David Newhall II
33553b180f
Update screenshots.
2019-07-17 01:22:37 -07:00
David Newhall II
f22c5f11d0
fix homebrew path
2019-07-16 22:50:57 -07:00
David Newhall II
e6181c79c5
Update grafana badge
2019-07-16 21:38:59 -07:00
David Newhall II
593a54d785
change width
2019-07-15 02:14:20 -07:00
David Newhall II
d8f9573cd8
change width
2019-07-15 02:12:51 -07:00