Skip to content
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

Kubernetes compatible dashboards (alt) #60

Merged
merged 9 commits into from
Mar 26, 2021
91 changes: 76 additions & 15 deletions grafana/provisioning/dashboards/chain.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "Prometheus",
"datasource": "$datasource",
"fill": 1,
"gridPos": {
"h": 8,
Expand Down Expand Up @@ -56,14 +56,14 @@
"steppedLine": false,
"targets": [
{
"expr": "lnd_wallet_balance_confirmed_sat",
"expr": "lnd_wallet_balance_confirmed_sat{namespace=\"$namespace\",pod=\"$node\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "conf_sat",
"refId": "A"
},
{
"expr": "lnd_wallet_balance_unconfirmed_sat",
"expr": "lnd_wallet_balance_unconfirmed_sat{namespace=\"$namespace\",pod=\"$node\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "unconf_sat",
Expand Down Expand Up @@ -116,7 +116,7 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "Prometheus",
"datasource": "$datasource",
"fill": 1,
"gridPos": {
"h": 8,
Expand Down Expand Up @@ -149,14 +149,14 @@
"steppedLine": false,
"targets": [
{
"expr": "lnd_utxos_count_confirmed_total",
"expr": "lnd_utxos_count_confirmed_total{namespace=\"$namespace\",pod=\"$node\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "num_conf_utxos",
"refId": "A"
},
{
"expr": "lnd_utxos_count_unconfirmed_total",
"expr": "lnd_utxos_count_unconfirmed_total{namespace=\"$namespace\",pod=\"$node\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "num_unconf_utxos",
Expand Down Expand Up @@ -209,7 +209,7 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "Prometheus",
"datasource": "$datasource",
"fill": 1,
"gridPos": {
"h": 8,
Expand Down Expand Up @@ -242,21 +242,21 @@
"steppedLine": false,
"targets": [
{
"expr": "lnd_utxos_sizes_avg_sat",
"expr": "lnd_utxos_sizes_avg_sat{namespace=\"$namespace\",pod=\"$node\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "avg_utxo_size_sat",
"refId": "A"
},
{
"expr": "lnd_utxos_sizes_max_sat",
"expr": "lnd_utxos_sizes_max_sat{namespace=\"$namespace\",pod=\"$node\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "max_utxo_size_sat",
"refId": "B"
},
{
"expr": "lnd_utxos_sizes_min_sat",
"expr": "lnd_utxos_sizes_min_sat{namespace=\"$namespace\",pod=\"$node\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "min_utxo_size_sat",
Expand Down Expand Up @@ -309,7 +309,7 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "Prometheus",
"datasource": "$datasource",
"fill": 1,
"gridPos": {
"h": 9,
Expand Down Expand Up @@ -342,7 +342,7 @@
"steppedLine": false,
"targets": [
{
"expr": "lnd_chain_block_height",
"expr": "lnd_chain_block_height{namespace=\"$namespace\",pod=\"$node\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "block_height",
Expand Down Expand Up @@ -393,9 +393,70 @@
],
"schemaVersion": 18,
"style": "dark",
"tags": [],
"tags": ["lightning-network"],
"templating": {
"list": []
"list": [
{
"current": {
"tags": [],
"text": "default",
"value": "default"
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be set below where the namespace label/name is actually defined?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not quite sure what you're referring to. The order of the filters is datasource, namespace, node which is a logical ordering. What specifically do you think should be moved lower?

"hide": 0,
"includeAll": false,
"label": null,
"multi": false,
"name": "datasource",
"options": [],
"query": "prometheus",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"type": "datasource"
},
{
"allValue": null,
"datasource": "$datasource",
mrfelton marked this conversation as resolved.
Show resolved Hide resolved
"definition": "label_values(namespace)",
"hide": 0,
"includeAll": false,
"label": "namespace",
"multi": false,
"name": "namespace",
"options": [],
"query": "label_values(namespace)",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 5,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"allValue": null,
"datasource": "$datasource",
"definition": "label_values(lnd_chain_block_timestamp{namespace=\"$namespace\"}, pod)",
"hide": 0,
"includeAll": false,
"label": "node",
"multi": false,
"name": "node",
"options": [],
"query": "label_values(lnd_chain_block_timestamp{namespace=\"$namespace\"}, pod)",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
}
]
},
"time": {
"from": "now-6h",
Expand Down Expand Up @@ -430,4 +491,4 @@
"title": "Chain State",
"uid": "ifn33ANWz",
"version": 2
}
}
Loading