From f930d74113cc16a5da9415c82b5432946f2bd148 Mon Sep 17 00:00:00 2001 From: sberk42 Date: Sat, 20 Jun 2020 16:05:24 +0200 Subject: [PATCH] added some more metrics --- metrics.json | 342 +++++++++++++++++++++++++++++++-------------------- 1 file changed, 210 insertions(+), 132 deletions(-) diff --git a/metrics.json b/metrics.json index 54c76b4..60e3885 100644 --- a/metrics.json +++ b/metrics.json @@ -1,134 +1,212 @@ [ - { - "service": "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1", - "action": "GetTotalPacketsReceived", - "result": "TotalPacketsReceived", - "promDesc": { - "fqName": "gateway_wan_packets_received", - "help": "packets received on gateway WAN interface", - "varLabels": [ - "gateway" - ] - }, - "promType": "CounterValue" - }, - { - "service": "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1", - "action": "GetTotalPacketsSent", - "result": "TotalPacketsSent", - "promDesc": { - "fqName": "gateway_wan_packets_sent", - "help": "packets sent on gateway WAN interface", - "varLabels": [ - "gateway" - ] - }, - "promType": "CounterValue" - }, - { - "service": "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1", - "action": "GetAddonInfos", - "result": "TotalBytesReceived", - "promDesc": { - "fqName": "gateway_wan_bytes_received", - "help": "bytes received on gateway WAN interface", - "varLabels": [ - "gateway" - ] - }, - "promType": "CounterValue" - }, - { - "service": "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1", - "action": "GetAddonInfos", - "result": "TotalBytesSent", - "promDesc": { - "fqName": "gateway_wan_bytes_sent", - "help": "bytes sent on gateway WAN interface", - "varLabels": [ - "gateway" - ] - }, - "promType": "CounterValue" - }, - { - "service": "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1", - "action": "GetCommonLinkProperties", - "result": "Layer1UpstreamMaxBitRate", - "promDesc": { - "fqName": "gateway_wan_layer1_upstream_max_bitrate", - "help": "Layer1 upstream max bitrate", - "varLabels": [ - "gateway" - ] - }, - "promType": "GaugeValue" - }, - { - "service": "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1", - "action": "GetCommonLinkProperties", - "result": "Layer1DownstreamMaxBitRate", - "promDesc": { - "fqName": "gateway_wan_layer1_downstream_max_bitrate", - "help": "Layer1 downstream max bitrate", - "varLabels": [ - "gateway" - ] - }, - "promType": "GaugeValue" - }, - { - "service": "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1", - "action": "GetCommonLinkProperties", - "result": "PhysicalLinkStatus", - "okValue": "Up", - "promDesc": { - "fqName": "gateway_wan_layer1_link_status", - "help": "Status of physical link (Up = 1)", - "varLabels": [ - "gateway" - ] - }, - "promType": "GaugeValue" - }, - { - "service": "urn:schemas-upnp-org:service:WANIPConnection:1", - "action": "GetStatusInfo", - "result": "ConnectionStatus", - "okValue": "Connected", - "promDesc": { - "fqName": "gateway_wan_connection_status", - "help": "WAN connection status (Connected = 1)", - "varLabels": [ - "gateway" - ] - }, - "promType": "GaugeValue" - }, - { - "service": "urn:schemas-upnp-org:service:WANIPConnection:1", - "action": "GetStatusInfo", - "result": "Uptime", - "promDesc": { - "fqName": "gateway_wan_connection_uptime_seconds", - "help": "WAN connection uptime", - "varLabels": [ - "gateway" - ] - }, - "promType": "GaugeValue" - }, - { - "service": "urn:dslforum-org:service:WLANConfiguration:1", - "action": "GetTotalAssociations", - "result": "TotalAssociations", - "promDesc": { - "fqName": "gateway_wlan_current_connections", - "help": "current WLAN connections", - "varLabels": [ - "gateway" - ] - }, - "promType": "GaugeValue" - } + { + "service": "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1", + "action": "GetTotalPacketsReceived", + "result": "TotalPacketsReceived", + "promDesc": { + "fqName": "gateway_wan_packets_received", + "help": "packets received on gateway WAN interface", + "varLabels": [ + "gateway" + ] + }, + "promType": "CounterValue" + }, + { + "service": "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1", + "action": "GetTotalPacketsSent", + "result": "TotalPacketsSent", + "promDesc": { + "fqName": "gateway_wan_packets_sent", + "help": "packets sent on gateway WAN interface", + "varLabels": [ + "gateway" + ] + }, + "promType": "CounterValue" + }, + { + "service": "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1", + "action": "GetAddonInfos", + "result": "TotalBytesReceived", + "promDesc": { + "fqName": "gateway_wan_bytes_received", + "help": "bytes received on gateway WAN interface", + "varLabels": [ + "gateway" + ] + }, + "promType": "CounterValue" + }, + { + "service": "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1", + "action": "GetAddonInfos", + "result": "TotalBytesSent", + "promDesc": { + "fqName": "gateway_wan_bytes_sent", + "help": "bytes sent on gateway WAN interface", + "varLabels": [ + "gateway" + ] + }, + "promType": "CounterValue" + }, + { + "service": "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1", + "action": "GetAddonInfos", + "result": "ByteSendRate", + "promDesc": { + "fqName": "gateway_wan_bytes_send_rate", + "help": "byte send rate on gateway WAN interface", + "varLabels": [ + "gateway" + ] + }, + "promType": "GaugeValue" + }, + { + "service": "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1", + "action": "GetAddonInfos", + "result": "ByteReceiveRate", + "promDesc": { + "fqName": "gateway_wan_bytes_receive_rate", + "help": "byte receive rate on gateway WAN interface", + "varLabels": [ + "gateway" + ] + }, + "promType": "GaugeValue" + }, + { + "service": "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1", + "action": "GetCommonLinkProperties", + "result": "Layer1UpstreamMaxBitRate", + "promDesc": { + "fqName": "gateway_wan_layer1_upstream_max_bitrate", + "help": "Layer1 upstream max bitrate", + "varLabels": [ + "gateway" + ] + }, + "promType": "GaugeValue" + }, + { + "service": "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1", + "action": "GetCommonLinkProperties", + "result": "Layer1DownstreamMaxBitRate", + "promDesc": { + "fqName": "gateway_wan_layer1_downstream_max_bitrate", + "help": "Layer1 downstream max bitrate", + "varLabels": [ + "gateway" + ] + }, + "promType": "GaugeValue" + }, + { + "service": "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1", + "action": "GetCommonLinkProperties", + "result": "PhysicalLinkStatus", + "okValue": "Up", + "promDesc": { + "fqName": "gateway_wan_layer1_link_status", + "help": "Status of physical link (Up = 1)", + "varLabels": [ + "gateway" + ] + }, + "promType": "GaugeValue" + }, + { + "service": "urn:schemas-upnp-org:service:WANIPConnection:1", + "action": "GetStatusInfo", + "result": "ConnectionStatus", + "okValue": "Connected", + "promDesc": { + "fqName": "gateway_wan_connection_status", + "help": "WAN connection status (Connected = 1)", + "varLabels": [ + "gateway" + ] + }, + "promType": "GaugeValue" + }, + { + "service": "urn:schemas-upnp-org:service:WANIPConnection:1", + "action": "GetStatusInfo", + "result": "Uptime", + "promDesc": { + "fqName": "gateway_wan_connection_uptime_seconds", + "help": "WAN connection uptime", + "varLabels": [ + "gateway" + ] + }, + "promType": "GaugeValue" + }, + { + "service": "urn:dslforum-org:service:WLANConfiguration:1", + "action": "GetTotalAssociations", + "result": "TotalAssociations", + "promDesc": { + "fqName": "gateway_wlan_current_connections", + "help": "current WLAN connections", + "varLabels": [ + "gateway" + ] + }, + "promType": "GaugeValue" + }, + { + "service": "urn:dslforum-org:service:WLANConfiguration:2", + "action": "GetTotalAssociations", + "result": "TotalAssociations", + "promDesc": { + "fqName": "gateway_wlan2_current_connections", + "help": "current WLAN2 connections", + "varLabels": [ + "gateway" + ] + }, + "promType": "GaugeValue" + }, + { + "service": "urn:dslforum-org:service:DeviceInfo:1", + "action": "GetInfo", + "result": "UpTime", + "promDesc": { + "fqName": "gateway_uptime_seconds", + "help": "gateway uptime", + "varLabels": [ + "gateway" + ] + }, + "promType": "GaugeValue" + }, + { + "service": "urn:dslforum-org:service:LANEthernetInterfaceConfig:1", + "action": "GetStatistics", + "result": "Stats.BytesSent", + "promDesc": { + "fqName": "gateway_lan_bytes_sent", + "help": "bytes sent on gateway LAN interface", + "varLabels": [ + "gateway" + ] + }, + "promType": "CounterValue" + }, + { + "service": "urn:dslforum-org:service:LANEthernetInterfaceConfig:1", + "action": "GetStatistics", + "result": "Stats.BytesReceived", + "promDesc": { + "fqName": "gateway_lan_bytes_received", + "help": "bytes received on gateway LAN interface", + "varLabels": [ + "gateway" + ] + }, + "promType": "CounterValue" + } ]