From c1a3f62749571b61c0835dbc557f0ba10a6001ed Mon Sep 17 00:00:00 2001 From: sberk42 Date: Fri, 28 Aug 2020 09:23:35 +0200 Subject: [PATCH] added host and dect active to metrics --- metrics.json | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/metrics.json b/metrics.json index 60e3885..41cf7c1 100644 --- a/metrics.json +++ b/metrics.json @@ -208,5 +208,50 @@ ] }, "promType": "CounterValue" + }, + { + "service": "urn:dslforum-org:service:Hosts:1", + "action": "GetGenericHostEntry", + "actionArgument": { + "name": "NewIndex", + "isIndex": true, + "providerAction": "GetHostNumberOfEntries", + "value": "HostNumberOfEntries" + }, + "result": "Active", + "promDesc": { + "fqName": "gateway_hosts_status", + "help": "is host currently active", + "varLabels": [ + "gateway", + "IPAddress", + "MACAddress", + "InterfaceType", + "HostName" + ] + }, + "promType": "GaugeValue" + }, + { + "service": "urn:dslforum-org:service:X_AVM-DE_Dect:1", + "action": "GetGenericDectEntry", + "actionArgument": { + "name": "NewIndex", + "isIndex": true, + "providerAction": "GetNumberOfDectEntries", + "value": "NumberOfEntries" + }, + "result": "Active", + "promDesc": { + "fqName": "gateway_dect_status", + "help": "is dect device currently active", + "varLabels": [ + "gateway", + "ID", + "Name", + "Model" + ] + }, + "promType": "GaugeValue" } ]