Added comments
This commit is contained in:
parent
3de9e7f556
commit
bd48a15b00
@ -40,24 +40,24 @@ def prom_exporter():
|
|||||||
|
|
||||||
response=[]
|
response=[]
|
||||||
# Band
|
# Band
|
||||||
response.append('HELP band The signal band the LTE connection is using')
|
response.append('#HELP band The signal band the LTE connection is using')
|
||||||
response.append('TYPE band gauge')
|
response.append('#TYPE band gauge')
|
||||||
response.append('band{'+dev+'} '+signal.get('band'))
|
response.append('band{'+dev+'} '+signal.get('band'))
|
||||||
# rsrp
|
# 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('#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('#TYPE rsrp gauge')
|
||||||
response.append('rsrp{'+devband+'} '+signal.get('rsrp'))
|
response.append('rsrp{'+devband+'} '+signal.get('rsrp'))
|
||||||
# rsrq
|
# rsrq
|
||||||
response.append('HELP rsrq Indicates quality of the received signal, and its range is typically -19.5dB(bad) to -3dB (good)')
|
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('#TYPE rsrq gauge')
|
||||||
response.append('rsrq{'+devband+'} '+signal.get('rsrq'))
|
response.append('rsrq{'+devband+'} '+signal.get('rsrq'))
|
||||||
# rssi
|
# 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('#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('#TYPE rssi gauge')
|
||||||
response.append('rssi{'+devband+'} '+signal.get('rssi'))
|
response.append('rssi{'+devband+'} '+signal.get('rssi'))
|
||||||
# sinr
|
# sinr
|
||||||
response.append('HELP sinr The signal-to-noise ratio of the given signal in dB')
|
response.append('#HELP sinr The signal-to-noise ratio of the given signal in dB')
|
||||||
response.append('TYPE sinr gauge')
|
response.append('#TYPE sinr gauge')
|
||||||
response.append('rsrq{'+devband+'} '+signal.get('sinr'))
|
response.append('rsrq{'+devband+'} '+signal.get('sinr'))
|
||||||
s='\n'
|
s='\n'
|
||||||
return s.join(response)
|
return s.join(response)
|
||||||
|
Reference in New Issue
Block a user