mirror of
https://github.com/aljazceru/plugins.git
synced 2025-12-22 15:44:20 +01:00
prometheus: small fixups
Correct comment indentation and don't mix up scid with alias Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
This commit is contained in:
committed by
Christian Decker
parent
03e599678b
commit
8e7df25910
@@ -167,7 +167,7 @@ class ChannelsCollector(BaseLnCollector):
|
|||||||
if len(node) != 0 and 'alias' in node[0]:
|
if len(node) != 0 and 'alias' in node[0]:
|
||||||
alias = node[0]['alias']
|
alias = node[0]['alias']
|
||||||
else:
|
else:
|
||||||
alias = c.get('short_channel_id', c.get('channel_id'))
|
alias = 'unknown'
|
||||||
|
|
||||||
labels = [p['id'], c.get('short_channel_id', c.get('channel_id')), alias]
|
labels = [p['id'], c.get('short_channel_id', c.get('channel_id')), alias]
|
||||||
balance_gauge.add_metric(labels, c['to_us_msat'].to_satoshi())
|
balance_gauge.add_metric(labels, c['to_us_msat'].to_satoshi())
|
||||||
|
|||||||
Reference in New Issue
Block a user