Skip to content

Commit 7b4f4a7

Browse files
committed
grafana/dashboards: add wallet_key_count panel
1 parent bdc9a27 commit 7b4f4a7

File tree

1 file changed

+153
-15
lines changed

1 file changed

+153
-15
lines changed

grafana/provisioning/dashboards/chain.json

Lines changed: 153 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
{
2-
"annotations": {
1+
2+
tations": {
33
"list": [
44
{
55
"builtIn": 1,
@@ -8,15 +8,24 @@
88
"hide": true,
99
"iconColor": "rgba(0, 211, 255, 1)",
1010
"name": "Annotations & Alerts",
11+
"target": {
12+
"limit": 100,
13+
"matchAny": false,
14+
"tags": [],
15+
"type": "dashboard"
16+
},
1117
"type": "dashboard"
1218
}
1319
]
1420
},
1521
"editable": true,
22+
"fiscalYearStartMonth": 0,
1623
"gnetId": null,
1724
"graphTooltip": 0,
18-
"id": 6,
25+
"id": 1,
26+
"iteration": 1635241162989,
1927
"links": [],
28+
"liveNow": false,
2029
"panels": [
2130
{
2231
"aliasColors": {},
@@ -25,12 +34,14 @@
2534
"dashes": false,
2635
"datasource": "$datasource",
2736
"fill": 1,
37+
"fillGradient": 0,
2838
"gridPos": {
2939
"h": 8,
3040
"w": 23,
3141
"x": 0,
3242
"y": 0
3343
},
44+
"hiddenSeries": false,
3445
"id": 4,
3546
"legend": {
3647
"avg": false,
@@ -45,8 +56,11 @@
4556
"linewidth": 1,
4657
"links": [],
4758
"nullPointMode": "null",
48-
"options": {},
59+
"options": {
60+
"alertThreshold": true
61+
},
4962
"percentage": false,
63+
"pluginVersion": "8.2.2",
5064
"pointradius": 2,
5165
"points": false,
5266
"renderer": "flot",
@@ -118,12 +132,14 @@
118132
"dashes": false,
119133
"datasource": "$datasource",
120134
"fill": 1,
135+
"fillGradient": 0,
121136
"gridPos": {
122137
"h": 8,
123138
"w": 12,
124139
"x": 0,
125140
"y": 8
126141
},
142+
"hiddenSeries": false,
127143
"id": 8,
128144
"legend": {
129145
"avg": false,
@@ -138,8 +154,11 @@
138154
"linewidth": 1,
139155
"links": [],
140156
"nullPointMode": "null",
141-
"options": {},
157+
"options": {
158+
"alertThreshold": true
159+
},
142160
"percentage": false,
161+
"pluginVersion": "8.2.2",
143162
"pointradius": 2,
144163
"points": false,
145164
"renderer": "flot",
@@ -211,12 +230,14 @@
211230
"dashes": false,
212231
"datasource": "$datasource",
213232
"fill": 1,
233+
"fillGradient": 0,
214234
"gridPos": {
215235
"h": 8,
216236
"w": 12,
217237
"x": 12,
218238
"y": 8
219239
},
240+
"hiddenSeries": false,
220241
"id": 6,
221242
"legend": {
222243
"avg": false,
@@ -231,8 +252,11 @@
231252
"linewidth": 1,
232253
"links": [],
233254
"nullPointMode": "null",
234-
"options": {},
255+
"options": {
256+
"alertThreshold": true
257+
},
235258
"percentage": false,
259+
"pluginVersion": "8.2.2",
236260
"pointradius": 2,
237261
"points": false,
238262
"renderer": "flot",
@@ -311,12 +335,14 @@
311335
"dashes": false,
312336
"datasource": "$datasource",
313337
"fill": 1,
338+
"fillGradient": 0,
314339
"gridPos": {
315340
"h": 9,
316341
"w": 12,
317342
"x": 0,
318343
"y": 16
319344
},
345+
"hiddenSeries": false,
320346
"id": 2,
321347
"legend": {
322348
"avg": false,
@@ -331,8 +357,11 @@
331357
"linewidth": 1,
332358
"links": [],
333359
"nullPointMode": "null",
334-
"options": {},
360+
"options": {
361+
"alertThreshold": true
362+
},
335363
"percentage": false,
364+
"pluginVersion": "8.2.2",
336365
"pointradius": 2,
337366
"points": false,
338367
"renderer": "flot",
@@ -389,19 +418,108 @@
389418
"align": false,
390419
"alignLevel": null
391420
}
421+
},
422+
{
423+
"datasource": null,
424+
"fieldConfig": {
425+
"defaults": {
426+
"color": {
427+
"mode": "thresholds"
428+
},
429+
"mappings": [],
430+
"thresholds": {
431+
"mode": "absolute",
432+
"steps": [
433+
{
434+
"color": "green",
435+
"value": null
436+
},
437+
{
438+
"color": "red",
439+
"value": 80
440+
}
441+
]
442+
}
443+
},
444+
"overrides": []
445+
},
446+
"gridPos": {
447+
"h": 9,
448+
"w": 11,
449+
"x": 12,
450+
"y": 16
451+
},
452+
"id": 10,
453+
"options": {
454+
"displayMode": "gradient",
455+
"orientation": "auto",
456+
"reduceOptions": {
457+
"calcs": [
458+
"lastNotNull"
459+
],
460+
"fields": "",
461+
"values": false
462+
},
463+
"showUnfilled": true,
464+
"text": {}
465+
},
466+
"pluginVersion": "8.2.2",
467+
"targets": [
468+
{
469+
"exemplar": true,
470+
"expr": "lnd_wallet_key_count_external",
471+
"format": "time_series",
472+
"instant": false,
473+
"interval": "",
474+
"legendFormat": "{{account_name}} external ({{address_type}})",
475+
"refId": "external"
476+
},
477+
{
478+
"exemplar": true,
479+
"expr": "lnd_wallet_key_count_internal",
480+
"format": "time_series",
481+
"hide": false,
482+
"interval": "",
483+
"legendFormat": "{{account_name}} internal ({{address_type}})",
484+
"refId": "internal"
485+
}
486+
],
487+
"title": "Wallet key counts",
488+
"transformations": [
489+
{
490+
"id": "renameByRegex",
491+
"options": {
492+
"regex": "HYBRID_NESTED_WITNESS_PUBKEY_HASH",
493+
"renamePattern": "np2wkh"
494+
}
495+
},
496+
{
497+
"id": "renameByRegex",
498+
"options": {
499+
"regex": "WITNESS_PUBKEY_HASH",
500+
"renamePattern": "p2wkh"
501+
}
502+
}
503+
],
504+
"type": "bargauge"
392505
}
393506
],
394-
"schemaVersion": 18,
507+
"refresh": "",
508+
"schemaVersion": 31,
395509
"style": "dark",
396-
"tags": ["lightning-network"],
510+
"tags": [
511+
"lightning-network"
512+
],
397513
"templating": {
398514
"list": [
399515
{
400516
"current": {
401-
"tags": [],
517+
"selected": false,
402518
"text": "default",
403519
"value": "default"
404520
},
521+
"description": null,
522+
"error": null,
405523
"hide": 0,
406524
"includeAll": false,
407525
"label": null,
@@ -416,42 +534,62 @@
416534
},
417535
{
418536
"allValue": null,
537+
"current": {
538+
"isNone": true,
539+
"selected": false,
540+
"text": "None",
541+
"value": ""
542+
},
419543
"datasource": "$datasource",
420544
"definition": "label_values(namespace)",
545+
"description": null,
546+
"error": null,
421547
"hide": 0,
422548
"includeAll": false,
423549
"label": "namespace",
424550
"multi": false,
425551
"name": "namespace",
426552
"options": [],
427-
"query": "label_values(namespace)",
553+
"query": {
554+
"query": "label_values(namespace)",
555+
"refId": "Prometheus-1-namespace-Variable-Query"
556+
},
428557
"refresh": 1,
429558
"regex": "",
430559
"skipUrlSync": false,
431560
"sort": 5,
432561
"tagValuesQuery": "",
433-
"tags": [],
434562
"tagsQuery": "",
435563
"type": "query",
436564
"useTags": false
437565
},
438566
{
439567
"allValue": null,
568+
"current": {
569+
"isNone": true,
570+
"selected": false,
571+
"text": "None",
572+
"value": ""
573+
},
440574
"datasource": "$datasource",
441575
"definition": "label_values(lnd_chain_block_timestamp{namespace=\"$namespace\"}, pod)",
576+
"description": null,
577+
"error": null,
442578
"hide": 0,
443579
"includeAll": false,
444580
"label": "node",
445581
"multi": false,
446582
"name": "node",
447583
"options": [],
448-
"query": "label_values(lnd_chain_block_timestamp{namespace=\"$namespace\"}, pod)",
584+
"query": {
585+
"query": "label_values(lnd_chain_block_timestamp{namespace=\"$namespace\"}, pod)",
586+
"refId": "Prometheus-1-node-Variable-Query"
587+
},
449588
"refresh": 1,
450589
"regex": "",
451590
"skipUrlSync": false,
452591
"sort": 0,
453592
"tagValuesQuery": "",
454-
"tags": [],
455593
"tagsQuery": "",
456594
"type": "query",
457595
"useTags": false
@@ -490,5 +628,5 @@
490628
"timezone": "",
491629
"title": "Chain State",
492630
"uid": "ifn33ANWz",
493-
"version": 2
631+
"version": 4
494632
}

0 commit comments

Comments
 (0)