diff --git a/prometheus/prometheus.py b/prometheus/prometheus.py index 0027a6b..f7e5031 100755 --- a/prometheus/prometheus.py +++ b/prometheus/prometheus.py @@ -162,7 +162,7 @@ class ChannelsCollector(BaseLnCollector): peers = self.rpc.listpeers()['peers'] for p in peers: for c in p['channels']: - labels = [p['id'], c['channel_id']] + labels = [p['id'], c.get('short_channel_id', c.get('channel_id'))] balance_gauge.add_metric(labels, c['to_us_msat'].to_satoshi()) spendable_gauge.add_metric(labels, c['spendable_msat'].to_satoshi())