Commit Graph

9 Commits

Author SHA1 Message Date
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
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 356ce45eb6
Apply suggestions from code review 2019-12-01 17:24:35 -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 ebe05ec3e5 move pkgs, update readme, add two more metrics to influx client 2019-11-30 01:45:42 -08:00