Commit Graph

40 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
davidnewhall2 d28ecfe988 fix env variable usage 2019-12-02 13:11:35 -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 5ee92da2be move pkgs, update readme, add two more metrics to influx client 2019-11-30 01:45:42 -08:00
David Newhall II b6d10b4b70 Move library. 2019-06-24 01:07:52 -07:00
David Newhall II 06c179d965 Rename the pkg back to what it was. 2019-06-23 20:13:40 -07:00
David Newhall II a8d5bd2c4e Rename a few things. 2019-06-23 18:38:27 -07:00
David Newhall II d4988682d8 fix typo 2019-06-23 16:28:51 -07:00
David Newhall II c326984f66 Add a run-once lambda mode. 2019-06-23 16:28:51 -07:00
David Newhall II 18493af24c text and comment updates. 2019-06-23 12:06:52 -07:00
David Newhall II 5448f2b90e Allow app to import example files without renaming. 2019-06-21 18:48:20 -07:00
David Newhall II 2ddb088004 Fix logging 2019-06-21 04:56:17 -07:00
David Newhall II eaf09c4483 fixes 2019-06-21 04:29:07 -07:00
David Newhall II 0675c90819 Tested and working. 2019-06-21 04:22:10 -07:00
David Newhall II 645bbdb55c 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 3563ac0a2e Add better loggers. 2019-06-19 01:29:03 -07:00
David Newhall II 0f621bedbf clean up dumper code. 2019-06-19 00:30:43 -07:00
David Newhall II 37b7385431 fix variable order 2019-06-18 23:55:04 -07:00
David Newhall II 6794d176a5 typo. 2019-06-18 23:38:02 -07:00
David Newhall II 913565c548 Add max_errors and ability to exit. 2019-06-18 23:32:35 -07:00
David Newhall II 5a2eb8c415 rename method 2019-06-14 21:34:47 -07:00
David Newhall II f267965a0e Add site metrics to influxdb. 2019-06-14 21:13:55 -07:00
David Newhall II 84df3cc118 Migrate main to pkg. 2019-06-13 01:00:20 -07:00