Commit Graph

570 Commits

Author SHA1 Message Date
Ben Kochie 463b71349f 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 0efb7822f0 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 3cd9018d8e more fixes 2019-12-01 03:26:13 -08:00
davidnewhall2 24f423175e fixes 2019-12-01 00:43:57 -08:00
davidnewhall2 1935fc6195 test fix 2019-11-30 19:30:21 -08:00
davidnewhall2 2fc596645e more reusable code 2019-11-30 18:18:49 -08:00
davidnewhall2 ffa38fe707 Improve influx library 2019-11-30 16:45:22 -08:00
davidnewhall2 cdb02873dd allow more data reduction 2019-11-30 03:42:17 -08:00
davidnewhall2 74e706872d remove a bunch of unused things from influx code 2019-11-30 02:47:11 -08:00
davidnewhall2 964eed16b6 Add port ID to switch ports. 2019-11-30 02:15:06 -08:00
davidnewhall2 2b30cb992f jeeez, fix the build already 2019-11-30 02:05:56 -08:00
davidnewhall2 63e3242220 add back comment 2019-11-30 01:58:38 -08:00
davidnewhall2 0357747294 fix build 2019-11-30 01:57:50 -08:00
davidnewhall2 e2f57228e1 update readme 2019-11-30 01:47:06 -08:00
davidnewhall2 166585bfd5 move pkgs, update readme, add two more metrics to influx client 2019-11-30 01:45:42 -08:00
davidnewhall2 420bab0535 one more.. 2019-11-29 23:36:26 -08:00
davidnewhall2 8090b833e3 add two more metrics to clients 2019-11-29 23:17:26 -08:00
davidnewhall2 61f2796aa9 update deps 2019-11-29 23:03:17 -08:00
davidnewhall2 213d37851c still cleaning 2019-11-29 22:58:48 -08:00
davidnewhall2 989f874f15 still cleaning 2019-11-29 22:56:56 -08:00
davidnewhall2 3742871620 tighter for loops 2019-11-29 22:35:42 -08:00
davidnewhall2 62ad7f7296 more cleanup 2019-11-29 21:16:49 -08:00
davidnewhall2 76b8ab299d Add more to the interface 2019-11-29 20:30:51 -08:00
davidnewhall2 dc1e590afe use fewer tags 2019-11-29 14:43:23 -08:00
davidnewhall2 daaa047eba fix comments 2019-11-29 13:55:59 -08:00
davidnewhall2 e53682752d remove all 2019-11-29 13:37:10 -08:00
davidnewhall2 d880c3150f add radio label to vaps 2019-11-29 04:14:46 -08:00
davidnewhall2 ffac10c5bb use the same labels on all client metrics - derp 2019-11-29 03:33:24 -08:00
davidnewhall2 296d3d4867 use the same labels on all client metrics 2019-11-29 03:30:19 -08:00
davidnewhall2 1936fc147a fix labels on UAP 2019-11-29 02:47:20 -08:00
davidnewhall2 28da48a88f fix up client labels 2019-11-29 00:44:33 -08:00
davidnewhall2 265f9ef477 bug fix 2019-11-28 21:08:53 -08:00
davidnewhall2 bf23a5ab4a add an interface for testing 2019-11-28 20:43:06 -08:00
davidnewhall2 fe54b93e47 cleanup 2019-11-28 20:17:37 -08:00
davidnewhall2 a9b99eab29 unify variable names 2019-11-28 16:09:21 -08:00
davidnewhall2 722504c58a add UDM support 2019-11-28 16:02:13 -08:00
davidnewhall2 9d2ec7e760 cosolidate code 2019-11-28 04:14:05 -08:00
davidnewhall2 f5337ffa72 re-arrange a file pieces. 2019-11-28 03:54:53 -08:00
davidnewhall2 035cdf10f0 small qol update 2019-11-28 03:34:29 -08:00
davidnewhall2 5b7c9b7abb fix a few more unit locations 2019-11-28 03:08:13 -08:00
David Newhall II 6e47a0baaa Apply suggestions from code review
Co-Authored-By: Ben Kochie <superq@gmail.com>
2019-11-28 02:57:34 -08:00
davidnewhall2 4737145a57 fixes 2019-11-28 02:45:59 -08:00
David Newhall II 2c91163482 Update promunifi/clients.go
Co-Authored-By: Ben Kochie <superq@gmail.com>
2019-11-28 02:41:27 -08:00
davidnewhall2 c84f18246c convert speeds to bps 2019-11-28 02:40:29 -08:00
David Newhall II 756b15c130 Update promunifi/clients.go
Co-Authored-By: Ben Kochie <superq@gmail.com>
2019-11-28 02:33:40 -08:00
David Newhall II a1bdc6f3bd Update promunifi/usw.go
Co-Authored-By: Ben Kochie <superq@gmail.com>
2019-11-28 02:32:12 -08:00
davidnewhall2 28f74a33c2 more fixes! 2019-11-28 02:30:39 -08:00
davidnewhall2 2d92837266 more fixes 2019-11-28 02:25:33 -08:00
davidnewhall2 328e5654c5 track zeros 2019-11-27 22:31:46 -08:00
davidnewhall2 a29fcc79ea trim a few more zeros 2019-11-27 22:20:48 -08:00
davidnewhall2 051399f7e4 clean up site and clients 2019-11-27 22:04:12 -08:00
davidnewhall2 996f45d9cf fix linter 2019-11-27 21:33:22 -08:00
davidnewhall2 810a3616e9 fix the names 2019-11-27 21:22:37 -08:00
David Newhall II 3a995a8e9e Update promunifi/clients.go
Co-Authored-By: Ben Kochie <superq@gmail.com>
2019-11-27 03:08:22 -08:00
davidnewhall2 88735b432e Update comment 2019-11-27 02:57:24 -08:00
davidnewhall2 e8be693a22 update deps 2019-11-26 01:52:02 -08:00
davidnewhall2 48b3ac25d8 rearrange wait group 2019-11-26 01:49:22 -08:00
davidnewhall2 ded1642f28 add radio table stats 2019-11-25 23:55:00 -08:00
davidnewhall2 8eabd2d75b add more uap stats 2019-11-25 22:34:37 -08:00
davidnewhall2 03e78149cc fix version setting 2019-11-25 13:34:49 -08:00
davidnewhall2 a4f3307519 fix lint errors 2019-11-25 13:20:45 -08:00
davidnewhall2 4ad60e290e shave a few more nanoseconds 2019-11-25 12:59:26 -08:00
davidnewhall2 afd3664572 shave off some nanoseconds 2019-11-25 03:14:14 -08:00
davidnewhall2 a2032e1145 rename client struct 2019-11-25 00:36:50 -08:00
davidnewhall2 bac2ed2ff9 fix more port numbers 2019-11-25 00:19:05 -08:00
davidnewhall2 c9352cc58b Updates 2019-11-25 00:17:59 -08:00
davidnewhall2 b3ea0f0b05 fix bugs 2019-11-18 03:07:23 -08:00
davidnewhall2 8233816aeb missed a couple 2019-11-18 02:43:13 -08:00
davidnewhall2 872854b2cf move tx/rx labels around 2019-11-18 02:41:20 -08:00
davidnewhall2 141fe95065 rename some things 2019-11-18 02:10:16 -08:00
davidnewhall2 2e8f39d6dc this makes more sense 2019-11-18 01:38:34 -08:00
davidnewhall2 290c5467d5 found a bug in site code 2019-11-18 01:26:49 -08:00
davidnewhall2 2f456166e1 spread things out 2019-11-18 01:19:30 -08:00
davidnewhall2 45db1b078f Add more usw data, start uap 2019-11-18 01:06:25 -08:00
davidnewhall2 ca05f9c72c Add speed test stats to usg 2019-11-18 00:14:11 -08:00
davidnewhall2 0678e6ffb9 less appendage 2019-11-18 00:01:33 -08:00
davidnewhall2 69b58401c2 add usg exports 2019-11-17 21:43:47 -08:00
davidnewhall2 f62747f480 add switch sys stats 2019-11-17 20:35:20 -08:00
davidnewhall2 20c969d50f and some more desciprion fixes 2019-11-17 18:24:26 -08:00
davidnewhall2 7dd3d2fa03 a few more fixes 2019-11-17 18:21:30 -08:00
davidnewhall2 261743ef84 missed one 2019-11-17 18:13:35 -08:00
davidnewhall2 338dcceff2 remove IDS, fix metric names to standards, remove timestamp 2019-11-17 18:13:02 -08:00
davidnewhall2 f42c7be784 better logging 2019-11-17 17:18:37 -08:00
davidnewhall2 c0815319bf fix comment 2019-11-17 14:27:51 -08:00
davidnewhall2 463a497c6a some cleanup 2019-11-17 14:27:23 -08:00
davidnewhall2 609c34cad3 Add USW and conuter 2019-11-17 14:03:59 -08:00
davidnewhall2 5a12a32032 code shrinking 2019-11-17 11:55:00 -08:00
davidnewhall2 ccf7d268a0 dep ensure 2019-11-17 11:03:17 -08:00
davidnewhall2 9996c8f096 dont need that anymore 2019-11-17 10:11:58 -08:00
davidnewhall2 bc06c09905 add site code 2019-11-17 03:02:25 -08:00
davidnewhall2 493f687793 new files 2019-11-17 01:52:41 -08:00
davidnewhall2 2fc90393de a few bugs 2019-11-17 01:26:07 -08:00
davidnewhall2 78bcc55b06 rename package 2019-11-17 01:21:30 -08:00
davidnewhall2 043b631d61 fix a bug and send a few more pieces into the mix 2019-11-17 01:12:33 -08:00
davidnewhall2 24ae5fe80d Base layout .. maybe. 2019-11-17 00:52:13 -08:00
davidnewhall2 52dc545142 a few more steps 2019-11-12 01:30:40 -08:00
davidnewhall2 40a9ec407e Rename all the packages 2019-11-12 00:36:49 -08:00
davidnewhall2 488b2b67db split influx code into new package 2019-11-12 00:12:50 -08:00
davidnewhall2 d4362c74da rename internal package 2019-11-12 00:05:51 -08:00
davidnewhall2 58be62bb4d this is just a start, nothing works yet 2019-11-12 00:04:01 -08:00
a5hs c71166ab87 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 0c7994d465 fix test 2019-10-08 22:00:54 -07:00
David Newhall II 8948cf7f12 builder has the certs, so use that 2019-10-07 22:50:34 -07:00
David Newhall II f34c4ef2b9 Add SSL certificates to Docker container 2019-10-07 22:49:11 -07:00
David Newhall II 2a88439936 Merge remote-tracking branch 'origin/master' into dn2_fix_crash 2019-10-01 19:56:52 -07:00
David Newhall II 3e6161afe1 protect against nil return values 2019-10-01 19:53:43 -07:00
David Newhall II d9e7e471ec fix typos 2019-09-25 00:26:28 -07:00
David Newhall II 0094ed368d Remove max errors parameter 2019-09-25 00:12:09 -07:00
davidnewhall2 57f0990a52 library updates 2019-09-21 00:00:08 -07:00
davidnewhall2 e56b261a66 ignore G402 2019-09-20 18:41:04 -07:00
davidnewhall2 89a50e8c79 Fix some bugs. 2019-09-20 18:36:20 -07:00
davidnewhall2 71a9cd112b Merge branch 'master' of github.com:davidnewhall/unifi-poller 2019-09-11 00:27:40 -07:00
davidnewhall2 8ce410afb2 fix test 2019-09-11 00:27:33 -07:00
Dan Wall 2a533cd420 Fix docker compose environment variables 2019-09-10 18:17:31 +10:00
David Newhall II e5922e2fe6 fix deploy key extract 2019-09-09 20:57:39 -07:00
David Newhall II 30e385f524 Update deploy key 2019-09-09 20:55:03 -07:00
David Newhall II e9caa96f98 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 2550c7c087 fix state conflict 2019-09-09 19:12:04 -07:00
Jon Bloom 089bbc6d93 sane defaults 2019-09-09 13:38:14 -04:00
davidnewhall2 4db4980da4 update readmes 2019-09-09 01:33:08 -07:00
davidnewhall2 5dabdadde1 Add radio description to each client 2019-09-08 03:00:30 -07:00
davidnewhall2 b5b0c66cd1 Fix num_sta types to no break existing dbs. 2019-09-08 02:10:59 -07:00
Jon Bloom a36877a7b1 rename .env, add newlines, branch in env var 2019-09-06 16:47:24 -04:00
Jon Bloom f502f47d65 add docker-compose for influxdb, chronograf, grafana, unifi-poller 2019-09-06 16:20:09 -04:00
davidnewhall2 3ce7f59615 Fix types. 2019-09-04 12:30:54 -07:00
davidnewhall2 63065f7279 update library 2019-09-03 23:13:12 -07:00
davidnewhall2 738d8fd4f8 Create UAP device from UDM. 2019-09-03 21:49:16 -07:00
davidnewhall2 c21c10157d Rename variables 2019-09-03 13:43:42 -07:00
davidnewhall2 d61a6a6bc2 Update discord links, make processPoints better, add restartsec to unit 2019-09-03 11:54:58 -07:00
davidnewhall2 1c4ddb8f49 add more debug logs 2019-09-03 01:08:42 -07:00
davidnewhall2 d9a2a306ec Add AP support to UDM. 2019-09-03 00:24:15 -07:00
davidnewhall2 aadfc443ea Finally fix UDM. 2019-08-28 12:25:37 -07:00
davidnewhall2 aae4dadadd update readme 2019-08-27 22:51:14 -07:00
davidnewhall2 c0e43a8803 readme update 2019-08-27 21:43:33 -07:00
davidnewhall2 33778a5576 Update unifi lib. 2019-08-27 21:16:35 -07:00
David Newhall II 809b86ff00 Fix default user in config files. 2019-08-26 02:16:44 -07:00
David Newhall II 860e4f83cb move things 2019-08-26 01:06:35 -07:00
David Newhall II 6472ff4307 get local types dynamically 2019-08-26 00:24:25 -07:00
David Newhall II 779dff04bc fix Duration types 2019-08-26 00:13:03 -07:00
David Newhall II 685b9b148e return error on bad parsed env variable 2019-08-25 23:53:03 -07:00
David Newhall II 5e83811c5a fix tests 2019-08-25 23:37:58 -07:00
David Newhall II 9a2c18d5c8 Use actual struct with TypeOf 2019-08-25 23:31:49 -07:00
David Newhall II 50a6f6e004 Use reflection and tags for env variables. 2019-08-25 23:19:29 -07:00
David Newhall II 5d8be1fe72 Update readme 2019-08-25 21:00:52 -07:00
David Newhall II 6268888568 fix broken test 2019-08-25 20:37:10 -07:00
David Newhall II e86c657aeb Allow environment variable configuration 2019-08-25 20:00:27 -07:00
David Newhall II 443fda2eeb Remove struct inheritance. 2019-08-25 19:01:29 -07:00
David Newhall II e9f618635a Add a debug message for re-auth 2019-08-25 18:07:16 -07:00
David Newhall II 4ecbfa961b Add nil checks 2019-08-25 16:38:29 -07:00
David Newhall II d7222134a0 Rename clients influx file 2019-08-25 15:06:18 -07:00