From c3f2779d234d0b0ec54ec55854743932ee6f7352 Mon Sep 17 00:00:00 2001 From: swoga Date: Fri, 14 Jul 2023 09:17:40 +0200 Subject: [PATCH] feat: add interface link related metrics --- dist/modules/interface.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/dist/modules/interface.yml b/dist/modules/interface.yml index e5ca431..97c57e2 100644 --- a/dist/modules/interface.yml +++ b/dist/modules/interface.yml @@ -37,6 +37,23 @@ modules: metric_type: gauge remap_values_re: - '^([0-9]+)000$': '${1}' + - param_name: full-duplex + param_type: bool + metric_type: gauge + - param_name: rate + param_type: int + metric_type: gauge + remap_values_re: + - '([0-9]+)Gbps': '${1}000000000' + - '([0-9]+)Mbps': '${1}000000' + - param_name: auto-negotiation + param_type: int + metric_type: gauge + remap_values: + disabled: 0 + done: 1 + failed: -1 + incomplete: -2 metrics: - param_name: rx-broadcast param_type: int