Commit Graph

628 Commits

Author SHA1 Message Date
davidnewhall2 c181e62514 a couple more fixes 2019-12-01 19:04:17 -08:00
davidnewhall2 648febd3dc fix more ratios, combine export loops 2019-12-01 17:42:13 -08:00
David Newhall II 4970c3eda2 Apply suggestions from code review 2019-12-01 17:25:49 -08:00
David Newhall II 9c3cb425c8 Apply suggestions from code review 2019-12-01 17:24:35 -08:00
David Newhall II ebfce744e2 Merge branch 'master' into superq/metric_names 2019-12-01 17:18:41 -08:00
davidnewhall2 cfa71ba716 a couple others missing 2019-12-01 14:39:18 -08:00
davidnewhall2 138766c0a3 add a few missing metrics 2019-12-01 14:03:27 -08:00
Ben Kochie a9b417f178 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 a6edfb3a3a 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 d6044f3992 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 4ff9a7f8dc more fixes 2019-12-01 03:26:13 -08:00
davidnewhall2 677bc99455 fixes 2019-12-01 00:43:57 -08:00
davidnewhall2 76266785e7 test fix 2019-11-30 19:30:21 -08:00
davidnewhall2 a18cbf5158 more reusable code 2019-11-30 18:18:49 -08:00
davidnewhall2 79dae73923 Improve influx library 2019-11-30 16:45:22 -08:00
davidnewhall2 e3b38944a7 allow more data reduction 2019-11-30 03:42:17 -08:00
davidnewhall2 7fc942a567 remove a bunch of unused things from influx code 2019-11-30 02:47:11 -08:00
davidnewhall2 4eaee443ae Add port ID to switch ports. 2019-11-30 02:15:06 -08:00
davidnewhall2 59b45ab763 jeeez, fix the build already 2019-11-30 02:05:56 -08:00
davidnewhall2 a32977127d add back comment 2019-11-30 01:58:38 -08:00
davidnewhall2 f8f3f94154 fix build 2019-11-30 01:57:50 -08:00
davidnewhall2 cb518fe21d update readme 2019-11-30 01:47:06 -08:00
davidnewhall2 2579aa6a0a move pkgs, update readme, add two more metrics to influx client 2019-11-30 01:45:42 -08:00
davidnewhall2 a83bae4a20 one more.. 2019-11-29 23:36:26 -08:00
davidnewhall2 66e3816687 add two more metrics to clients 2019-11-29 23:17:26 -08:00
davidnewhall2 421566c23a update deps 2019-11-29 23:03:17 -08:00
davidnewhall2 ab4bb56ce8 still cleaning 2019-11-29 22:58:48 -08:00
davidnewhall2 6fa40ff21c still cleaning 2019-11-29 22:56:56 -08:00
davidnewhall2 c5e0df8904 tighter for loops 2019-11-29 22:35:42 -08:00
davidnewhall2 937707539c more cleanup 2019-11-29 21:16:49 -08:00
davidnewhall2 3c471abdbe Add more to the interface 2019-11-29 20:30:51 -08:00
davidnewhall2 08d393d803 use fewer tags 2019-11-29 14:43:23 -08:00
davidnewhall2 df25640304 fix comments 2019-11-29 13:55:59 -08:00
davidnewhall2 a03fea0e15 remove all 2019-11-29 13:37:10 -08:00
davidnewhall2 b46a7690a7 add radio label to vaps 2019-11-29 04:14:46 -08:00
davidnewhall2 2086c44ab6 use the same labels on all client metrics - derp 2019-11-29 03:33:24 -08:00
davidnewhall2 d3b3d55cd1 use the same labels on all client metrics 2019-11-29 03:30:19 -08:00
davidnewhall2 e0880f1a20 fix labels on UAP 2019-11-29 02:47:20 -08:00
davidnewhall2 4c74d2fae7 fix up client labels 2019-11-29 00:44:33 -08:00
davidnewhall2 94037f0e19 bug fix 2019-11-28 21:08:53 -08:00
davidnewhall2 9599bdbbe2 add an interface for testing 2019-11-28 20:43:06 -08:00
davidnewhall2 70aeeb4483 cleanup 2019-11-28 20:17:37 -08:00
davidnewhall2 4b6b639a22 unify variable names 2019-11-28 16:09:21 -08:00
davidnewhall2 7bd85c2e3c add UDM support 2019-11-28 16:02:13 -08:00
davidnewhall2 555b8b4c02 cosolidate code 2019-11-28 04:14:05 -08:00
davidnewhall2 5a16615d9a re-arrange a file pieces. 2019-11-28 03:54:53 -08:00
davidnewhall2 af116405aa small qol update 2019-11-28 03:34:29 -08:00
davidnewhall2 b4772da3c2 fix a few more unit locations 2019-11-28 03:08:13 -08:00
David Newhall II ba4a88288a Apply suggestions from code review
Co-Authored-By: Ben Kochie <superq@gmail.com>
2019-11-28 02:57:34 -08:00
davidnewhall2 1c19fcc8de fixes 2019-11-28 02:45:59 -08:00
David Newhall II 5a553d289b Update promunifi/clients.go
Co-Authored-By: Ben Kochie <superq@gmail.com>
2019-11-28 02:41:27 -08:00
davidnewhall2 88cf22b550 convert speeds to bps 2019-11-28 02:40:29 -08:00
David Newhall II a1719d6da9 Update promunifi/clients.go
Co-Authored-By: Ben Kochie <superq@gmail.com>
2019-11-28 02:33:40 -08:00
David Newhall II 56d579bb0a Update promunifi/usw.go
Co-Authored-By: Ben Kochie <superq@gmail.com>
2019-11-28 02:32:12 -08:00
davidnewhall2 d32f59fcd7 more fixes! 2019-11-28 02:30:39 -08:00
davidnewhall2 0a886f7817 more fixes 2019-11-28 02:25:33 -08:00
davidnewhall2 f1776fa573 track zeros 2019-11-27 22:31:46 -08:00
davidnewhall2 571e605b26 trim a few more zeros 2019-11-27 22:20:48 -08:00
davidnewhall2 d0cd727963 clean up site and clients 2019-11-27 22:04:12 -08:00
davidnewhall2 6ea5914873 fix linter 2019-11-27 21:33:22 -08:00
davidnewhall2 6f07e6efcf fix the names 2019-11-27 21:22:37 -08:00
David Newhall II 2448957ffe Update promunifi/clients.go
Co-Authored-By: Ben Kochie <superq@gmail.com>
2019-11-27 03:08:22 -08:00
davidnewhall2 c6259e0ede Update comment 2019-11-27 02:57:24 -08:00
davidnewhall2 dd834d5288 update deps 2019-11-26 01:52:02 -08:00
davidnewhall2 8b9657b043 rearrange wait group 2019-11-26 01:49:22 -08:00
davidnewhall2 99ac82172f add radio table stats 2019-11-25 23:55:00 -08:00
davidnewhall2 8e21455e35 add more uap stats 2019-11-25 22:34:37 -08:00
davidnewhall2 65e2373561 fix version setting 2019-11-25 13:34:49 -08:00
davidnewhall2 3598003b6f fix lint errors 2019-11-25 13:20:45 -08:00
davidnewhall2 b84b1d92b7 shave a few more nanoseconds 2019-11-25 12:59:26 -08:00
davidnewhall2 8eea9be08d shave off some nanoseconds 2019-11-25 03:14:14 -08:00
davidnewhall2 a0391c04c2 rename client struct 2019-11-25 00:36:50 -08:00
davidnewhall2 6e8497a467 fix more port numbers 2019-11-25 00:19:05 -08:00
davidnewhall2 e3069991b0 Updates 2019-11-25 00:17:59 -08:00
davidnewhall2 3f684f1e46 fix bugs 2019-11-18 03:07:23 -08:00
davidnewhall2 e937c866de missed a couple 2019-11-18 02:43:13 -08:00
davidnewhall2 5614a1d826 move tx/rx labels around 2019-11-18 02:41:20 -08:00
davidnewhall2 fe5898dc75 rename some things 2019-11-18 02:10:16 -08:00
davidnewhall2 8ba758703a this makes more sense 2019-11-18 01:38:34 -08:00
davidnewhall2 a12f5f0fde found a bug in site code 2019-11-18 01:26:49 -08:00
davidnewhall2 d4bfa569ee spread things out 2019-11-18 01:19:30 -08:00
davidnewhall2 19a697898d Add more usw data, start uap 2019-11-18 01:06:25 -08:00
davidnewhall2 97610c0c2a Add speed test stats to usg 2019-11-18 00:14:11 -08:00
davidnewhall2 573ce9bdee less appendage 2019-11-18 00:01:33 -08:00
davidnewhall2 0b5872c62e add usg exports 2019-11-17 21:43:47 -08:00
davidnewhall2 14b7ffe1f6 add switch sys stats 2019-11-17 20:35:20 -08:00
davidnewhall2 f857be3ea7 and some more desciprion fixes 2019-11-17 18:24:26 -08:00
davidnewhall2 8ea1c81c5c a few more fixes 2019-11-17 18:21:30 -08:00
davidnewhall2 bdc060fdbe missed one 2019-11-17 18:13:35 -08:00
davidnewhall2 419d38fc91 remove IDS, fix metric names to standards, remove timestamp 2019-11-17 18:13:02 -08:00
davidnewhall2 7d7226e0d2 better logging 2019-11-17 17:18:37 -08:00
davidnewhall2 cdbc51f315 fix comment 2019-11-17 14:27:51 -08:00
davidnewhall2 2eaca3bc78 some cleanup 2019-11-17 14:27:23 -08:00
davidnewhall2 b1abbc9cb5 Add USW and conuter 2019-11-17 14:03:59 -08:00
davidnewhall2 a554e2f14d code shrinking 2019-11-17 11:55:00 -08:00
davidnewhall2 cb314edba9 dep ensure 2019-11-17 11:03:17 -08:00
davidnewhall2 2b08ed5f23 dont need that anymore 2019-11-17 10:11:58 -08:00
davidnewhall2 b05b855493 add site code 2019-11-17 03:02:25 -08:00
davidnewhall2 7b8546d51a new files 2019-11-17 01:52:41 -08:00
davidnewhall2 202639a1fc a few bugs 2019-11-17 01:26:07 -08:00
davidnewhall2 38ce386b51 rename package 2019-11-17 01:21:30 -08:00
davidnewhall2 1135781aa4 fix a bug and send a few more pieces into the mix 2019-11-17 01:12:33 -08:00
davidnewhall2 788f56d62d Base layout .. maybe. 2019-11-17 00:52:13 -08:00
davidnewhall2 6c453745b3 a few more steps 2019-11-12 01:30:40 -08:00
davidnewhall2 282fdcbc85 Rename all the packages 2019-11-12 00:36:49 -08:00
davidnewhall2 723d1d69c5 split influx code into new package 2019-11-12 00:12:50 -08:00
davidnewhall2 a6de7e94a3 rename internal package 2019-11-12 00:05:51 -08:00
davidnewhall2 0683133555 this is just a start, nothing works yet 2019-11-12 00:04:01 -08:00
a5hs 82e0f4e604 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 9df2a7847f fix test 2019-10-08 22:00:54 -07:00
David Newhall II 0efa18fdad builder has the certs, so use that 2019-10-07 22:50:34 -07:00
David Newhall II 5a7c16a71c Add SSL certificates to Docker container 2019-10-07 22:49:11 -07:00
David Newhall II 690e069a65 Merge remote-tracking branch 'origin/master' into dn2_fix_crash 2019-10-01 19:56:52 -07:00
David Newhall II 9d45563355 protect against nil return values 2019-10-01 19:53:43 -07:00
David Newhall II 7f2d813842 fix typos 2019-09-25 00:26:28 -07:00
David Newhall II 658867a5a5 Remove max errors parameter 2019-09-25 00:12:09 -07:00
davidnewhall2 e451ecd188 library updates 2019-09-21 00:00:08 -07:00
davidnewhall2 08990d0662 ignore G402 2019-09-20 18:41:04 -07:00
davidnewhall2 186837d512 Fix some bugs. 2019-09-20 18:36:20 -07:00
davidnewhall2 4104c35b91 Merge branch 'master' of github.com:davidnewhall/unifi-poller 2019-09-11 00:27:40 -07:00
davidnewhall2 18c194ce1d fix test 2019-09-11 00:27:33 -07:00
Dan Wall 8400c15852 Fix docker compose environment variables 2019-09-10 18:17:31 +10:00
David Newhall II 62eabb1c1f fix deploy key extract 2019-09-09 20:57:39 -07:00
David Newhall II 63b95e070e Update deploy key 2019-09-09 20:55:03 -07:00
David Newhall II 4d08697944 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 1e1793076d fix state conflict 2019-09-09 19:12:04 -07:00
Jon Bloom 8c3194c4fc sane defaults 2019-09-09 13:38:14 -04:00
davidnewhall2 95185f2f03 update readmes 2019-09-09 01:33:08 -07:00
davidnewhall2 774b5b9c1a Add radio description to each client 2019-09-08 03:00:30 -07:00
davidnewhall2 c3331554f8 Fix num_sta types to no break existing dbs. 2019-09-08 02:10:59 -07:00
Jon Bloom ab03b5bc21 rename .env, add newlines, branch in env var 2019-09-06 16:47:24 -04:00
Jon Bloom 83193f474f add docker-compose for influxdb, chronograf, grafana, unifi-poller 2019-09-06 16:20:09 -04:00
davidnewhall2 9267bf805b Fix types. 2019-09-04 12:30:54 -07:00
davidnewhall2 077fb65dff update library 2019-09-03 23:13:12 -07:00
davidnewhall2 75ad564e19 Create UAP device from UDM. 2019-09-03 21:49:16 -07:00
davidnewhall2 b6200aac63 Rename variables 2019-09-03 13:43:42 -07:00
davidnewhall2 6c7d670ba9 Update discord links, make processPoints better, add restartsec to unit 2019-09-03 11:54:58 -07:00
davidnewhall2 f6ad30d253 add more debug logs 2019-09-03 01:08:42 -07:00
davidnewhall2 3c3f3b8765 Add AP support to UDM. 2019-09-03 00:24:15 -07:00
davidnewhall2 87836af3b7 Finally fix UDM. 2019-08-28 12:25:37 -07:00
davidnewhall2 8af8929d89 update readme 2019-08-27 22:51:14 -07:00
davidnewhall2 bc81b164e8 readme update 2019-08-27 21:43:33 -07:00
davidnewhall2 5fc83c431a Update unifi lib. 2019-08-27 21:16:35 -07:00
David Newhall II 2164ad12a9 Fix default user in config files. 2019-08-26 02:16:44 -07:00
David Newhall II d369e8dd0f move things 2019-08-26 01:06:35 -07:00
David Newhall II e878c785cc get local types dynamically 2019-08-26 00:24:25 -07:00
David Newhall II 412982ee56 fix Duration types 2019-08-26 00:13:03 -07:00
David Newhall II fc4c3b9c1e return error on bad parsed env variable 2019-08-25 23:53:03 -07:00
David Newhall II 4af450eef5 fix tests 2019-08-25 23:37:58 -07:00
David Newhall II 60a5448623 Use actual struct with TypeOf 2019-08-25 23:31:49 -07:00
David Newhall II 23e2bd1d19 Use reflection and tags for env variables. 2019-08-25 23:19:29 -07:00
David Newhall II e7b716edb6 Update readme 2019-08-25 21:00:52 -07:00
David Newhall II e1a9395cf0 fix broken test 2019-08-25 20:37:10 -07:00
David Newhall II 99a44c69b1 Allow environment variable configuration 2019-08-25 20:00:27 -07:00
David Newhall II 2a355c0677 Remove struct inheritance. 2019-08-25 19:01:29 -07:00
David Newhall II 13b417c52f Add a debug message for re-auth 2019-08-25 18:07:16 -07:00
David Newhall II 406a1383b9 Add nil checks 2019-08-25 16:38:29 -07:00
David Newhall II 8317e9d2ef Rename clients influx file 2019-08-25 15:06:18 -07:00
David Newhall II 881007aa8c Rename files 2019-08-25 15:04:00 -07:00
David Newhall II fe5af9d0fa Fix tests 2019-08-25 13:35:59 -07:00
David Newhall II fe040cb97e Update unifi library 2019-08-25 13:33:22 -07:00
David Newhall II 6d6384728f Add influx code to unifi-poller 2019-08-25 13:24:58 -07:00
David Newhall II fee1c7da67 change default config options to uncommented 2019-08-25 02:09:48 -07:00
David Newhall II 0afe67d8ee Add reauth feature, remove errors library. 2019-08-25 01:54:19 -07:00
davidnewhall2 9d384b5079 Add UDM support and fix FlexInt bug. Closes #97 closes #98 closes #100 2019-08-24 04:01:19 -07:00
David Newhall II 77c8ed1bc2 Merge branch 'master' of github.com:davidnewhall/unifi-poller 2019-08-15 13:22:17 -07:00
David Newhall II 84f81c5938 Update import path 2019-08-15 13:22:09 -07:00
davidnewhall2 6df724cb20 Fix these paths too 2019-07-20 02:57:39 -07:00
davidnewhall2 3a1fba7e94 Rename the library path. 2019-07-20 02:55:45 -07:00
David Newhall II be5104360c Update screenshots. 2019-07-17 01:22:37 -07:00
David Newhall II b8524e81e8 fix homebrew path 2019-07-16 22:50:57 -07:00
David Newhall II 74b1a42713 Update grafana badge 2019-07-16 21:38:59 -07:00
David Newhall II 047d5f704c change width 2019-07-15 02:14:20 -07:00
David Newhall II 9329164f8f change width 2019-07-15 02:12:51 -07:00
David Newhall II 53f653556b still playing 2019-07-15 02:10:07 -07:00
David Newhall II e9a7c0736d try this way 2019-07-15 01:32:45 -07:00
David Newhall II 00b805a6c8 playing 2019-07-15 01:31:15 -07:00
David Newhall II 95c046f417 One more library update 2019-07-15 00:17:16 -07:00
David Newhall II 5133f340d8 fix gw and sw bug 2019-07-15 00:08:17 -07:00
David Newhall II da91e6ba05 fix head and makefile 2019-07-14 23:03:10 -07:00
David Newhall II ac7d24f45b Update app builder 2019-07-14 22:57:45 -07:00
David Newhall II 9cb6b30474 fix install.sh for deb 2019-07-14 22:31:46 -07:00
David Newhall II 5b7325b2b7 more build deps 2019-07-14 21:17:19 -07:00
David Newhall II 52076efea0 make making easier 2019-07-14 21:14:25 -07:00
David Newhall II d7a125a14d change some badges 2019-07-14 20:17:39 -07:00
David Newhall II bd6efc0cd8 change some badges 2019-07-14 20:16:05 -07:00
David Newhall II f986e5f122 update badges 2019-07-14 20:07:25 -07:00
David Newhall II 033b0fce1d Align points with ticker. 2019-07-14 02:48:41 -07:00
David Newhall II c0a20c1101 Allign all points. 2019-07-14 02:38:16 -07:00
David Newhall II 41f0abf2a1 missed these! 2019-07-14 02:31:03 -07:00
David Newhall II dc25c95b75 minor changes 2019-07-14 02:28:32 -07:00
David Newhall II 3b852cd6ca Update unifi import path. 2019-07-14 01:51:53 -07:00
David Newhall II 3f9408e077 Doc updates. 2019-07-13 04:29:11 -07:00
David Newhall II edbc3648e8 Update Library and application-builder code. 2019-07-13 03:52:00 -07:00
David Newhall II a9e5b7afc0 Add badges 2019-07-12 02:12:23 -07:00
David Newhall II 3a0f2c86fa upgrade to newest version of app builder 2019-07-11 01:42:24 -07:00
David Newhall II c7cccaca98 always restart 2019-07-11 01:31:10 -07:00
David Newhall II addd795975 Add IDS/IPS support. 2019-07-11 01:18:40 -07:00
David Newhall II 885a1f8f3d More generic 2019-07-09 02:14:24 -07:00
David Newhall II 6aaeb3c8e4 remove comment 2019-07-09 01:41:18 -07:00