Files
zeekay 96715881cb go mod tidy
Update CLI for genesis

Fix import paths from ethereum/go-ethereum to luxfi/geth

- Replace all ethereum/go-ethereum imports with luxfi/geth
- Add local rawdb package for unexported constants
- Fix build errors in genesis tools
- Add comprehensive migration documentation
- Create build-all.sh script for building all tools
- Clean up duplicate functions and unused imports

Fix remaining imports

Update CLI

Remove symlink

Remove local replace directives

Update

Update old templates
2025-07-31 19:40:18 +00:00

1977 lines
49 KiB
JSON

{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"description": "Home dashboard with the most important indicators for your node and machine",
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 2,
"links": [
{
"icon": "external link",
"tags": [
"Lux"
],
"type": "dashboards"
}
],
"liveNow": false,
"panels": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Stake weighted average uptime of your node, as reported by network peers. If this falls below 80% node probably won't be rewarded for the current staking period.",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "dark-red",
"value": null
},
{
"color": "dark-red",
"value": 80
},
{
"color": "red",
"value": 85
},
{
"color": "yellow",
"value": 90
},
{
"color": "green",
"value": 95
},
{
"color": "green",
"value": 100
}
]
},
"unit": "percent"
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 6,
"x": 0,
"y": 0
},
"id": 39,
"options": {
"minVizHeight": 75,
"minVizWidth": 75,
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showThresholdLabels": false,
"showThresholdMarkers": true,
"text": {}
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": true,
"expr": "lux_network_node_uptime_weighted_average{instance=~\"$host\", job=~\"luxd\"} ",
"interval": "",
"legendFormat": "",
"range": true,
"refId": "A"
}
],
"title": "Uptime average",
"type": "gauge"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Percentage of the stake that view your node as sufficiently online and correct to vote that node be awarded at the end of the staking period.",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "dark-red",
"value": null
},
{
"color": "red",
"value": 60
},
{
"color": "#EAB839",
"value": 70
},
{
"color": "green",
"value": 80
},
{
"color": "green",
"value": 100
}
]
},
"unit": "percent"
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 6,
"x": 6,
"y": 0
},
"id": 41,
"options": {
"minVizHeight": 75,
"minVizWidth": 75,
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showThresholdLabels": false,
"showThresholdMarkers": true,
"text": {}
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": true,
"expr": "lux_network_node_uptime_rewarding_stake{instance=~\"$host\",job=~\"luxd\"}",
"interval": "",
"legendFormat": "Rewarding stake",
"range": true,
"refId": "A"
}
],
"title": "Rewarding stake",
"type": "gauge"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Number of accepted and rejected blocks on the X chain in the last minute",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "bars",
"fillOpacity": 100,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 9,
"x": 12,
"y": 0
},
"id": 16,
"links": [
{
"title": "X Chain dashboard",
"url": "/d/ceRH2Am7z/x-chain?orgId=1"
}
],
"options": {
"legend": {
"calcs": [
"mean",
"lastNotNull",
"max"
],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "8.0.5",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": true,
"expr": "round(increase(lux_X_blks_accepted_count{instance=~\"$host\", job=\"luxd\"}[1m]))>0",
"interval": "",
"legendFormat": "Accepted",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": true,
"expr": "round(increase(lux_X_blks_rejected_count{instance=~\"$host\", job=\"luxd\"}[1m]))>0",
"hide": false,
"interval": "",
"legendFormat": "Rejected",
"range": true,
"refId": "B"
}
],
"title": "X Chain Blocks",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Number of X-Chain blocks this node has proposed on the network in the last day. Since block production on P-Chain is usually below the target rate, every node proposes P blocks.",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 3,
"x": 21,
"y": 0
},
"id": 44,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"text": {},
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": true,
"expr": "round(increase(lux_X_blks_built{instance=~\"$host\", job=\"luxd\"}[1d]))",
"interval": "",
"legendFormat": "Proposed P blocks",
"range": true,
"refId": "A"
}
],
"title": "Proposed X blocks",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Number of accepted and rejected blocks on the P chain in the last minute.",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "bars",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 9,
"x": 12,
"y": 6
},
"id": 21,
"links": [
{
"title": "P Chain dashboard",
"url": "/d/uWlS20i7z/p-chain?orgId=1"
}
],
"options": {
"legend": {
"calcs": [
"mean",
"lastNotNull",
"max"
],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "8.0.5",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": true,
"expr": "round(increase(lux_P_blks_accepted_count{instance=~\"$host\",job=\"luxd\"}[1m]))>0",
"interval": "",
"legendFormat": "Accepted",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": true,
"expr": "round(increase(lux_P_blks_rejected_count{instance=~\"$host\",job=\"luxd\"}[1m]))>0",
"hide": false,
"interval": "",
"legendFormat": "Rejected",
"range": true,
"refId": "B"
}
],
"title": "P Chain Blocks",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Number of P-Chain blocks this node has proposed on the network in the last day. Since block production on P-Chain is usually below the target rate, every node proposes P blocks.",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 3,
"x": 21,
"y": 6
},
"id": 45,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"text": {},
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": true,
"expr": "round(increase(lux_P_blks_built{instance=~\"$host\", job=\"luxd\"}[1d]))",
"interval": "",
"legendFormat": "Proposed P blocks",
"range": true,
"refId": "A"
}
],
"title": "Proposed P blocks",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Percentage of CPU used",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"links": [
{
"title": "Machine details",
"url": "/d/DHT8r2znz/machine-metrics?orgId=1&refresh=10s"
}
],
"mappings": [],
"max": 100,
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "#EAB839",
"value": 60
},
{
"color": "red",
"value": 80
}
]
},
"unit": "percent"
},
"overrides": []
},
"gridPos": {
"h": 5,
"w": 3,
"x": 0,
"y": 7
},
"id": 4,
"options": {
"minVizHeight": 75,
"minVizWidth": 75,
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showThresholdLabels": false,
"showThresholdMarkers": true,
"text": {}
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"expr": "(1 - avg(irate(node_cpu_seconds_total{instance=~\"$machine\",job=~\"luxd-machine\", mode=~\"idle\"}[1m])) by (instance)) * 100",
"interval": "",
"legendFormat": "",
"range": true,
"refId": "A"
}
],
"title": "CPU",
"type": "gauge"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Percentage of storage filled",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"links": [
{
"title": "Detail view",
"url": "/d/DHT8r2znz/machine-metrics?orgId=1&refresh=10s"
}
],
"mappings": [],
"max": 100,
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "#EAB839",
"value": 60
},
{
"color": "red",
"value": 80
}
]
},
"unit": "percent"
},
"overrides": []
},
"gridPos": {
"h": 5,
"w": 3,
"x": 3,
"y": 7
},
"id": 2,
"options": {
"minVizHeight": 75,
"minVizWidth": 75,
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showThresholdLabels": false,
"showThresholdMarkers": true,
"text": {}
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"expr": "max(((node_filesystem_size_bytes{instance=~\"$machine\", job=~\"luxd-machine\", fstype=~\"ext4|vfat\"} - node_filesystem_free_bytes{instance=~\"$machine\", job=~\"luxd-machine\", fstype=~\"ext4|vfat\"}) / node_filesystem_size_bytes{instance=~\"$machine\", job=~\"luxd-machine\", fstype=~\"ext4|vfat\"}) * 100) by (instance)",
"interval": "",
"legendFormat": "",
"range": true,
"refId": "A"
}
],
"title": "Disk Space Used",
"type": "gauge"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Number of currently failing internal health checks",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"max": 4,
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "#EAB839",
"value": 1
},
{
"color": "red",
"value": 2
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 5,
"w": 3,
"x": 6,
"y": 7
},
"id": 37,
"options": {
"minVizHeight": 75,
"minVizWidth": 75,
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showThresholdLabels": false,
"showThresholdMarkers": true,
"text": {}
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"expr": "lux_health_checks_failing{instance=~\"$host\", job=\"luxd\",tag=\"all\"}",
"interval": "",
"legendFormat": "",
"range": true,
"refId": "A"
}
],
"title": "Failing health checks",
"type": "gauge"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Average time to get a response from a peer",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"links": [
{
"title": "Networking Dashboard",
"url": "/d/jB1TgdZ7z/network?orgId=1&refresh=10s"
}
],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "orange",
"value": 500000000
},
{
"color": "dark-red",
"value": 1000000000
}
]
},
"unit": "ns"
},
"overrides": []
},
"gridPos": {
"h": 5,
"w": 3,
"x": 9,
"y": 7
},
"id": 8,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"text": {},
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": true,
"expr": "lux_requests_average_latency{instance=~\"$host\"}",
"interval": "",
"legendFormat": "",
"range": true,
"refId": "A"
}
],
"title": "Network Latency",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Amount of LUX currently staked",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 5,
"w": 3,
"x": 0,
"y": 12
},
"id": 34,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"text": {},
"textMode": "value",
"wideLayout": true
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": true,
"expr": "lux_P_vm_total_staked{instance=~\"$host\", job=\"luxd\"}/1000000000",
"interval": "",
"legendFormat": "LUX",
"range": true,
"refId": "A"
}
],
"title": "Total staked",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Amount of network stake node is currently connected to",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"max": 1,
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "dark-red",
"value": null
},
{
"color": "dark-orange",
"value": 0.75
},
{
"color": "dark-green",
"value": 0.9
}
]
},
"unit": "percentunit"
},
"overrides": []
},
"gridPos": {
"h": 5,
"w": 3,
"x": 3,
"y": 12
},
"id": 35,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"text": {},
"textMode": "value",
"wideLayout": true
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"expr": "lux_P_percent_connected{instance=~\"$host\", job=\"luxd\"}",
"interval": "",
"legendFormat": "",
"range": true,
"refId": "A"
}
],
"title": "Stake connected",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Number of peers node is connected to",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"axisSoftMin": 2,
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "smooth",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"links": [
{
"title": "Networking Dashboard",
"url": "/d/jB1TgdZ7z/network?orgId=1&refresh=10s"
}
],
"mappings": [],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 5,
"w": 6,
"x": 6,
"y": 12
},
"id": 6,
"options": {
"legend": {
"calcs": [
"mean",
"lastNotNull",
"max",
"min"
],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "8.0.5",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"expr": "lux_network_peers{instance=~\"$host\", job=\"luxd\"}",
"interval": "",
"legendFormat": "Peers",
"range": true,
"refId": "A"
}
],
"title": "Peer count",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Number of accepted and rejected blocks on the C chain in the last minute.",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "bars",
"fillOpacity": 100,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 9,
"x": 12,
"y": 12
},
"id": 23,
"links": [
{
"title": "C Chain dashboard",
"url": "/d/Gl1I20mnk/c-chain?orgId=1"
}
],
"options": {
"legend": {
"calcs": [
"mean",
"lastNotNull",
"max"
],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "8.0.5",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": true,
"expr": "round(increase(lux_C_blks_accepted_count{instance=~\"$host\", job=\"luxd\"}[1m]))>0",
"interval": "",
"legendFormat": "Accepted",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": true,
"expr": "round(increase(lux_C_blks_rejected_count{instance=~\"$host\", job=\"luxd\"}[1m]))>0",
"hide": false,
"interval": "",
"legendFormat": "Rejected",
"range": true,
"refId": "B"
}
],
"title": "C Chain Blocks",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Number of blocks this node has proposed on the C-Chain in the last day. Since C-Chain blocks are produced at a fast rate, block producers are selected by stake weight.",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 3,
"x": 21,
"y": 12
},
"id": 43,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"text": {},
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": true,
"expr": "round(increase(lux_C_blks_built{instance=~\"$host\", job=\"luxd\"}[1d]))",
"interval": "",
"legendFormat": "Built C blocks",
"range": true,
"refId": "A"
}
],
"title": "Proposed C blocks",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Number of blocks accepted in the last minute",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"max": 100,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 3,
"x": 0,
"y": 17
},
"id": 28,
"options": {
"displayMode": "gradient",
"minVizHeight": 10,
"minVizWidth": 0,
"namePlacement": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showUnfilled": true,
"text": {},
"valueMode": "color"
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"expr": "round(increase(lux_X_blks_accepted_count{instance=~\"$host\", job=\"luxd\"}[1m]))",
"interval": "",
"legendFormat": "X Chain",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"expr": "round(increase(lux_P_blks_accepted_count{instance=~\"$host\", job=\"luxd\"}[1m]))",
"hide": false,
"interval": "",
"legendFormat": "P Chain",
"range": true,
"refId": "B"
},
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"expr": "round(increase(lux_C_blks_accepted_count{instance=~\"$host\", job=\"luxd\"}[1m]))",
"hide": false,
"interval": "",
"legendFormat": "C Chain",
"range": true,
"refId": "C"
}
],
"title": "Accepted Blocks",
"type": "bargauge"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Number of blocks currently being processed by the node",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"max": 100,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "#EAB839",
"value": 40
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 3,
"x": 3,
"y": 17
},
"id": 18,
"options": {
"displayMode": "lcd",
"minVizHeight": 10,
"minVizWidth": 0,
"namePlacement": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showUnfilled": true,
"text": {},
"valueMode": "color"
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"expr": "lux_X_blks_processing{instance=~\"$host\", job=\"luxd\"}",
"interval": "",
"legendFormat": "X Chain",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"expr": "lux_P_blks_processing{instance=~\"$host\", job=\"luxd\"}",
"hide": false,
"interval": "",
"legendFormat": "P Chain",
"range": true,
"refId": "B"
},
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"expr": "lux_C_blks_processing{instance=~\"$host\", job=\"luxd\"}",
"hide": false,
"interval": "",
"legendFormat": "C Chain",
"range": true,
"refId": "C"
}
],
"title": "Blocks processing",
"type": "bargauge"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Number of peers currently being benched (ignored) by the node",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 3,
"x": 6,
"y": 17
},
"id": 29,
"options": {
"displayMode": "lcd",
"minVizHeight": 10,
"minVizWidth": 0,
"namePlacement": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showUnfilled": true,
"text": {},
"valueMode": "color"
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"expr": "lux_X_benchlist_benched_num{instance=~\"$host\", job=\"luxd\"}",
"interval": "",
"legendFormat": "X Chain",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"expr": "lux_P_benchlist_benched_num{instance=~\"$host\", job=\"luxd\"}",
"hide": false,
"interval": "",
"legendFormat": "P Chain",
"range": true,
"refId": "B"
},
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"expr": "lux_C_benchlist_benched_num{instance=~\"$host\", job=\"luxd\"}",
"hide": false,
"interval": "",
"legendFormat": "C Chain",
"range": true,
"refId": "C"
}
],
"title": "Benched nodes",
"type": "bargauge"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "Percentage of successful queries per chain in the last minute",
"fieldConfig": {
"defaults": {
"color": {
"mode": "continuous-RdYlGr"
},
"mappings": [],
"max": 1,
"min": 0.8,
"thresholds": {
"mode": "percentage",
"steps": [
{
"color": "red",
"value": null
},
{
"color": "yellow",
"value": 90
},
{
"color": "green",
"value": 95
}
]
},
"unit": "percentunit"
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 3,
"x": 9,
"y": 17
},
"id": 30,
"options": {
"displayMode": "gradient",
"minVizHeight": 10,
"minVizWidth": 0,
"namePlacement": "auto",
"orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showUnfilled": true,
"text": {},
"valueMode": "color"
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"expr": "(increase(lux_X_handler_chits_count{instance=~\"$host\", job=\"luxd\"}[1m]) + 1) / (increase(lux_X_handler_chits_count{instance=~\"$host\", job=\"luxd\"}[1m]) + increase(lux_X_handler_query_failed_count{instance=~\"$host\", job=\"luxd\"}[1m]) + 1)",
"interval": "",
"legendFormat": "X Chain",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"expr": "(increase(lux_P_handler_chits_count{instance=~\"$host\", job=\"luxd\"}[1m]) + 1) / (increase(lux_P_handler_chits_count{instance=~\"$host\", job=\"luxd\"}[1m]) + increase(lux_P_handler_query_failed_count{instance=~\"$host\", job=\"luxd\"}[1m]) + 1)",
"hide": false,
"interval": "",
"legendFormat": "P Chain",
"range": true,
"refId": "B"
},
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"expr": "(increase(lux_C_handler_chits_count{instance=~\"$host\", job=\"luxd\"}[1m]) + 1) / (increase(lux_C_handler_chits_count{instance=~\"$host\", job=\"luxd\"}[1m]) + increase(lux_C_handler_query_failed_count{instance=~\"$host\", job=\"luxd\"}[1m]) + 1)",
"hide": false,
"interval": "",
"legendFormat": "C Chain",
"range": true,
"refId": "C"
}
],
"title": "Queries success",
"type": "bargauge"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"description": "How long each database operation is taking on average",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "smooth",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "ns"
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 12,
"x": 12,
"y": 18
},
"id": 32,
"options": {
"legend": {
"calcs": [
"mean",
"lastNotNull",
"max"
],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "8.0.5",
"targets": [
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": true,
"expr": "increase(lux_db_put_sum{instance=~\"$host\",job=\"luxd\"}[5m])/increase(lux_db_put_count{instance=~\"$host\",job=\"luxd\"}[5m])",
"interval": "",
"legendFormat": "put",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": true,
"expr": "increase(lux_db_get_sum{instance=~\"$host\",job=\"luxd\"}[5m])/increase(lux_db_get_count{instance=~\"$host\",job=\"luxd\"}[5m])",
"interval": "",
"legendFormat": "get",
"range": true,
"refId": "B"
},
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": true,
"expr": "increase(lux_db_delete_sum{instance=~\"$host\",job=\"luxd\"}[5m])/increase(lux_db_delete_count{instance=~\"$host\",job=\"luxd\"}[5m])",
"interval": "",
"legendFormat": "delete",
"range": true,
"refId": "C"
},
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": true,
"expr": "increase(lux_db_has_sum{instance=~\"$host\",job=\"luxd\"}[5m])/increase(lux_db_has_count{instance=~\"$host\",job=~\"luxd\"}[5m])",
"interval": "",
"legendFormat": "has",
"range": true,
"refId": "D"
},
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": true,
"expr": "increase(lux_db_compact_size_sum{instance=~\"$host\",job=\"luxd\"}[5m])/increase(lux_db_compact_size_count{instance=~\"$host\",job=\"luxd\"}[5m])",
"interval": "",
"legendFormat": "compact",
"range": true,
"refId": "E"
},
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": true,
"expr": "increase(lux_db_batch_put_sum{instance=~\"$host\",job=\"luxd\"}[5m])/increase(lux_db_batch_put_count{instance=~\"$host\",job=\"luxd\"}[5m])",
"interval": "",
"legendFormat": "batch put",
"range": true,
"refId": "F"
},
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": true,
"expr": "increase(lux_db_batch_delete_sum{instance=~\"$host\",job=\"luxd\"}[5m])/increase(lux_db_batch_delete_count{instance=~\"$host\",job=\"luxd\"}[5m])",
"interval": "",
"legendFormat": "batch delete",
"range": true,
"refId": "G"
},
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": true,
"expr": "increase(lux_db_batch_reset_sum{instance=~\"$host\",job=\"luxd\"}[5m])/increase(lux_db_batch_reset_count{instance=~\"$host\",job=\"luxd\"}[5m])",
"interval": "",
"legendFormat": "batch reset",
"range": true,
"refId": "H"
},
{
"datasource": {
"type": "prometheus"
},
"editorMode": "code",
"exemplar": true,
"expr": "increase(lux_db_batch_replay_sum{instance=~\"$host\",job=\"luxd\"}[5m])/increase(lux_db_batch_replay_count{instance=~\"$host\",job=\"luxd\"}[5m])",
"interval": "",
"legendFormat": "batch replay",
"range": true,
"refId": "I"
}
],
"title": "Database Operations Latency",
"type": "timeseries"
}
],
"refresh": "10s",
"schemaVersion": 38,
"tags": [
"Lux"
],
"templating": {
"list": [
{
"current": {
"selected": true,
"text": "34.230.45.70:9100",
"value": "34.230.45.70:9100"
},
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"definition": "label_values(instance)",
"hide": 0,
"includeAll": true,
"multi": false,
"name": "machine",
"options": [],
"query": {
"qryType": 1,
"query": "label_values(instance)",
"refId": "PrometheusVariableQueryEditor-VariableQuery"
},
"refresh": 1,
"regex": "/9100/",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": "34.230.45.70:9650",
"value": "34.230.45.70:9650"
},
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"definition": "label_values(instance)",
"hide": 0,
"includeAll": true,
"multi": false,
"name": "host",
"options": [],
"query": {
"qryType": 1,
"query": "label_values(instance)",
"refId": "PrometheusVariableQueryEditor-VariableQuery"
},
"refresh": 1,
"regex": "/9650/",
"skipUrlSync": false,
"sort": 0,
"type": "query"
}
]
},
"time": {
"from": "now-3h",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "Lux Main Dashboard",
"uid": "kBQpRdWnk",
"version": 24,
"weekStart": ""
}