Skip to content

Commit 3aa925a

Browse files
authored
Merge pull request #60 from LN-Zap/zap
Kubernetes compatible dashboards (alt)
2 parents c607b4f + c3513d9 commit 3aa925a

File tree

6 files changed

+515
-150
lines changed

6 files changed

+515
-150
lines changed

grafana/provisioning/dashboards/chain.json

+76-15
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"bars": false,
2424
"dashLength": 10,
2525
"dashes": false,
26-
"datasource": "Prometheus",
26+
"datasource": "$datasource",
2727
"fill": 1,
2828
"gridPos": {
2929
"h": 8,
@@ -56,14 +56,14 @@
5656
"steppedLine": false,
5757
"targets": [
5858
{
59-
"expr": "lnd_wallet_balance_confirmed_sat",
59+
"expr": "lnd_wallet_balance_confirmed_sat{namespace=\"$namespace\",pod=\"$node\"}",
6060
"format": "time_series",
6161
"intervalFactor": 1,
6262
"legendFormat": "conf_sat",
6363
"refId": "A"
6464
},
6565
{
66-
"expr": "lnd_wallet_balance_unconfirmed_sat",
66+
"expr": "lnd_wallet_balance_unconfirmed_sat{namespace=\"$namespace\",pod=\"$node\"}",
6767
"format": "time_series",
6868
"intervalFactor": 1,
6969
"legendFormat": "unconf_sat",
@@ -116,7 +116,7 @@
116116
"bars": false,
117117
"dashLength": 10,
118118
"dashes": false,
119-
"datasource": "Prometheus",
119+
"datasource": "$datasource",
120120
"fill": 1,
121121
"gridPos": {
122122
"h": 8,
@@ -149,14 +149,14 @@
149149
"steppedLine": false,
150150
"targets": [
151151
{
152-
"expr": "lnd_utxos_count_confirmed_total",
152+
"expr": "lnd_utxos_count_confirmed_total{namespace=\"$namespace\",pod=\"$node\"}",
153153
"format": "time_series",
154154
"intervalFactor": 1,
155155
"legendFormat": "num_conf_utxos",
156156
"refId": "A"
157157
},
158158
{
159-
"expr": "lnd_utxos_count_unconfirmed_total",
159+
"expr": "lnd_utxos_count_unconfirmed_total{namespace=\"$namespace\",pod=\"$node\"}",
160160
"format": "time_series",
161161
"intervalFactor": 1,
162162
"legendFormat": "num_unconf_utxos",
@@ -209,7 +209,7 @@
209209
"bars": false,
210210
"dashLength": 10,
211211
"dashes": false,
212-
"datasource": "Prometheus",
212+
"datasource": "$datasource",
213213
"fill": 1,
214214
"gridPos": {
215215
"h": 8,
@@ -242,21 +242,21 @@
242242
"steppedLine": false,
243243
"targets": [
244244
{
245-
"expr": "lnd_utxos_sizes_avg_sat",
245+
"expr": "lnd_utxos_sizes_avg_sat{namespace=\"$namespace\",pod=\"$node\"}",
246246
"format": "time_series",
247247
"intervalFactor": 1,
248248
"legendFormat": "avg_utxo_size_sat",
249249
"refId": "A"
250250
},
251251
{
252-
"expr": "lnd_utxos_sizes_max_sat",
252+
"expr": "lnd_utxos_sizes_max_sat{namespace=\"$namespace\",pod=\"$node\"}",
253253
"format": "time_series",
254254
"intervalFactor": 1,
255255
"legendFormat": "max_utxo_size_sat",
256256
"refId": "B"
257257
},
258258
{
259-
"expr": "lnd_utxos_sizes_min_sat",
259+
"expr": "lnd_utxos_sizes_min_sat{namespace=\"$namespace\",pod=\"$node\"}",
260260
"format": "time_series",
261261
"intervalFactor": 1,
262262
"legendFormat": "min_utxo_size_sat",
@@ -309,7 +309,7 @@
309309
"bars": false,
310310
"dashLength": 10,
311311
"dashes": false,
312-
"datasource": "Prometheus",
312+
"datasource": "$datasource",
313313
"fill": 1,
314314
"gridPos": {
315315
"h": 9,
@@ -342,7 +342,7 @@
342342
"steppedLine": false,
343343
"targets": [
344344
{
345-
"expr": "lnd_chain_block_height",
345+
"expr": "lnd_chain_block_height{namespace=\"$namespace\",pod=\"$node\"}",
346346
"format": "time_series",
347347
"intervalFactor": 1,
348348
"legendFormat": "block_height",
@@ -393,9 +393,70 @@
393393
],
394394
"schemaVersion": 18,
395395
"style": "dark",
396-
"tags": [],
396+
"tags": ["lightning-network"],
397397
"templating": {
398-
"list": []
398+
"list": [
399+
{
400+
"current": {
401+
"tags": [],
402+
"text": "default",
403+
"value": "default"
404+
},
405+
"hide": 0,
406+
"includeAll": false,
407+
"label": null,
408+
"multi": false,
409+
"name": "datasource",
410+
"options": [],
411+
"query": "prometheus",
412+
"refresh": 1,
413+
"regex": "",
414+
"skipUrlSync": false,
415+
"type": "datasource"
416+
},
417+
{
418+
"allValue": null,
419+
"datasource": "$datasource",
420+
"definition": "label_values(namespace)",
421+
"hide": 0,
422+
"includeAll": false,
423+
"label": "namespace",
424+
"multi": false,
425+
"name": "namespace",
426+
"options": [],
427+
"query": "label_values(namespace)",
428+
"refresh": 1,
429+
"regex": "",
430+
"skipUrlSync": false,
431+
"sort": 5,
432+
"tagValuesQuery": "",
433+
"tags": [],
434+
"tagsQuery": "",
435+
"type": "query",
436+
"useTags": false
437+
},
438+
{
439+
"allValue": null,
440+
"datasource": "$datasource",
441+
"definition": "label_values(lnd_chain_block_timestamp{namespace=\"$namespace\"}, pod)",
442+
"hide": 0,
443+
"includeAll": false,
444+
"label": "node",
445+
"multi": false,
446+
"name": "node",
447+
"options": [],
448+
"query": "label_values(lnd_chain_block_timestamp{namespace=\"$namespace\"}, pod)",
449+
"refresh": 1,
450+
"regex": "",
451+
"skipUrlSync": false,
452+
"sort": 0,
453+
"tagValuesQuery": "",
454+
"tags": [],
455+
"tagsQuery": "",
456+
"type": "query",
457+
"useTags": false
458+
}
459+
]
399460
},
400461
"time": {
401462
"from": "now-6h",
@@ -430,4 +491,4 @@
430491
"title": "Chain State",
431492
"uid": "ifn33ANWz",
432493
"version": 2
433-
}
494+
}

0 commit comments

Comments
 (0)