Skip to content

Instantly share code, notes, and snippets.

@niftynei
Created September 24, 2019 22:10
Show Gist options
  • Save niftynei/a6d357c7ba4e1417a14ca44a0b5f0ec6 to your computer and use it in GitHub Desktop.
Save niftynei/a6d357c7ba4e1417a14ca44a0b5f0ec6 to your computer and use it in GitHub Desktop.
c-lightning Prometheus/Grafana Node Dashboard
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"id": 28,
"iteration": 1569362957963,
"links": [],
"panels": [
{
"datasource": "prometheus",
"gridPos": {
"h": 6,
"w": 6,
"x": 0,
"y": 0
},
"id": 10,
"links": [],
"options": {
"fieldOptions": {
"calcs": [
"max"
],
"defaults": {
"max": 1,
"min": 0,
"unit": "percentunit"
},
"mappings": [],
"override": {},
"thresholds": [
{
"color": "light-orange",
"index": 0,
"value": null
},
{
"color": "light-blue",
"index": 1,
"value": 0.1
},
{
"color": "light-orange",
"index": 2,
"value": 0.9
}
],
"values": false
},
"orientation": "auto",
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "6.2.5",
"targets": [
{
"expr": "lightning_funds_channel{instance=\"[[instance]]\"}/lightning_funds_total{instance=\"[[instance]]\"}",
"format": "time_series",
"intervalFactor": 1,
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Committed Funds",
"type": "gauge"
},
{
"datasource": "prometheus",
"gridPos": {
"h": 6,
"w": 6,
"x": 6,
"y": 0
},
"id": 11,
"links": [],
"options": {
"fieldOptions": {
"calcs": [
"max"
],
"defaults": {
"max": 1,
"min": 0,
"unit": "percentunit"
},
"mappings": [],
"override": {},
"thresholds": [
{
"color": "light-orange",
"index": 0,
"value": null
},
{
"color": "light-blue",
"index": 1,
"value": 0.1
},
{
"color": "light-orange",
"index": 2,
"value": 0.9
}
],
"values": false
},
"orientation": "auto",
"showThresholdLabels": false,
"showThresholdMarkers": true
},
"pluginVersion": "6.2.5",
"targets": [
{
"expr": "lightning_funds_output{instance=\"[[instance]]\"}/lightning_funds_total{instance=\"[[instance]]\"}",
"format": "time_series",
"intervalFactor": 1,
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Available Funds",
"type": "gauge"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "prometheus",
"decimals": null,
"description": "Current Blockheight, at node",
"format": "locale",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 5,
"w": 3,
"x": 12,
"y": 0
},
"id": 8,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"options": {},
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"tableColumn": "Value",
"targets": [
{
"expr": "sum(lightning_node_blockheight{instance=\"[[instance]]\"})",
"format": "table",
"intervalFactor": 1,
"refId": "A"
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Current Blockheight",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "avg"
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "prometheus",
"fill": 1,
"gridPos": {
"h": 9,
"w": 12,
"x": 12,
"y": 5
},
"id": 2,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": true,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"expr": "sum (lightning_channel_balance{instance=\"[[instance]]\"}) by (scid)",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{scid}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Channel Balances (msats)",
"tooltip": {
"shared": false,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "prometheus",
"fill": 1,
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 6
},
"id": 13,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "lightning_funds_channel{instance=\"[[instance]]\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "Channel Funds",
"refId": "A"
},
{
"expr": "lightning_funds_output{instance=\"[[instance]]\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "Output Funds",
"refId": "B"
},
{
"expr": "lightning_funds_total{instance=\"[[instance]]\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "Total Funds",
"refId": "C"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Funds Allocation (sats)",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "prometheus",
"description": "Count of HTLC's, by channel",
"fill": 1,
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 14
},
"id": 6,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "sum (lightning_channel_htlcs{instance=\"[[instance]]\"}) by (scid)",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{scid}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Channel HTLC's (sum)",
"tooltip": {
"shared": false,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "prometheus",
"description": "",
"fill": 1,
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 14
},
"id": 4,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": true,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"expr": "sum (lightning_channel_spendable{instance=\"[[instance]]\"}) by (scid)",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{scid}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Channel Spendable Balance (msats)",
"tooltip": {
"shared": false,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
}
],
"schemaVersion": 18,
"style": "dark",
"tags": [],
"templating": {
"list": [
{
"allValue": null,
"current": {
"tags": [],
"text": "10.138.0.56:9900",
"value": "10.138.0.56:9900"
},
"datasource": "prometheus",
"definition": "label_values(instance)",
"hide": 0,
"includeAll": false,
"label": "instance",
"multi": false,
"name": "instance",
"options": [
{
"selected": true,
"text": "10.128.0.11:9900",
"value": "10.128.0.11:9900"
},
{
"selected": false,
"text": "10.128.0.6:9900",
"value": "10.128.0.6:9900"
},
{
"selected": false,
"text": "10.128.0.8:9900",
"value": "10.128.0.8:9900"
},
{
"selected": false,
"text": "10.128.0.9:9900",
"value": "10.128.0.9:9900"
},
{
"selected": false,
"text": "10.138.0.56:9900",
"value": "10.138.0.56:9900"
},
{
"selected": false,
"text": "10.138.0.57:9900",
"value": "10.138.0.57:9900"
},
{
"selected": false,
"text": "10.138.15.213:9900",
"value": "10.138.15.213:9900"
}
],
"query": "label_values(instance)",
"refresh": 0,
"regex": "/.*:9900/",
"skipUrlSync": false,
"sort": 0,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
}
]
},
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
],
"time_options": [
"5m",
"15m",
"1h",
"6h",
"12h",
"24h",
"2d",
"7d",
"30d"
]
},
"timezone": "",
"title": "Node, Detailed View",
"uid": "_cIxDYtZz",
"version": 4
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment