From bd48a15b00ccb74f025df3a659bb1f76468bec59 Mon Sep 17 00:00:00 2001 From: Rob Lee Date: Mon, 6 Apr 2020 23:23:07 +0100 Subject: [PATCH] Added comments --- huwawei_lte_exporter | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/huwawei_lte_exporter b/huwawei_lte_exporter index 840a13d..de85f36 100755 --- a/huwawei_lte_exporter +++ b/huwawei_lte_exporter @@ -40,24 +40,24 @@ def prom_exporter(): response=[] # Band - response.append('HELP band The signal band the LTE connection is using') - response.append('TYPE band gauge') + response.append('#HELP band The signal band the LTE connection is using') + response.append('#TYPE band gauge') response.append('band{'+dev+'} '+signal.get('band')) # rsrp - response.append('HELP rsrp The average power received from a single Reference signal, and Its typical range is around -44dbm (good) to -140dbm(bad)') - response.append('TYPE rsrp gauge') + response.append('#HELP rsrp The average power received from a single Reference signal, and Its typical range is around -44dbm (good) to -140dbm(bad)') + response.append('#TYPE rsrp gauge') response.append('rsrp{'+devband+'} '+signal.get('rsrp')) # rsrq - response.append('HELP rsrq Indicates quality of the received signal, and its range is typically -19.5dB(bad) to -3dB (good)') - response.append('TYPE rsrq gauge') + response.append('#HELP rsrq Indicates quality of the received signal, and its range is typically -19.5dB(bad) to -3dB (good)') + response.append('#TYPE rsrq gauge') response.append('rsrq{'+devband+'} '+signal.get('rsrq')) # rssi - response.append('HELP rssi Represents the entire received power including the wanted power from the serving cell as well as all co-channel power and other sources of noise in dBm') - response.append('TYPE rssi gauge') + response.append('#HELP rssi Represents the entire received power including the wanted power from the serving cell as well as all co-channel power and other sources of noise in dBm') + response.append('#TYPE rssi gauge') response.append('rssi{'+devband+'} '+signal.get('rssi')) # sinr - response.append('HELP sinr The signal-to-noise ratio of the given signal in dB') - response.append('TYPE sinr gauge') + response.append('#HELP sinr The signal-to-noise ratio of the given signal in dB') + response.append('#TYPE sinr gauge') response.append('rsrq{'+devband+'} '+signal.get('sinr')) s='\n' return s.join(response)