cln-plugins/prometheus
laanwj b3c7cce8d9 prometheus: Listen on 127.0.0.1 by default
Make the prometheus plugin listen on 127.0.0.1 (localhost) by default
instead of open to the world. This closes a privacy breach in the
default configuration.
2022-04-28 12:58:42 +02:00
..
prometheus.py prometheus: Listen on 127.0.0.1 by default 2022-04-28 12:58:42 +02:00
README.md prometheus: Listen on 127.0.0.1 by default 2022-04-28 12:58:42 +02:00
requirements.txt prometheus: Update the pyln-client dependency 2021-02-08 18:23:23 +01:00
test_prometheus.py pytest: Rename start tests to reflect the plugin under test 2019-12-27 17:17:58 +01:00

Prometheus plugin for c-lightning

This plugin exposes some key metrics from c-lightning in the prometheus format so it can be scraped, plotted and alerts can be created on it. The plugin adds the following command line arguments:

  • prometheus-listen: the IP address and port to bind the HTTP server to (default: 127.0.0.1:9750)

Exposed variables include:

  • node: ID, version, ...
  • peers: whether they are connected, and how many channels are currently open
  • channels: fund allocations, spendable funds, and how many unresolved HTLCs are currently attached to the channel
  • funds: satoshis in on-chain outputs, satoshis allocated to channels and total sum (may be inaccurate during channel resolution).