Commit graph

42 commits

Author SHA1 Message Date
dependabot[bot]
7a2fc705ec build(deps): bump cryptography from 48.0.1 to 50.0.0 in /prometheus
Bumps [cryptography](https://github.com/pyca/cryptography) from 48.0.1 to 50.0.0.
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/48.0.1...50.0.0)

---
updated-dependencies:
- dependency-name: cryptography
  dependency-version: 50.0.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-06 12:07:46 +02:00
dependabot[bot]
79053dcc83 build(deps): bump prometheus-client
Bumps the all-dependencies group with 1 update in the /prometheus directory: [prometheus-client](https://github.com/prometheus/client_python).


Updates `prometheus-client` from 0.25.0 to 0.26.0
- [Release notes](https://github.com/prometheus/client_python/releases)
- [Commits](https://github.com/prometheus/client_python/compare/v0.25.0...v0.26.0)

---
updated-dependencies:
- dependency-name: prometheus-client
  dependency-version: 0.26.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-03 09:55:49 +02:00
daywalker90
4281dd3c51 prometheus: add reckless manifest 2026-07-24 15:18:49 +02:00
dependabot[bot]
d45cc0b4cd build(deps-dev): bump pytest-rerunfailures
Some checks failed
Integration Tests (latest) / Test CLN=25.12, PY=3.10, BCD=31.0, EXP=1, DEP=0 (push) Has been cancelled
Integration Tests (latest) / Test CLN=25.12, PY=3.12, BCD=31.0, EXP=1, DEP=0 (push) Has been cancelled
Integration Tests (latest) / Test CLN=26.04, PY=3.10, BCD=31.0, EXP=1, DEP=0 (push) Has been cancelled
Integration Tests (latest) / Test CLN=26.04, PY=3.12, BCD=31.0, EXP=1, DEP=0 (push) Has been cancelled
Integration Tests (latest) / Test CLN=26.06.1, PY=3.10, BCD=31.0, EXP=1, DEP=0 (push) Has been cancelled
Integration Tests (latest) / Test CLN=26.06.1, PY=3.12, BCD=31.0, EXP=1, DEP=0 (push) Has been cancelled
Integration Tests (latest) / CI completion (push) Has been cancelled
Integration Tests (latest) / CI completion-1 (push) Has been cancelled
Integration Tests (latest) / CI completion-2 (push) Has been cancelled
Bumps the all-dependencies group with 1 update in the /prometheus directory: [pytest-rerunfailures](https://github.com/pytest-dev/pytest-rerunfailures).


Updates `pytest-rerunfailures` from 16.2 to 16.4
- [Changelog](https://github.com/pytest-dev/pytest-rerunfailures/blob/master/CHANGES.rst)
- [Commits](https://github.com/pytest-dev/pytest-rerunfailures/compare/16.2...16.4)

---
updated-dependencies:
- dependency-name: pytest-rerunfailures
  dependency-version: '16.3'
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: all-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-21 13:31:50 +02:00
dependabot[bot]
ec0f03560f build(deps): bump cryptography from 46.0.7 to 48.0.1 in /prometheus
Bumps [cryptography](https://github.com/pyca/cryptography) from 46.0.7 to 48.0.1.
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/46.0.7...48.0.1)

---
updated-dependencies:
- dependency-name: cryptography
  dependency-version: 48.0.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-16 14:01:27 +02:00
dependabot[bot]
c361240050 build(deps-dev): bump pytest-rerunfailures
Bumps the all-dependencies group with 1 update in the /prometheus directory: [pytest-rerunfailures](https://github.com/pytest-dev/pytest-rerunfailures).


Updates `pytest-rerunfailures` from 16.1 to 16.2
- [Changelog](https://github.com/pytest-dev/pytest-rerunfailures/blob/master/CHANGES.rst)
- [Commits](https://github.com/pytest-dev/pytest-rerunfailures/compare/16.1...16.2)

---
updated-dependencies:
- dependency-name: pytest-rerunfailures
  dependency-version: '16.2'
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: all-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-25 11:15:00 +02:00
dependabot[bot]
0daa7bdc21 build(deps): bump idna from 3.11 to 3.15 in /prometheus
Bumps [idna](https://github.com/kjd/idna) from 3.11 to 3.15.
- [Release notes](https://github.com/kjd/idna/releases)
- [Changelog](https://github.com/kjd/idna/blob/master/HISTORY.md)
- [Commits](https://github.com/kjd/idna/compare/v3.11...v3.15)

---
updated-dependencies:
- dependency-name: idna
  dependency-version: '3.15'
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-20 00:34:54 +02:00
daywalker90
410b2fdb59 prometheus: update shebang and pyproject dependencies 2026-05-12 22:52:52 +02:00
daywalker90
49b36c707e ruff: update paths and rerun format 2026-05-12 15:33:07 +02:00
dependabot[bot]
1a476ecb64 build(deps): bump urllib3 from 2.6.3 to 2.7.0 in /prometheus
Bumps [urllib3](https://github.com/urllib3/urllib3) from 2.6.3 to 2.7.0.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/2.6.3...2.7.0)

---
updated-dependencies:
- dependency-name: urllib3
  dependency-version: 2.7.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-11 22:18:11 +02:00
daywalker90
cc1f0936da prometheus: upgrade min version of python to 3.10 and pyln packages to v25.9 2026-04-20 13:46:22 +02:00
daywalker90
306cfadcc9 python plugins: add note for systemd and uv 2025-12-22 15:27:54 +01:00
daywalker90
7b85521981 prometheus: readd dependencies to pyproject for reckless 2025-12-06 10:03:48 +01:00
daywalker90
f69279eaf0 prometheus: remove poetry support 2025-12-01 15:55:59 +01:00
daywalker90
2ec1a3a982 prometheus: require python 3.9.2, add uv.lock, try fix port in use flake 2025-11-28 22:54:55 +01:00
Se7enZ
a6a40225e8 prometheus: Add PeersCollector to track raw peers from listpeers.
Tracks direct peer information about peers which don't necessarily
have a channel.

Generally reinstates changes from:
  ce078bb74e (diff-cfc589c146eeee8db6b2db1d8dc6e851722e6ea18a2d7d05ebc49b2851012de1R71-L91)
2025-10-05 16:21:50 +02:00
Se7enZ
16f68245b4 prometheus: Refactor PeerCollector to PeerChannelsCollector.
Metrics from this collector are operating exclusively on the
`listpeerchannels` RPC method, so naming it accordingly. Also,

- Removes obsolete call to `listpeers`.
- Renames the `lightning_peer_connected` metric to `lightning_peer_channel_connected`.
2025-10-05 16:21:50 +02:00
daywalker90
d6a82c9b6f prometheus: upgrade dependencies for python3.13 compatibility 2025-08-11 11:33:39 -06:00
nitramiz
041fecc0fb prometheus: Add uv support with inline deps
CI: Install uv in CLN Python package deps jobs
Update shebang to use uv run --script and add inline metadata block
Update README with both install methods
2025-07-30 13:16:59 +02:00
dependabot[bot]
e25ceb9a6e build(deps-dev): bump requests from 2.32.3 to 2.32.4 in /prometheus
Bumps [requests](https://github.com/psf/requests) from 2.32.3 to 2.32.4.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md)
- [Commits](https://github.com/psf/requests/compare/v2.32.3...v2.32.4)

---
updated-dependencies:
- dependency-name: requests
  dependency-version: 2.32.4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-17 11:33:11 +02:00
daywalker90
29ca1721c7 python: upgrade minimum python version to 3.9 2025-06-17 14:02:51 +02:00
Christian Decker
2674cb7b8f meta: Add CODEOWNERS file so maintainers get pinged automatically 2024-12-09 13:24:59 -06:00
Christian Decker
867b65bfac prometheus: Resuscitate the prometheus plugin 2024-12-09 13:24:59 -06:00
Christian Decker
c9952da1b7 prom: Reactivate the prometheus plugin 2024-12-09 13:24:59 -06:00
Chris Guida
3754a9e0f8 Demote autopilot, backup, donations, drain, helpme, historian, paytest, probe, prometheus, rebalance, and summary to the archive
drain: fix drain msats
drain: failing CI because of msats
historian: add inotify to historian deps
historian: update lockfile
2024-02-06 20:29:25 +00:00
Christian Decker
ce078bb74e prom: More msat-purge... 2023-07-20 14:12:08 +02:00
Christian Decker
a3d3388d6a prom: Fix breakage due to msat purge
Closes #450
2023-07-20 14:12:08 +02:00
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
Christian Decker
139ea7de14 prometheus: Update the pyln-client dependency
Reported-By: <@zefir01>
2021-02-08 18:23:23 +01:00
Antoine Poinsot
8e7df25910 prometheus: small fixups
Correct comment indentation and don't mix up scid with alias

Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
2020-12-14 21:01:30 +01:00
Zathrasss
5589767998 Added node alias to channel label for human readable legend in prometheus plugin 2020-12-13 15:34:23 +01:00
Christian Decker
9f3ac44a77 prometheus: Change default port to 9750 as per port-allocation
We registered port 9750 the [port allocation] list for the prometheus project,
so we should use that port :-)

Suggested-by: Martin Milata <@mmilata>

[port allocation]: https://github.com/prometheus/prometheus/wiki/Default-port-allocations
2020-08-29 14:36:03 +02:00
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
Sebastian Geisler
9a1cf235d3 Add forwarding and fee metrics 2020-05-15 16:47:29 +02:00
Sebastian Geisler
279a4e821f Avoid hyphens in label names 2020-04-30 15:37:49 +02:00
Christian Decker
c6e3b9f011 pytest: Rename start tests to reflect the plugin under test 2019-12-27 17:17:58 +01:00
darosior
e426f6738e Update to pyln-client
This updates all plugins *which already have requirements.txt* to
pyln-client from pylightning.
2019-12-27 17:17:58 +01:00
darosior
fc8ab0cd99 prometheus: basic tests 2019-12-19 14:36:20 +01:00
Stadicus
6d0df3c83b add lightningd blockheight metric
This metric is useful on initial sync, when bitcoind is already synced, but lightningd is still working through the blocks.
Comparing the two measures allows to calculate the indexing progress.
2019-05-13 21:21:36 +02:00
Henrik Jonsson
023da9c36b prometheus: Fix channel_id name and prevent crashing
With c-lightning v0.7.0, there seems to be no `short_channel_id`
key present in the input sent to the `prometheus.py` script when
it is is called via the `plugin` config value for c-lightning
when a channel is opened.

Without this change, the script throws `500 Internal Server` error
when doing `$ lightning-cli fundchannel <id> <sats>`.

A sample JSON messages passed to the plugin is:

```
{
        'state': 'CHANNELD_AWAITING_LOCKIN',
        'scratch_txid': '120ad265b66aa0c4bbb5ff50a23ca85463337fb8b58b395f3811918610686a734',
        'owner': 'lightning_channeld',
        'channel_id': 'eda784df73aa105d728a0d9fee6ff450eeeac78aa57d3218f7b0dd89b2bd20f1',
        'funding_txid': 'f120bdb2eec4b0f718327dc58cc7eaee5dd46fa19f0d8a725d10ff73df84a7ed',
        'private': False,
        'funding_allocation_msat': {
                '03584abd04d69168600ff0ff5d11723d324f2deadbeefcbb84804580e344af235e': 0,
                '03a9c46ddacd373f78b6679f9dec6adb10b3ddeadbeef2a685e09b2ce6101bc18c': 100000000
        },
        'funding_msat': {
                '03584abd04d69168600340ad5d11723d324f2deadbeefcbb84804580e344af235e': '0msat',
                '03a9c46ddacd373f78b6679f9dec6adb10b3ddeadbeef2a685e09b2ce6101bc18c': '100000000msat'
        },
        'msatoshi_to_us': 100000000,
        'to_us_msat': '100000000msat',
        'msatoshi_to_us_min': 100000000,
        'min_to_us_msat': '100000000msat',
        'msatoshi_to_us_max': 100000000,
        'max_to_us_msat': '100000000msat',
        'msatoshi_total': 100000000,
        'total_msat': '100000000msat',
        'dust_limit_satoshis': 546,
        'dust_limit_msat': '546000msat',
        'max_htlc_value_in_flight_msat': 18446744073709551615,
        'max_total_htlc_in_msat': '18446744073709551615msat',
        'their_channel_reserve_satoshis': 1000,
        'their_reserve_msat': 1000000msat,
        'our_channel_reserve_satoshis': 1000,
        'our_reserve_msat': '1000000msat',
        'spendable_msatoshi': 99000000,
        'spendable_msat': '99000000msat',
        'htlc_minimum_msat': 0,
        'minimum_htlc_in_msat': '0msat',
        'their_to_self_delay': 144,
        'our_to_self_delay': 144,
        'max_accepted_htlcs': 483,
        'status': ['CHANNELD_AWAITING_LOCKIN:Reconnected, and reestablished.', 'CHANNELD_AWAITING_LOCKIN:Funding needs more confirmations.'],
        'in_payments_offered': 0,
        'in_msatoshi_offered': 0,
        'in_offered_msat': '0msat',
        'in_payments_fulfilled': 0,
        'in_msatoshi_fulfilled': 0,
        'in_fulfilled_msat': '0msat',
        'out_payments_offered': 0,
        'out_msatoshi_offered': 0,
        'out_offered_msat': '0msat',
        'out_payments_fulfilled': 0,
        'out_msatoshi_fulfilled': 0,
        'out_fulfilled_msat': '0msat',
        'htlcs': []
}
```
2019-05-10 17:05:08 +02:00
Christian Decker
96f617da75
prom: Rename metrics to be less confusing
The metrics should always have a name that uniquely identifies the monitored
system and the metric on that system. `node` just doesn't say much if
presented along with metrics from other systems.

Signed-off-by: Christian Decker <decker.christian@gmail.com>
2019-03-26 12:43:45 +01:00
Christian Decker
3ca5056ebd
prometheus: Add a prometheus plugin exposing channel and peer stats
Signed-off-by: Christian Decker <decker.christian@gmail.com>
2019-02-26 18:43:51 +01:00