cln-plugins/prometheus
Antoine Poinsot 2d2fa72ce6 prometheus: give short channel id for scid fiels, not long one
Also, if the channel isn't confirmed yet (no short_channel_id field),
    give the long channel id.

Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
2020-06-05 17:54:28 +02:00
..
prometheus.py prometheus: give short channel id for scid fiels, not long one 2020-06-05 17:54:28 +02:00
README.md prometheus: Add a prometheus plugin exposing channel and peer stats 2019-02-26 18:43:51 +01:00
requirements.txt Update to pyln-client 2019-12-27 17:17:58 +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: 0.0.0.0:9900)

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).