davidnewhall2
44c544d8e1
Add dynamic plugin support
2019-12-16 03:11:40 -08:00
davidnewhall2
0b8473657e
convert input to plugin
2019-12-15 20:56:42 -08:00
davidnewhall2
4e48247f54
fix tests
2019-12-15 13:15:00 -08:00
davidnewhall2
1def43a4be
trimming
2019-12-15 03:27:34 -08:00
davidnewhall2
072d0689d0
fix import
2019-12-15 02:57:08 -08:00
davidnewhall2
ac39d1727f
make output plugins call in to initialize
2019-12-15 02:52:43 -08:00
davidnewhall2
60d645c1a7
re-do re-auth
2019-12-14 20:01:51 -08:00
davidnewhall2
0462bb7669
remove naked return
2019-12-14 19:42:03 -08:00
davidnewhall2
510251252b
update docs
2019-12-14 19:37:41 -08:00
davidnewhall2
4f987d3225
fixes
2019-12-14 18:55:10 -08:00
davidnewhall2
062fb797de
should be good
2019-12-14 18:31:13 -08:00
davidnewhall2
e220610df7
nearly there
2019-12-14 18:10:35 -08:00
davidnewhall2
e421306b3e
Merge remote-tracking branch 'origin/master' into dn2_multi_controller
2019-12-14 16:29:45 -08:00
davidnewhall2
f4ae4fc5e5
switch to config package
2019-12-14 16:29:29 -08:00
Ben Kochie
e575ee51ec
Use the same namespace for collector and version.
...
Signed-off-by: Ben Kochie <superq@gmail.com>
2019-12-14 10:02:45 +01:00
Ben Kochie
e21c3de5a2
Add a build info metric to Prometheus
...
Include `unifi_poller_build_info` as a Prometheus metric.
Signed-off-by: Ben Kochie <superq@gmail.com>
2019-12-13 23:56:14 +01:00
davidnewhall2
b8d9ac9f88
not sure how far I got..
2019-12-13 14:17:28 -08:00
davidnewhall2
539723ece1
a litle lint
2019-12-11 02:25:26 -08:00
davidnewhall2
d47b569a49
fix nil pointer
2019-12-11 01:47:32 -08:00
davidnewhall2
8aa071935e
add lock to getunifi
2019-12-11 01:14:09 -08:00
davidnewhall2
ecd1c64004
Updates
2019-12-10 01:19:56 -08:00
davidnewhall2
65dfedcf27
got it
2019-12-10 01:01:54 -08:00
davidnewhall2
1dec643836
jeez
2019-12-10 00:56:38 -08:00
davidnewhall2
a512418a18
:(
2019-12-10 00:50:46 -08:00
davidnewhall2
39b25739be
:(
2019-12-10 00:30:27 -08:00
davidnewhall2
1f2cafad8d
pass collector errors up
2019-12-10 00:18:51 -08:00
davidnewhall2
2bb38b900e
re-arrange pieces
2019-12-09 21:23:18 -08:00
davidnewhall2
0f02bb3031
trigger docker build/tag
2019-12-09 02:15:03 -08:00
davidnewhall2
24197c1ba3
add a retry
2019-12-09 00:49:25 -08:00
davidnewhall2
314417abc5
Prevent poller from dying from an error
2019-12-09 00:45:46 -08:00
davidnewhall2
4f77e5ea36
update deps, fix channel bug for uap_vaps
2019-12-03 12:09:07 -08:00
davidnewhall2
8a67972b7d
fix this name
2019-12-03 03:14:15 -08:00
davidnewhall2
c03a08317a
rename this back
2019-12-03 02:32:19 -08:00
davidnewhall2
a7259bf3f0
add uptime back
2019-12-03 02:26:27 -08:00
davidnewhall2
9a48c771eb
fixes
2019-12-03 02:18:32 -08:00
davidnewhall2
dbe0a6bc94
comments
2019-12-03 00:59:37 -08:00
davidnewhall2
4d485769d6
move pieces into methods
2019-12-03 00:19:47 -08:00
davidnewhall2
c14ffd2305
missed
2019-12-02 20:56:08 -08:00
davidnewhall2
2ecd7419e7
merge
2019-12-02 20:50:55 -08:00
David Newhall II
f4c3f6c932
Merge branch 'master' into dn2_merge
2019-12-02 20:47:54 -08:00
David Newhall II
a2ebdac926
Merge pull request #147 from davidnewhall/superq/duplicate_metrics
...
Cleanup duplicate station metrics
2019-12-02 20:45:10 -08:00
David Newhall II
d1933d8fba
Merge branch 'master' into dn2_merge
2019-12-02 20:44:00 -08:00
davidnewhall2
d565ee9c32
combine more counters, fix cpu/mem graphs, fix udmp type
2019-12-02 20:18:55 -08:00
davidnewhall2
09dbed72f8
comment cleanup
2019-12-02 19:40:29 -08:00
davidnewhall2
04789d54e9
add more labels, ditch uptime
2019-12-02 19:28:24 -08:00
davidnewhall2
bf74687f42
fixes
2019-12-02 18:38:58 -08:00
David Newhall II
46e2631888
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
e13b9bdd86
coimbine usg stats with udm stats to add missing uplink values
2019-12-02 17:45:33 -08:00
Ben Kochie
fb3fccad6f
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
3350ba244f
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
7532029537
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
21de375c80
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
48f5ba2cf8
fix env variable usage
2019-12-02 13:11:35 -08:00
davidnewhall2
2212692d88
a couple more fixes
2019-12-01 19:04:17 -08:00
davidnewhall2
fa64b364c9
fix more ratios, combine export loops
2019-12-01 17:42:13 -08:00
David Newhall II
24d175f73b
Apply suggestions from code review
2019-12-01 17:25:49 -08:00
David Newhall II
356ce45eb6
Apply suggestions from code review
2019-12-01 17:24:35 -08:00
David Newhall II
341e21efd2
Merge branch 'master' into superq/metric_names
2019-12-01 17:18:41 -08:00
davidnewhall2
f4e55340fc
a couple others missing
2019-12-01 14:39:18 -08:00
davidnewhall2
32c1107269
add a few missing metrics
2019-12-01 14:03:27 -08:00
Ben Kochie
1df763e684
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
3b515b854e
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
1294cd8ccf
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
dc9abc8ca8
more fixes
2019-12-01 03:26:13 -08:00
davidnewhall2
9eeeaebabd
fixes
2019-12-01 00:43:57 -08:00
davidnewhall2
ec3bae40be
test fix
2019-11-30 19:30:21 -08:00
davidnewhall2
36e88dcaf4
more reusable code
2019-11-30 18:18:49 -08:00
davidnewhall2
50c1a635c6
Improve influx library
2019-11-30 16:45:22 -08:00
davidnewhall2
cef7815e2d
allow more data reduction
2019-11-30 03:42:17 -08:00
davidnewhall2
f9a4963b23
remove a bunch of unused things from influx code
2019-11-30 02:47:11 -08:00
davidnewhall2
25e5f1c4b6
Add port ID to switch ports.
2019-11-30 02:15:06 -08:00
davidnewhall2
ebe05ec3e5
move pkgs, update readme, add two more metrics to influx client
2019-11-30 01:45:42 -08:00
David Newhall II
2f42205e51
Move library.
2019-06-24 01:07:52 -07:00
David Newhall II
dc493cd360
Rename the pkg back to what it was.
2019-06-23 20:13:40 -07:00
David Newhall II
8e9055e172
Rename a few things.
2019-06-23 18:38:27 -07:00
David Newhall II
d55a00abe0
fix typo
2019-06-23 16:28:51 -07:00
David Newhall II
865ec96bf3
Add a run-once lambda mode.
2019-06-23 16:28:51 -07:00
David Newhall II
9427980ae4
text and comment updates.
2019-06-23 12:06:52 -07:00
David Newhall II
0fa9e347ca
Allow app to import example files without renaming.
2019-06-21 18:48:20 -07:00
David Newhall II
92e12774e6
Fix logging
2019-06-21 04:56:17 -07:00
David Newhall II
d0b462523b
fixes
2019-06-21 04:29:07 -07:00
David Newhall II
06b36bf7d7
Tested and working.
2019-06-21 04:22:10 -07:00
David Newhall II
ff2ff0f5d5
Change to newer toml library. Add untested support for xml, json and yaml config file formats.
2019-06-21 03:58:05 -07:00
David Newhall II
b8c0ba3c47
Add better loggers.
2019-06-19 01:29:03 -07:00
David Newhall II
f79fdb86ac
clean up dumper code.
2019-06-19 00:30:43 -07:00
David Newhall II
dfa7654a46
fix variable order
2019-06-18 23:55:04 -07:00
David Newhall II
f217c5d0a8
typo.
2019-06-18 23:38:02 -07:00
David Newhall II
21b6059885
Add max_errors and ability to exit.
2019-06-18 23:32:35 -07:00
David Newhall II
320fc64533
rename method
2019-06-14 21:34:47 -07:00
David Newhall II
dca41ce6a3
Add site metrics to influxdb.
2019-06-14 21:13:55 -07:00
David Newhall II
18e7e20941
Migrate main to pkg.
2019-06-13 01:00:20 -07:00