-
Notifications
You must be signed in to change notification settings - Fork 54
Enable lnd pod logging #691
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
46900fe
19076ce
0ca00d0
019f2bc
aa4d3b2
f62fff1
33b4e16
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| {{- if .Values.metricsExport }} | ||
| apiVersion: monitoring.coreos.com/v1 | ||
| kind: ServiceMonitor | ||
| metadata: | ||
| name: {{ include "lnd.fullname" . }} | ||
| labels: | ||
| app.kubernetes.io/name: lnd-metrics | ||
| release: prometheus | ||
| spec: | ||
| endpoints: | ||
| - port: prometheus-metrics | ||
| selector: | ||
| matchLabels: | ||
| app: {{ include "lnd.fullname" . }} | ||
| {{- end }} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,40 @@ | ||
| # Enable caddy, collectLogs and metricsExport to activate publish lnd-exporter metrics | ||
| caddy: | ||
| enabled: false | ||
|
|
||
| #Core configs | ||
| image: | ||
| repository: bitcoindevproject/bitcoin | ||
| pullPolicy: IfNotPresent | ||
| tag: "27.0" | ||
| collectLogs: false | ||
| metricsExport: false | ||
|
|
||
| #LN configs | ||
| ln: | ||
| lnd: true | ||
| lnd: | ||
| defaultConfig: | | ||
| color=#000000 | ||
| color=#000000 | ||
| config: | | ||
| bitcoin.timelockdelta=33 | ||
| metricsExport: false | ||
| prometheusMetricsPort: 9332 | ||
| extraContainers: | ||
| - name: lnd-exporter | ||
| image: bitdonkey/lnd-exporter:0.1.2 | ||
| imagePullPolicy: IfNotPresent | ||
| env: | ||
| - name: ADMIN_MACAROON_HEX | ||
| value: 0201036c6e6402f801030a1062beabbf2a614b112128afa0c0b4fdd61201301a160a0761646472657373120472656164120577726974651a130a04696e666f120472656164120577726974651a170a08696e766f69636573120472656164120577726974651a210a086d616361726f6f6e120867656e6572617465120472656164120577726974651a160a076d657373616765120472656164120577726974651a170a086f6666636861696e120472656164120577726974651a160a076f6e636861696e120472656164120577726974651a140a057065657273120472656164120577726974651a180a067369676e6572120867656e657261746512047265616400000620b17be53e367290871681055d0de15587f6d1cd47d1248fe2662ae27f62cfbdc6 | ||
| - name: METRICS | ||
| value: > | ||
| lnd_balance_channels=parse("/v1/balance/channels","balance") | ||
| lnd_local_balance_channels=parse("/v1/balance/channels","local_balance.sat") | ||
| lnd_remote_balance_channels=parse("/v1/balance/channels","remote_balance.sat") | ||
| lnd_block_height=parse("/v1/getinfo","block_height") | ||
| lnd_peers=parse("/v1/getinfo","num_peers") | ||
macgyver13 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ports: | ||
| - name: prom-metrics | ||
| containerPort: 9332 | ||
| protocol: TCP | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,5 +11,25 @@ nodes: | |
| - name: tank-0002 | ||
| addnode: | ||
| - tank-0000 | ||
| ln: | ||
| lnd: true | ||
| lnd: | ||
| metricsExport: true | ||
| prometheusMetricsPort: 9332 | ||
| extraContainers: | ||
| - name: lnd-exporter | ||
| image: bitdonkey/lnd-exporter:0.1.2 | ||
| imagePullPolicy: IfNotPresent | ||
| env: | ||
| - name: ADMIN_MACAROON_HEX | ||
| value: 0201036c6e6402f801030a1062beabbf2a614b112128afa0c0b4fdd61201301a160a0761646472657373120472656164120577726974651a130a04696e666f120472656164120577726974651a170a08696e766f69636573120472656164120577726974651a210a086d616361726f6f6e120867656e6572617465120472656164120577726974651a160a076d657373616765120472656164120577726974651a170a086f6666636861696e120472656164120577726974651a160a076f6e636861696e120472656164120577726974651a140a057065657273120472656164120577726974651a180a067369676e6572120867656e657261746512047265616400000620b17be53e367290871681055d0de15587f6d1cd47d1248fe2662ae27f62cfbdc6 | ||
|
||
| - name: METRICS | ||
| value: > | ||
| lnd_block_height=parse("/v1/getinfo","block_height") | ||
| lnd_peers=parse("/v1/getinfo","num_peers") | ||
| ports: | ||
| - name: prom-metrics | ||
| containerPort: 9332 | ||
| protocol: TCP | ||
| caddy: | ||
| enabled: true | ||
Uh oh!
There was an error while loading. Please reload this page.