Browse Source

cleaned up metrics to use labels

go-modules
sberk42 4 years ago
parent
commit
d69754c709
  1. 201
      metrics.json

201
metrics.json

@ -4,79 +4,88 @@
"action": "GetTotalPacketsReceived",
"result": "TotalPacketsReceived",
"promDesc": {
"fqName": "gateway_wan_traffic",
"help": "traffic on gateway WAN interface",
"fqName": "gateway_raffic",
"help": "traffic on gateway interface",
"varLabels": [
"gateway"
],
"fixedLabels": {
"direction": "Received",
"unit": "Packets"
"unit": "Packets",
"interface": "WAN"
}
},
"promType": "GaugeValue"
"promType": "CounterValue"
},
{
"service": "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1",
"action": "GetTotalPacketsSent",
"result": "TotalPacketsSent",
"promDesc": {
"fqName": "gateway_wan_traffic",
"help": "traffic on gateway WAN interface",
"fqName": "gateway_traffic",
"help": "traffic on gateway interface",
"varLabels": [
"gateway"
],
"fixedLabels": {
"direction": "Sent",
"unit": "Packets"
"unit": "Packets",
"interface": "WAN"
}
},
"promType": "GaugeValue"
"promType": "CounterValue"
},
{
"service": "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1",
"action": "GetAddonInfos",
"result": "TotalBytesReceived",
"promDesc": {
"fqName": "gateway_wan_traffic",
"help": "traffic on gateway WAN interface",
"fqName": "gateway_traffic",
"help": "traffic on gateway interface",
"varLabels": [
"gateway"
],
"fixedLabels": {
"direction": "Received",
"unit": "Bytes"
"unit": "Bytes",
"interface": "WAN"
}
},
"promType": "GaugeValue"
"promType": "CounterValue"
},
{
"service": "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1",
"action": "GetAddonInfos",
"result": "TotalBytesSent",
"promDesc": {
"fqName": "gateway_wan_traffic",
"help": "traffic on gateway WAN interface",
"fqName": "gateway_traffic",
"help": "traffic on gateway interface",
"varLabels": [
"gateway"
],
"fixedLabels": {
"direction": "Sent",
"unit": "Bytes"
"unit": "Bytes",
"interface": "WAN"
}
},
"promType": "GaugeValue"
"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",
"fqName": "gateway_traffic_rate",
"help": "traffic rate on gateway interface",
"varLabels": [
"gateway"
]
],
"fixedLabels": {
"direction": "Sent",
"unit": "Bytes",
"interface": "WAN"
}
},
"promType": "GaugeValue"
},
@ -85,11 +94,16 @@
"action": "GetAddonInfos",
"result": "ByteReceiveRate",
"promDesc": {
"fqName": "gateway_wan_bytes_receive_rate",
"help": "byte receive rate on gateway WAN interface",
"fqName": "gateway_traffic_rate",
"help": "traffic rate on gateway interface",
"varLabels": [
"gateway"
]
],
"fixedLabels": {
"direction": "Received",
"unit": "Bytes",
"interface": "WAN"
}
},
"promType": "GaugeValue"
},
@ -98,11 +112,15 @@
"action": "GetCommonLinkProperties",
"result": "Layer1UpstreamMaxBitRate",
"promDesc": {
"fqName": "gateway_wan_layer1_upstream_max_bitrate",
"help": "Layer1 upstream max bitrate",
"fqName": "gateway_max_bitrate",
"help": "max bitrate on gateway interface",
"varLabels": [
"gateway"
]
],
"fixedLabels": {
"direction": "Up",
"interface": "WAN"
}
},
"promType": "GaugeValue",
"cacheEntryTTL": 60
@ -112,11 +130,15 @@
"action": "GetCommonLinkProperties",
"result": "Layer1DownstreamMaxBitRate",
"promDesc": {
"fqName": "gateway_wan_layer1_downstream_max_bitrate",
"help": "Layer1 downstream max bitrate",
"fqName": "gateway_max_bitrate",
"help": "max bitrate on gateway interface",
"varLabels": [
"gateway"
]
],
"fixedLabels": {
"direction": "Down",
"interface": "WAN"
}
},
"promType": "GaugeValue",
"cacheEntryTTL": 60
@ -127,11 +149,15 @@
"result": "PhysicalLinkStatus",
"okValue": "Up",
"promDesc": {
"fqName": "gateway_wan_layer1_link_status",
"help": "Status of physical link (Up = 1)",
"fqName": "gateway_connection_status",
"help": "Connection status (Connected = 1)",
"varLabels": [
"gateway"
]
],
"fixedLabels": {
"connection": "Physical Link",
"interface": "WAN"
}
},
"promType": "GaugeValue",
"cacheEntryTTL": 60
@ -142,11 +168,15 @@
"result": "ConnectionStatus",
"okValue": "Connected",
"promDesc": {
"fqName": "gateway_wan_connection_status",
"help": "WAN connection status (Connected = 1)",
"fqName": "gateway_connection_status",
"help": "Connection status (Connected = 1)",
"varLabels": [
"gateway"
]
],
"fixedLabels": {
"connection": "IP",
"interface": "WAN"
}
},
"promType": "GaugeValue",
"cacheEntryTTL": 60
@ -156,11 +186,15 @@
"action": "GetStatusInfo",
"result": "Uptime",
"promDesc": {
"fqName": "gateway_wan_connection_uptime_seconds",
"help": "WAN connection uptime",
"fqName": "gateway_connection_uptime_seconds",
"help": "Connection uptime",
"varLabels": [
"gateway"
]
],
"fixedLabels": {
"connection": "IP",
"interface": "WAN"
}
},
"promType": "GaugeValue"
},
@ -170,14 +204,18 @@
"result": "ConnectionStatus",
"okValue": "Connected",
"promDesc": {
"fqName": "gateway_ppp_connection_status",
"help": "WAN PPP connection status (Connected = 1)",
"fqName": "gateway_wan_connection_status",
"help": "WAN Connection status (Connected = 1)",
"varLabels": [
"gateway",
"ConnectionType",
"ExternalIPAddress",
"MACAddress"
]
],
"fixedLabels": {
"connection": "PPP",
"interface": "WAN"
}
},
"promType": "GaugeValue"
},
@ -186,14 +224,15 @@
"action": "GetInfo",
"result": "Uptime",
"promDesc": {
"fqName": "gateway_ppp_connection_uptime_seconds",
"help": "WAN PPP connection uptime",
"fqName": "gateway_connection_uptime_seconds",
"help": "Connection uptime",
"varLabels": [
"gateway",
"ConnectionType",
"ExternalIPAddress",
"MACAddress"
]
"gateway"
],
"fixedLabels": {
"connection": "PPP",
"interface": "WAN"
}
},
"promType": "GaugeValue"
},
@ -202,14 +241,16 @@
"action": "GetInfo",
"result": "UpstreamMaxBitRate",
"promDesc": {
"fqName": "gateway_ppp_connection_upstream_maxbitrate",
"help": "WAN PPP connection upstream max bitrate",
"fqName": "gateway_connection_max_bitrate",
"help": "connection max bitrate",
"varLabels": [
"gateway",
"ConnectionType",
"ExternalIPAddress",
"MACAddress"
]
"gateway"
],
"fixedLabels": {
"direction": "Up",
"connection": "PPP",
"interface": "WAN"
}
},
"promType": "GaugeValue"
},
@ -218,14 +259,16 @@
"action": "GetInfo",
"result": "DownstreamMaxBitRate",
"promDesc": {
"fqName": "gateway_ppp_connection_downstream_maxbitrate",
"help": "WAN PPP connection downstream max bitrate",
"fqName": "gateway_connection_max_bitrate",
"help": "connection max bitrate",
"varLabels": [
"gateway",
"ConnectionType",
"ExternalIPAddress",
"MACAddress"
]
"gateway"
],
"fixedLabels": {
"direction": "Down",
"connection": "PPP",
"interface": "WAN"
}
},
"promType": "GaugeValue"
},
@ -238,7 +281,10 @@
"help": "current WLAN connections",
"varLabels": [
"gateway"
]
],
"fixedLabels": {
"wlan": "2.4 GHz"
}
},
"promType": "GaugeValue"
},
@ -247,11 +293,14 @@
"action": "GetTotalAssociations",
"result": "TotalAssociations",
"promDesc": {
"fqName": "gateway_wlan2_current_connections",
"help": "current WLAN2 connections",
"fqName": "gateway_wlan_current_connections",
"help": "current WLAN connections",
"varLabels": [
"gateway"
]
],
"fixedLabels": {
"wlan": "5 Ghz"
}
},
"promType": "GaugeValue"
},
@ -292,11 +341,16 @@
"action": "GetStatistics",
"result": "Stats.BytesSent",
"promDesc": {
"fqName": "gateway_lan_bytes_sent",
"help": "bytes sent on gateway LAN interface",
"fqName": "gateway_traffic",
"help": "traffic on gateway interface",
"varLabels": [
"gateway"
]
],
"fixedLabels": {
"direction": "Sent",
"unit": "Bytes",
"interface": "LAN"
}
},
"promType": "CounterValue"
},
@ -305,11 +359,16 @@
"action": "GetStatistics",
"result": "Stats.BytesReceived",
"promDesc": {
"fqName": "gateway_lan_bytes_received",
"help": "bytes received on gateway LAN interface",
"fqName": "gateway_traffic",
"help": "traffic on gateway interface",
"varLabels": [
"gateway"
]
],
"fixedLabels": {
"direction": "Received",
"unit": "Bytes",
"interface": "LAN"
}
},
"promType": "CounterValue"
},

Loading…
Cancel
Save