Browse Source

cleaned up metrics to use labels

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

241
metrics.json

@ -4,79 +4,88 @@
"action": "GetTotalPacketsReceived", "action": "GetTotalPacketsReceived",
"result": "TotalPacketsReceived", "result": "TotalPacketsReceived",
"promDesc": { "promDesc": {
"fqName": "gateway_wan_traffic", "fqName": "gateway_raffic",
"help": "traffic on gateway WAN interface", "help": "traffic on gateway interface",
"varLabels": [ "varLabels": [
"gateway" "gateway"
], ],
"fixedLabels": { "fixedLabels": {
"direction" : "Received", "direction": "Received",
"unit": "Packets" "unit": "Packets",
} "interface": "WAN"
}
}, },
"promType": "GaugeValue" "promType": "CounterValue"
}, },
{ {
"service": "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1", "service": "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1",
"action": "GetTotalPacketsSent", "action": "GetTotalPacketsSent",
"result": "TotalPacketsSent", "result": "TotalPacketsSent",
"promDesc": { "promDesc": {
"fqName": "gateway_wan_traffic", "fqName": "gateway_traffic",
"help": "traffic on gateway WAN interface", "help": "traffic on gateway interface",
"varLabels": [ "varLabels": [
"gateway" "gateway"
], ],
"fixedLabels": { "fixedLabels": {
"direction" : "Sent", "direction": "Sent",
"unit": "Packets" "unit": "Packets",
} "interface": "WAN"
}
}, },
"promType": "GaugeValue" "promType": "CounterValue"
}, },
{ {
"service": "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1", "service": "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1",
"action": "GetAddonInfos", "action": "GetAddonInfos",
"result": "TotalBytesReceived", "result": "TotalBytesReceived",
"promDesc": { "promDesc": {
"fqName": "gateway_wan_traffic", "fqName": "gateway_traffic",
"help": "traffic on gateway WAN interface", "help": "traffic on gateway interface",
"varLabels": [ "varLabels": [
"gateway" "gateway"
], ],
"fixedLabels": { "fixedLabels": {
"direction" : "Received", "direction": "Received",
"unit": "Bytes" "unit": "Bytes",
} "interface": "WAN"
}
}, },
"promType": "GaugeValue" "promType": "CounterValue"
}, },
{ {
"service": "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1", "service": "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1",
"action": "GetAddonInfos", "action": "GetAddonInfos",
"result": "TotalBytesSent", "result": "TotalBytesSent",
"promDesc": { "promDesc": {
"fqName": "gateway_wan_traffic", "fqName": "gateway_traffic",
"help": "traffic on gateway WAN interface", "help": "traffic on gateway interface",
"varLabels": [ "varLabels": [
"gateway" "gateway"
], ],
"fixedLabels": { "fixedLabels": {
"direction" : "Sent", "direction": "Sent",
"unit": "Bytes" "unit": "Bytes",
} "interface": "WAN"
}
}, },
"promType": "GaugeValue" "promType": "CounterValue"
}, },
{ {
"service": "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1", "service": "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1",
"action": "GetAddonInfos", "action": "GetAddonInfos",
"result": "ByteSendRate", "result": "ByteSendRate",
"promDesc": { "promDesc": {
"fqName": "gateway_wan_bytes_send_rate", "fqName": "gateway_traffic_rate",
"help": "byte send rate on gateway WAN interface", "help": "traffic rate on gateway interface",
"varLabels": [ "varLabels": [
"gateway" "gateway"
] ],
"fixedLabels": {
"direction": "Sent",
"unit": "Bytes",
"interface": "WAN"
}
}, },
"promType": "GaugeValue" "promType": "GaugeValue"
}, },
@ -85,11 +94,16 @@
"action": "GetAddonInfos", "action": "GetAddonInfos",
"result": "ByteReceiveRate", "result": "ByteReceiveRate",
"promDesc": { "promDesc": {
"fqName": "gateway_wan_bytes_receive_rate", "fqName": "gateway_traffic_rate",
"help": "byte receive rate on gateway WAN interface", "help": "traffic rate on gateway interface",
"varLabels": [ "varLabels": [
"gateway" "gateway"
] ],
"fixedLabels": {
"direction": "Received",
"unit": "Bytes",
"interface": "WAN"
}
}, },
"promType": "GaugeValue" "promType": "GaugeValue"
}, },
@ -98,11 +112,15 @@
"action": "GetCommonLinkProperties", "action": "GetCommonLinkProperties",
"result": "Layer1UpstreamMaxBitRate", "result": "Layer1UpstreamMaxBitRate",
"promDesc": { "promDesc": {
"fqName": "gateway_wan_layer1_upstream_max_bitrate", "fqName": "gateway_max_bitrate",
"help": "Layer1 upstream max bitrate", "help": "max bitrate on gateway interface",
"varLabels": [ "varLabels": [
"gateway" "gateway"
] ],
"fixedLabels": {
"direction": "Up",
"interface": "WAN"
}
}, },
"promType": "GaugeValue", "promType": "GaugeValue",
"cacheEntryTTL": 60 "cacheEntryTTL": 60
@ -112,11 +130,15 @@
"action": "GetCommonLinkProperties", "action": "GetCommonLinkProperties",
"result": "Layer1DownstreamMaxBitRate", "result": "Layer1DownstreamMaxBitRate",
"promDesc": { "promDesc": {
"fqName": "gateway_wan_layer1_downstream_max_bitrate", "fqName": "gateway_max_bitrate",
"help": "Layer1 downstream max bitrate", "help": "max bitrate on gateway interface",
"varLabels": [ "varLabels": [
"gateway" "gateway"
] ],
"fixedLabels": {
"direction": "Down",
"interface": "WAN"
}
}, },
"promType": "GaugeValue", "promType": "GaugeValue",
"cacheEntryTTL": 60 "cacheEntryTTL": 60
@ -127,14 +149,18 @@
"result": "PhysicalLinkStatus", "result": "PhysicalLinkStatus",
"okValue": "Up", "okValue": "Up",
"promDesc": { "promDesc": {
"fqName": "gateway_wan_layer1_link_status", "fqName": "gateway_connection_status",
"help": "Status of physical link (Up = 1)", "help": "Connection status (Connected = 1)",
"varLabels": [ "varLabels": [
"gateway" "gateway"
] ],
"fixedLabels": {
"connection": "Physical Link",
"interface": "WAN"
}
}, },
"promType": "GaugeValue", "promType": "GaugeValue",
"cacheEntryTTL": 60 "cacheEntryTTL": 60
}, },
{ {
"service": "urn:schemas-upnp-org:service:WANIPConnection:1", "service": "urn:schemas-upnp-org:service:WANIPConnection:1",
@ -142,25 +168,33 @@
"result": "ConnectionStatus", "result": "ConnectionStatus",
"okValue": "Connected", "okValue": "Connected",
"promDesc": { "promDesc": {
"fqName": "gateway_wan_connection_status", "fqName": "gateway_connection_status",
"help": "WAN connection status (Connected = 1)", "help": "Connection status (Connected = 1)",
"varLabels": [ "varLabels": [
"gateway" "gateway"
] ],
"fixedLabels": {
"connection": "IP",
"interface": "WAN"
}
}, },
"promType": "GaugeValue", "promType": "GaugeValue",
"cacheEntryTTL": 60 "cacheEntryTTL": 60
}, },
{ {
"service": "urn:schemas-upnp-org:service:WANIPConnection:1", "service": "urn:schemas-upnp-org:service:WANIPConnection:1",
"action": "GetStatusInfo", "action": "GetStatusInfo",
"result": "Uptime", "result": "Uptime",
"promDesc": { "promDesc": {
"fqName": "gateway_wan_connection_uptime_seconds", "fqName": "gateway_connection_uptime_seconds",
"help": "WAN connection uptime", "help": "Connection uptime",
"varLabels": [ "varLabels": [
"gateway" "gateway"
] ],
"fixedLabels": {
"connection": "IP",
"interface": "WAN"
}
}, },
"promType": "GaugeValue" "promType": "GaugeValue"
}, },
@ -170,14 +204,18 @@
"result": "ConnectionStatus", "result": "ConnectionStatus",
"okValue": "Connected", "okValue": "Connected",
"promDesc": { "promDesc": {
"fqName": "gateway_ppp_connection_status", "fqName": "gateway_wan_connection_status",
"help": "WAN PPP connection status (Connected = 1)", "help": "WAN Connection status (Connected = 1)",
"varLabels": [ "varLabels": [
"gateway", "gateway",
"ConnectionType", "ConnectionType",
"ExternalIPAddress", "ExternalIPAddress",
"MACAddress" "MACAddress"
] ],
"fixedLabels": {
"connection": "PPP",
"interface": "WAN"
}
}, },
"promType": "GaugeValue" "promType": "GaugeValue"
}, },
@ -186,14 +224,15 @@
"action": "GetInfo", "action": "GetInfo",
"result": "Uptime", "result": "Uptime",
"promDesc": { "promDesc": {
"fqName": "gateway_ppp_connection_uptime_seconds", "fqName": "gateway_connection_uptime_seconds",
"help": "WAN PPP connection uptime", "help": "Connection uptime",
"varLabels": [ "varLabels": [
"gateway", "gateway"
"ConnectionType", ],
"ExternalIPAddress", "fixedLabels": {
"MACAddress" "connection": "PPP",
] "interface": "WAN"
}
}, },
"promType": "GaugeValue" "promType": "GaugeValue"
}, },
@ -202,14 +241,16 @@
"action": "GetInfo", "action": "GetInfo",
"result": "UpstreamMaxBitRate", "result": "UpstreamMaxBitRate",
"promDesc": { "promDesc": {
"fqName": "gateway_ppp_connection_upstream_maxbitrate", "fqName": "gateway_connection_max_bitrate",
"help": "WAN PPP connection upstream max bitrate", "help": "connection max bitrate",
"varLabels": [ "varLabels": [
"gateway", "gateway"
"ConnectionType", ],
"ExternalIPAddress", "fixedLabels": {
"MACAddress" "direction": "Up",
] "connection": "PPP",
"interface": "WAN"
}
}, },
"promType": "GaugeValue" "promType": "GaugeValue"
}, },
@ -218,14 +259,16 @@
"action": "GetInfo", "action": "GetInfo",
"result": "DownstreamMaxBitRate", "result": "DownstreamMaxBitRate",
"promDesc": { "promDesc": {
"fqName": "gateway_ppp_connection_downstream_maxbitrate", "fqName": "gateway_connection_max_bitrate",
"help": "WAN PPP connection downstream max bitrate", "help": "connection max bitrate",
"varLabels": [ "varLabels": [
"gateway", "gateway"
"ConnectionType", ],
"ExternalIPAddress", "fixedLabels": {
"MACAddress" "direction": "Down",
] "connection": "PPP",
"interface": "WAN"
}
}, },
"promType": "GaugeValue" "promType": "GaugeValue"
}, },
@ -238,7 +281,10 @@
"help": "current WLAN connections", "help": "current WLAN connections",
"varLabels": [ "varLabels": [
"gateway" "gateway"
] ],
"fixedLabels": {
"wlan": "2.4 GHz"
}
}, },
"promType": "GaugeValue" "promType": "GaugeValue"
}, },
@ -247,11 +293,14 @@
"action": "GetTotalAssociations", "action": "GetTotalAssociations",
"result": "TotalAssociations", "result": "TotalAssociations",
"promDesc": { "promDesc": {
"fqName": "gateway_wlan2_current_connections", "fqName": "gateway_wlan_current_connections",
"help": "current WLAN2 connections", "help": "current WLAN connections",
"varLabels": [ "varLabels": [
"gateway" "gateway"
] ],
"fixedLabels": {
"wlan": "5 Ghz"
}
}, },
"promType": "GaugeValue" "promType": "GaugeValue"
}, },
@ -292,11 +341,16 @@
"action": "GetStatistics", "action": "GetStatistics",
"result": "Stats.BytesSent", "result": "Stats.BytesSent",
"promDesc": { "promDesc": {
"fqName": "gateway_lan_bytes_sent", "fqName": "gateway_traffic",
"help": "bytes sent on gateway LAN interface", "help": "traffic on gateway interface",
"varLabels": [ "varLabels": [
"gateway" "gateway"
] ],
"fixedLabels": {
"direction": "Sent",
"unit": "Bytes",
"interface": "LAN"
}
}, },
"promType": "CounterValue" "promType": "CounterValue"
}, },
@ -305,22 +359,27 @@
"action": "GetStatistics", "action": "GetStatistics",
"result": "Stats.BytesReceived", "result": "Stats.BytesReceived",
"promDesc": { "promDesc": {
"fqName": "gateway_lan_bytes_received", "fqName": "gateway_traffic",
"help": "bytes received on gateway LAN interface", "help": "traffic on gateway interface",
"varLabels": [ "varLabels": [
"gateway" "gateway"
] ],
"fixedLabels": {
"direction": "Received",
"unit": "Bytes",
"interface": "LAN"
}
}, },
"promType": "CounterValue" "promType": "CounterValue"
}, },
{ {
"service": "urn:dslforum-org:service:Hosts:1", "service": "urn:dslforum-org:service:Hosts:1",
"action": "GetGenericHostEntry", "action": "GetGenericHostEntry",
"actionArgument": { "actionArgument": {
"name": "NewIndex", "name": "NewIndex",
"isIndex": true, "isIndex": true,
"providerAction": "GetHostNumberOfEntries", "providerAction": "GetHostNumberOfEntries",
"value": "HostNumberOfEntries" "value": "HostNumberOfEntries"
}, },
"result": "Active", "result": "Active",
"promDesc": { "promDesc": {
@ -340,11 +399,11 @@
{ {
"service": "urn:dslforum-org:service:X_AVM-DE_Dect:1", "service": "urn:dslforum-org:service:X_AVM-DE_Dect:1",
"action": "GetGenericDectEntry", "action": "GetGenericDectEntry",
"actionArgument": { "actionArgument": {
"name": "NewIndex", "name": "NewIndex",
"isIndex": true, "isIndex": true,
"providerAction": "GetNumberOfDectEntries", "providerAction": "GetNumberOfDectEntries",
"value": "NumberOfEntries" "value": "NumberOfEntries"
}, },
"result": "Active", "result": "Active",
"promDesc": { "promDesc": {
@ -360,4 +419,4 @@
"promType": "GaugeValue", "promType": "GaugeValue",
"cacheEntryTTL": 120 "cacheEntryTTL": 120
} }
] ]
Loading…
Cancel
Save