From 66406b96c5e3abb64fbad2da3a4f63c3e51f54f0 Mon Sep 17 00:00:00 2001 From: sberk42 Date: Sat, 27 Mar 2021 14:02:48 +0100 Subject: [PATCH] added dslforum max bit rate to handle different results with 5.29 --- metrics.json | 91 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) diff --git a/metrics.json b/metrics.json index f9ca40a..cad1cdb 100644 --- a/metrics.json +++ b/metrics.json @@ -162,6 +162,97 @@ "promType": "GaugeValue", "cacheEntryTTL": 60 }, + { + "service": "urn:dslforum-org:service:WANCommonInterfaceConfig:1", + "action": "GetTotalPacketsReceived", + "result": "TotalPacketsReceived", + "promDesc": { + "fqName": "gateway_traffic", + "help": "traffic on gateway interface", + "varLabels": [ + "gateway" + ], + "fixedLabels": { + "direction": "Received", + "unit": "Packets", + "interface": "DSL" + } + }, + "promType": "CounterValue" + }, + { + "service": "urn:dslforum-org:service:WANCommonInterfaceConfig:1", + "action": "GetTotalPacketsSent", + "result": "TotalPacketsSent", + "promDesc": { + "fqName": "gateway_traffic", + "help": "traffic on gateway interface", + "varLabels": [ + "gateway" + ], + "fixedLabels": { + "direction": "Sent", + "unit": "Packets", + "interface": "DSL" + } + }, + "promType": "CounterValue" + }, + { + "service": "urn:dslforum-org:service:WANCommonInterfaceConfig:1", + "action": "GetCommonLinkProperties", + "result": "Layer1UpstreamMaxBitRate", + "promDesc": { + "fqName": "gateway_max_bitrate", + "help": "max bitrate on gateway interface", + "varLabels": [ + "gateway" + ], + "fixedLabels": { + "direction": "Up", + "interface": "DSL" + } + }, + "promType": "GaugeValue", + "cacheEntryTTL": 60 + }, + { + "service": "urn:dslforum-org:service:WANCommonInterfaceConfig:1", + "action": "GetCommonLinkProperties", + "result": "Layer1DownstreamMaxBitRate", + "promDesc": { + "fqName": "gateway_max_bitrate", + "help": "max bitrate on gateway interface", + "varLabels": [ + "gateway" + ], + "fixedLabels": { + "direction": "Down", + "interface": "DSL" + } + }, + "promType": "GaugeValue", + "cacheEntryTTL": 60 + }, + { + "service": "urn:dslforum-org:service:WANCommonInterfaceConfig:1", + "action": "GetCommonLinkProperties", + "result": "PhysicalLinkStatus", + "okValue": "Up", + "promDesc": { + "fqName": "gateway_connection_status", + "help": "Connection status (Connected = 1)", + "varLabels": [ + "gateway" + ], + "fixedLabels": { + "connection": "Physical Link", + "interface": "DSL" + } + }, + "promType": "GaugeValue", + "cacheEntryTTL": 60 + }, { "service": "urn:schemas-upnp-org:service:WANIPConnection:1", "action": "GetStatusInfo",