Commit Graph

537 Commits

Author SHA1 Message Date
Ben Kochie f34f3e63a5 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 8d54628138 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 d28ecfe988 fix env variable usage 2019-12-02 13:11:35 -08:00
davidnewhall2 a3c7c5e4ce readme update 2019-12-02 00:14:43 -08:00
davidnewhall2 57e4f0c29a add a small readme 2019-12-01 22:33:37 -08:00
davidnewhall2 f2bde242fb dpkg --force-confdef --force-confold --install 2019-12-01 22:31:57 -08:00
davidnewhall2 6cbda63841 doc updates 2019-12-01 22:19:57 -08:00
davidnewhall2 7dbd1321b5 update example 2019-12-01 19:29:40 -08:00
davidnewhall2 2511d2e2f0 reference new dashes 2019-12-01 19:28:44 -08:00
davidnewhall2 3760442b45 a couple more fixes 2019-12-01 19:04:17 -08:00
davidnewhall2 5f0c383593 fix more ratios, combine export loops 2019-12-01 17:42:13 -08:00
David Newhall II 2771c80912 Apply suggestions from code review 2019-12-01 17:25:49 -08:00
David Newhall II 4bd337eaf7 Apply suggestions from code review 2019-12-01 17:24:35 -08:00
David Newhall II 1cc58080e0 Merge branch 'master' into superq/metric_names 2019-12-01 17:18:41 -08:00
davidnewhall2 c2e94651d6 a couple others missing 2019-12-01 14:39:18 -08:00
davidnewhall2 8081dca8f3 add a few missing metrics 2019-12-01 14:03:27 -08:00
Ben Kochie b871afd5f3 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 866c44feac 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 757a3040a1 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 aecad4a372 more fixes 2019-12-01 03:26:13 -08:00
davidnewhall2 567b514bd6 fixes 2019-12-01 00:43:57 -08:00
davidnewhall2 c8dd4d316b test fix 2019-11-30 19:30:21 -08:00
davidnewhall2 d6be2f71f0 more reusable code 2019-11-30 18:18:49 -08:00
davidnewhall2 18624e0e24 Improve influx library 2019-11-30 16:45:22 -08:00
davidnewhall2 3a3081fe2a allow more data reduction 2019-11-30 03:42:17 -08:00
davidnewhall2 0c0bc2ae89 remove a bunch of unused things from influx code 2019-11-30 02:47:11 -08:00
davidnewhall2 e56064e882 Add port ID to switch ports. 2019-11-30 02:15:06 -08:00
davidnewhall2 6028e962e2 jeeez, fix the build already 2019-11-30 02:05:56 -08:00
davidnewhall2 7b4cc3652c add back comment 2019-11-30 01:58:38 -08:00
davidnewhall2 69dff80638 fix build 2019-11-30 01:57:50 -08:00
davidnewhall2 009d565a18 update readme 2019-11-30 01:47:06 -08:00
davidnewhall2 5ee92da2be move pkgs, update readme, add two more metrics to influx client 2019-11-30 01:45:42 -08:00
davidnewhall2 b587a29d53 one more.. 2019-11-29 23:36:26 -08:00
davidnewhall2 2d26c9898c add two more metrics to clients 2019-11-29 23:17:26 -08:00
davidnewhall2 ac242523e2 update deps 2019-11-29 23:03:17 -08:00
davidnewhall2 3714551e3d still cleaning 2019-11-29 22:58:48 -08:00
davidnewhall2 4350afb357 still cleaning 2019-11-29 22:56:56 -08:00
davidnewhall2 c1be3e79a3 tighter for loops 2019-11-29 22:35:42 -08:00
davidnewhall2 05bc8953ef more cleanup 2019-11-29 21:16:49 -08:00
davidnewhall2 adf33d9520 Add more to the interface 2019-11-29 20:30:51 -08:00
davidnewhall2 670b5c0182 use fewer tags 2019-11-29 14:43:23 -08:00
davidnewhall2 0e1af5b543 fix comments 2019-11-29 13:55:59 -08:00
davidnewhall2 0f8abe45c3 remove all 2019-11-29 13:37:10 -08:00
davidnewhall2 113ebc5fa5 add radio label to vaps 2019-11-29 04:14:46 -08:00
davidnewhall2 d8392cd581 use the same labels on all client metrics - derp 2019-11-29 03:33:24 -08:00
davidnewhall2 4d759427f8 use the same labels on all client metrics 2019-11-29 03:30:19 -08:00
davidnewhall2 7b42953be9 fix labels on UAP 2019-11-29 02:47:20 -08:00
davidnewhall2 794bb73040 fix up client labels 2019-11-29 00:44:33 -08:00
davidnewhall2 4a304f56ed bug fix 2019-11-28 21:08:53 -08:00
davidnewhall2 49ada70c9f add an interface for testing 2019-11-28 20:43:06 -08:00
davidnewhall2 4516a26b3c cleanup 2019-11-28 20:17:37 -08:00
davidnewhall2 b7384e581a unify variable names 2019-11-28 16:09:21 -08:00
davidnewhall2 14206a6398 add UDM support 2019-11-28 16:02:13 -08:00
davidnewhall2 73d5304cc7 cosolidate code 2019-11-28 04:14:05 -08:00
davidnewhall2 de6ebba948 re-arrange a file pieces. 2019-11-28 03:54:53 -08:00
davidnewhall2 d784d72fd8 small qol update 2019-11-28 03:34:29 -08:00
davidnewhall2 9150f24041 fix a few more unit locations 2019-11-28 03:08:13 -08:00
David Newhall II 79d41e88dc Apply suggestions from code review
Co-Authored-By: Ben Kochie <superq@gmail.com>
2019-11-28 02:57:34 -08:00
davidnewhall2 38d0cdff97 fixes 2019-11-28 02:45:59 -08:00
David Newhall II fe158cd201 Update promunifi/clients.go
Co-Authored-By: Ben Kochie <superq@gmail.com>
2019-11-28 02:41:27 -08:00
davidnewhall2 3a529df30e convert speeds to bps 2019-11-28 02:40:29 -08:00
David Newhall II d2a63de535 Update promunifi/clients.go
Co-Authored-By: Ben Kochie <superq@gmail.com>
2019-11-28 02:33:40 -08:00
David Newhall II ff1d7b04d4 Update promunifi/usw.go
Co-Authored-By: Ben Kochie <superq@gmail.com>
2019-11-28 02:32:12 -08:00
davidnewhall2 e8a78a747d more fixes! 2019-11-28 02:30:39 -08:00
davidnewhall2 02999a53a1 more fixes 2019-11-28 02:25:33 -08:00
davidnewhall2 79f4cd7135 track zeros 2019-11-27 22:31:46 -08:00
davidnewhall2 adf3aed402 trim a few more zeros 2019-11-27 22:20:48 -08:00
davidnewhall2 d9c94ea5ec clean up site and clients 2019-11-27 22:04:12 -08:00
davidnewhall2 1028c036ca fix linter 2019-11-27 21:33:22 -08:00
davidnewhall2 cc522bd7d8 fix the names 2019-11-27 21:22:37 -08:00
David Newhall II ee0b1d5793 Update promunifi/clients.go
Co-Authored-By: Ben Kochie <superq@gmail.com>
2019-11-27 03:08:22 -08:00
davidnewhall2 b3b175b6b1 Update comment 2019-11-27 02:57:24 -08:00
davidnewhall2 d017445a58 update deps 2019-11-26 01:52:02 -08:00
davidnewhall2 43a20daf42 rearrange wait group 2019-11-26 01:49:22 -08:00
davidnewhall2 fa89c53ec0 add radio table stats 2019-11-25 23:55:00 -08:00
davidnewhall2 68cc7d740e add more uap stats 2019-11-25 22:34:37 -08:00
davidnewhall2 cbc6dabfb1 fix version setting 2019-11-25 13:34:49 -08:00
davidnewhall2 b9d6332a07 fix lint errors 2019-11-25 13:20:45 -08:00
davidnewhall2 ead4eb6005 shave a few more nanoseconds 2019-11-25 12:59:26 -08:00
davidnewhall2 e8db986d3c shave off some nanoseconds 2019-11-25 03:14:14 -08:00
davidnewhall2 d430d0ac66 rename client struct 2019-11-25 00:36:50 -08:00
davidnewhall2 53ca6b1b40 fix more port numbers 2019-11-25 00:19:05 -08:00
davidnewhall2 181e280df6 Updates 2019-11-25 00:17:59 -08:00
davidnewhall2 d75205361f fix bugs 2019-11-18 03:07:23 -08:00
davidnewhall2 f6aece312e missed a couple 2019-11-18 02:43:13 -08:00
davidnewhall2 14eb75dcea move tx/rx labels around 2019-11-18 02:41:20 -08:00
davidnewhall2 1a6f1248a4 rename some things 2019-11-18 02:10:16 -08:00
davidnewhall2 f83fb2980e this makes more sense 2019-11-18 01:38:34 -08:00
davidnewhall2 f4c642ad58 found a bug in site code 2019-11-18 01:26:49 -08:00
davidnewhall2 b261a936bc spread things out 2019-11-18 01:19:30 -08:00
davidnewhall2 37c8124d55 Add more usw data, start uap 2019-11-18 01:06:25 -08:00
davidnewhall2 cdcc99585f Add speed test stats to usg 2019-11-18 00:14:11 -08:00
davidnewhall2 f66d81e961 less appendage 2019-11-18 00:01:33 -08:00
davidnewhall2 5ad08cc37c add usg exports 2019-11-17 21:43:47 -08:00
davidnewhall2 fa7d96d5b3 add switch sys stats 2019-11-17 20:35:20 -08:00
davidnewhall2 65467ec4ed and some more desciprion fixes 2019-11-17 18:24:26 -08:00
davidnewhall2 b4a79988d8 a few more fixes 2019-11-17 18:21:30 -08:00
davidnewhall2 48351b72ba missed one 2019-11-17 18:13:35 -08:00
davidnewhall2 ed71308550 remove IDS, fix metric names to standards, remove timestamp 2019-11-17 18:13:02 -08:00
davidnewhall2 59f4c9cbc0 better logging 2019-11-17 17:18:37 -08:00