You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: prometheus/README.md
+5-37Lines changed: 5 additions & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,44 +18,12 @@ Exposed variables include:
18
18
total sum (may be inaccurate during channel resolution).
19
19
20
20
## Installation
21
-
### Using uv (recommended)
22
-
* Install `uv` and make the plugin executable
23
-
```
24
-
pip install --upgrade pip uv
25
-
chmod a+x prometheus.py
26
-
```
27
-
Then you can add _just that file_ to your Core Lightning plugins directory. The plugin should start automatically and its dependencies will be installed on-the-fly when the node comes up.
28
-
29
-
### Using poetry (legacy)
30
-
If you don't want to use `uv`, you can still use `poetry`. You need to update the shebang line to point the OS at the correct interpreter (`python3`) though:
31
-
```
32
-
sed -i 's#-S uv run --script#python3#' prometheus.py
33
-
```
21
+
You need [uv](https://docs.astral.sh/uv/getting-started/installation/) to run this
22
+
plugin like a binary. After `uv` is installed you can simply run
34
23
35
-
Then install `poetry` and build the package:
36
24
```
37
-
pip install --upgrade pip poetry
38
-
poetry install --only main
25
+
lightning-cli plugin start /path/to/prometheus.py
39
26
```
40
27
41
-
This is an example snippet for installing the plugin's dependencies and cleaning up afterwards:
0 commit comments