diff --git a/prometheus/prometheus.py b/prometheus/prometheus.py index 1ca68db..b5789ba 100755 --- a/prometheus/prometheus.py +++ b/prometheus/prometheus.py @@ -25,6 +25,13 @@ class NodeCollector(BaseLnCollector): node_info_fam.add_metric(info_labels, info_labels) yield node_info_fam + blockheight = info['blockheight'] + yield GaugeMetricFamily( + 'lightning_node_blockheight', + "Current Bitcoin blockheight on this node.", + value=blockheight, + ) + class FundsCollector(BaseLnCollector): def collect(self):