731 lines
19 KiB
JSON
731 lines
19 KiB
JSON
{
|
|
"__inputs": [
|
|
{
|
|
"name": "DS_PROMETHEUS",
|
|
"label": "Prometheus",
|
|
"description": "Prometheus data source for ClawChain metrics",
|
|
"type": "datasource",
|
|
"pluginId": "prometheus",
|
|
"pluginName": "Prometheus"
|
|
}
|
|
],
|
|
"annotations": {
|
|
"list": [
|
|
{
|
|
"builtIn": 1,
|
|
"datasource": "-- Grafana --",
|
|
"enable": true,
|
|
"hide": true,
|
|
"iconColor": "rgba(0, 211, 255, 1)",
|
|
"name": "Annotations & Alerts",
|
|
"type": "dashboard"
|
|
}
|
|
]
|
|
},
|
|
"description": "ClawChain Production Observability Dashboard - Phase 13 Track C",
|
|
"editable": true,
|
|
"gnetId": null,
|
|
"graphTooltip": 1,
|
|
"id": null,
|
|
"iteration": 1708900000000,
|
|
"links": [],
|
|
"panels": [
|
|
{
|
|
"collapsed": false,
|
|
"gridPos": { "h": 1, "w": 24, "x": 0, "y": 0 },
|
|
"id": 100,
|
|
"title": "Chain Overview",
|
|
"type": "row"
|
|
},
|
|
{
|
|
"datasource": "${DS_PROMETHEUS}",
|
|
"description": "Current blockchain height",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": { "mode": "thresholds" },
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{ "color": "green", "value": null }
|
|
]
|
|
},
|
|
"unit": "none"
|
|
}
|
|
},
|
|
"gridPos": { "h": 4, "w": 4, "x": 0, "y": 1 },
|
|
"id": 1,
|
|
"options": {
|
|
"colorMode": "value",
|
|
"graphMode": "area",
|
|
"justifyMode": "auto",
|
|
"orientation": "auto",
|
|
"reduceOptions": {
|
|
"calcs": ["lastNotNull"],
|
|
"fields": "",
|
|
"values": false
|
|
},
|
|
"textMode": "auto"
|
|
},
|
|
"title": "Block Height",
|
|
"type": "stat",
|
|
"targets": [
|
|
{
|
|
"expr": "cometbft_consensus_height",
|
|
"legendFormat": "Height",
|
|
"refId": "A"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"datasource": "${DS_PROMETHEUS}",
|
|
"description": "Average block production interval over the last 5 minutes",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": { "mode": "thresholds" },
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{ "color": "green", "value": null },
|
|
{ "color": "yellow", "value": 7 },
|
|
{ "color": "red", "value": 10 }
|
|
]
|
|
},
|
|
"unit": "s"
|
|
}
|
|
},
|
|
"gridPos": { "h": 4, "w": 4, "x": 4, "y": 1 },
|
|
"id": 2,
|
|
"options": {
|
|
"colorMode": "value",
|
|
"graphMode": "area",
|
|
"justifyMode": "auto",
|
|
"orientation": "auto",
|
|
"reduceOptions": {
|
|
"calcs": ["lastNotNull"],
|
|
"fields": "",
|
|
"values": false
|
|
},
|
|
"textMode": "auto"
|
|
},
|
|
"title": "Block Time",
|
|
"type": "stat",
|
|
"targets": [
|
|
{
|
|
"expr": "rate(cometbft_consensus_block_interval_seconds_sum[5m]) / rate(cometbft_consensus_block_interval_seconds_count[5m])",
|
|
"legendFormat": "Avg Block Time",
|
|
"refId": "A"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"datasource": "${DS_PROMETHEUS}",
|
|
"description": "Whether the validator is participating in consensus (1 = up, 0 = down)",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": { "mode": "thresholds" },
|
|
"mappings": [
|
|
{ "options": { "0": { "color": "red", "text": "DOWN" }, "1": { "color": "green", "text": "UP" } }, "type": "value" }
|
|
],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{ "color": "red", "value": null },
|
|
{ "color": "green", "value": 1 }
|
|
]
|
|
},
|
|
"unit": "none"
|
|
}
|
|
},
|
|
"gridPos": { "h": 4, "w": 4, "x": 8, "y": 1 },
|
|
"id": 3,
|
|
"options": {
|
|
"colorMode": "background",
|
|
"graphMode": "none",
|
|
"justifyMode": "auto",
|
|
"orientation": "auto",
|
|
"reduceOptions": {
|
|
"calcs": ["lastNotNull"],
|
|
"fields": "",
|
|
"values": false
|
|
},
|
|
"textMode": "auto"
|
|
},
|
|
"title": "Validator Status",
|
|
"type": "stat",
|
|
"targets": [
|
|
{
|
|
"expr": "up{job=\"cometbft\"}",
|
|
"legendFormat": "Status",
|
|
"refId": "A"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"datasource": "${DS_PROMETHEUS}",
|
|
"description": "Current consensus round (0 = first round, healthy)",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": { "mode": "thresholds" },
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{ "color": "green", "value": null },
|
|
{ "color": "yellow", "value": 1 },
|
|
{ "color": "red", "value": 3 }
|
|
]
|
|
},
|
|
"unit": "none"
|
|
}
|
|
},
|
|
"gridPos": { "h": 4, "w": 4, "x": 12, "y": 1 },
|
|
"id": 4,
|
|
"options": {
|
|
"colorMode": "value",
|
|
"graphMode": "area",
|
|
"justifyMode": "auto",
|
|
"orientation": "auto",
|
|
"reduceOptions": {
|
|
"calcs": ["lastNotNull"],
|
|
"fields": "",
|
|
"values": false
|
|
},
|
|
"textMode": "auto"
|
|
},
|
|
"title": "Consensus Round",
|
|
"type": "stat",
|
|
"targets": [
|
|
{
|
|
"expr": "cometbft_consensus_rounds",
|
|
"legendFormat": "Round",
|
|
"refId": "A"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"datasource": "${DS_PROMETHEUS}",
|
|
"description": "Number of connected P2P peers",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": { "mode": "thresholds" },
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{ "color": "red", "value": null },
|
|
{ "color": "yellow", "value": 3 },
|
|
{ "color": "green", "value": 5 }
|
|
]
|
|
},
|
|
"unit": "none"
|
|
}
|
|
},
|
|
"gridPos": { "h": 4, "w": 4, "x": 16, "y": 1 },
|
|
"id": 5,
|
|
"options": {
|
|
"colorMode": "value",
|
|
"graphMode": "area",
|
|
"justifyMode": "auto",
|
|
"orientation": "auto",
|
|
"reduceOptions": {
|
|
"calcs": ["lastNotNull"],
|
|
"fields": "",
|
|
"values": false
|
|
},
|
|
"textMode": "auto"
|
|
},
|
|
"title": "Number of Peers",
|
|
"type": "stat",
|
|
"targets": [
|
|
{
|
|
"expr": "cometbft_p2p_peers",
|
|
"legendFormat": "Peers",
|
|
"refId": "A"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"datasource": "${DS_PROMETHEUS}",
|
|
"description": "Number of pending transactions in the mempool",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": { "mode": "thresholds" },
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{ "color": "green", "value": null },
|
|
{ "color": "yellow", "value": 500 },
|
|
{ "color": "red", "value": 1000 }
|
|
]
|
|
},
|
|
"unit": "none"
|
|
}
|
|
},
|
|
"gridPos": { "h": 4, "w": 4, "x": 20, "y": 1 },
|
|
"id": 6,
|
|
"options": {
|
|
"colorMode": "value",
|
|
"graphMode": "area",
|
|
"justifyMode": "auto",
|
|
"orientation": "auto",
|
|
"reduceOptions": {
|
|
"calcs": ["lastNotNull"],
|
|
"fields": "",
|
|
"values": false
|
|
},
|
|
"textMode": "auto"
|
|
},
|
|
"title": "Mempool Size",
|
|
"type": "stat",
|
|
"targets": [
|
|
{
|
|
"expr": "cometbft_mempool_size",
|
|
"legendFormat": "Txs",
|
|
"refId": "A"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"collapsed": false,
|
|
"gridPos": { "h": 1, "w": 24, "x": 0, "y": 5 },
|
|
"id": 101,
|
|
"title": "Consensus & Blocks",
|
|
"type": "row"
|
|
},
|
|
{
|
|
"datasource": "${DS_PROMETHEUS}",
|
|
"description": "Block height over time",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": { "mode": "palette-classic" },
|
|
"custom": {
|
|
"axisLabel": "Height",
|
|
"drawStyle": "line",
|
|
"fillOpacity": 10,
|
|
"lineWidth": 2,
|
|
"pointSize": 5,
|
|
"showPoints": "never",
|
|
"spanNulls": true
|
|
},
|
|
"unit": "none"
|
|
}
|
|
},
|
|
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 6 },
|
|
"id": 10,
|
|
"options": {
|
|
"legend": { "displayMode": "list", "placement": "bottom" },
|
|
"tooltip": { "mode": "single" }
|
|
},
|
|
"title": "Block Height Over Time",
|
|
"type": "timeseries",
|
|
"targets": [
|
|
{
|
|
"expr": "cometbft_consensus_height",
|
|
"legendFormat": "Block Height",
|
|
"refId": "A"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"datasource": "${DS_PROMETHEUS}",
|
|
"description": "Average block interval over time",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": { "mode": "palette-classic" },
|
|
"custom": {
|
|
"axisLabel": "Seconds",
|
|
"drawStyle": "line",
|
|
"fillOpacity": 10,
|
|
"lineWidth": 2,
|
|
"pointSize": 5,
|
|
"showPoints": "never",
|
|
"spanNulls": true
|
|
},
|
|
"unit": "s"
|
|
}
|
|
},
|
|
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 6 },
|
|
"id": 11,
|
|
"options": {
|
|
"legend": { "displayMode": "list", "placement": "bottom" },
|
|
"tooltip": { "mode": "single" }
|
|
},
|
|
"title": "Block Time (Average Interval)",
|
|
"type": "timeseries",
|
|
"targets": [
|
|
{
|
|
"expr": "rate(cometbft_consensus_block_interval_seconds_sum[5m]) / rate(cometbft_consensus_block_interval_seconds_count[5m])",
|
|
"legendFormat": "Avg Block Time",
|
|
"refId": "A"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"datasource": "${DS_PROMETHEUS}",
|
|
"description": "Missing validator power over time indicates missed blocks",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": { "mode": "palette-classic" },
|
|
"custom": {
|
|
"axisLabel": "Missed",
|
|
"drawStyle": "bars",
|
|
"fillOpacity": 50,
|
|
"lineWidth": 1,
|
|
"pointSize": 5,
|
|
"showPoints": "never"
|
|
},
|
|
"unit": "none"
|
|
}
|
|
},
|
|
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 14 },
|
|
"id": 12,
|
|
"options": {
|
|
"legend": { "displayMode": "list", "placement": "bottom" },
|
|
"tooltip": { "mode": "single" }
|
|
},
|
|
"title": "Missed Blocks (Missing Validator Power)",
|
|
"type": "timeseries",
|
|
"targets": [
|
|
{
|
|
"expr": "increase(cometbft_consensus_missing_validators_power[5m])",
|
|
"legendFormat": "Missing Validator Power",
|
|
"refId": "A"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"datasource": "${DS_PROMETHEUS}",
|
|
"description": "Transaction throughput: rate of transactions processed per second",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": { "mode": "palette-classic" },
|
|
"custom": {
|
|
"axisLabel": "tx/s",
|
|
"drawStyle": "line",
|
|
"fillOpacity": 20,
|
|
"lineWidth": 2,
|
|
"pointSize": 5,
|
|
"showPoints": "never",
|
|
"spanNulls": true
|
|
},
|
|
"unit": "ops"
|
|
}
|
|
},
|
|
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 14 },
|
|
"id": 13,
|
|
"options": {
|
|
"legend": { "displayMode": "list", "placement": "bottom" },
|
|
"tooltip": { "mode": "single" }
|
|
},
|
|
"title": "Transaction Throughput",
|
|
"type": "timeseries",
|
|
"targets": [
|
|
{
|
|
"expr": "rate(cometbft_consensus_num_txs[5m])",
|
|
"legendFormat": "Tx/s (committed)",
|
|
"refId": "A"
|
|
},
|
|
{
|
|
"expr": "rate(cometbft_mempool_failed_txs[5m])",
|
|
"legendFormat": "Failed Tx/s",
|
|
"refId": "B"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"collapsed": false,
|
|
"gridPos": { "h": 1, "w": 24, "x": 0, "y": 22 },
|
|
"id": 102,
|
|
"title": "Network",
|
|
"type": "row"
|
|
},
|
|
{
|
|
"datasource": "${DS_PROMETHEUS}",
|
|
"description": "Number of connected peers over time",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": { "mode": "palette-classic" },
|
|
"custom": {
|
|
"axisLabel": "Peers",
|
|
"drawStyle": "line",
|
|
"fillOpacity": 10,
|
|
"lineWidth": 2,
|
|
"pointSize": 5,
|
|
"showPoints": "never",
|
|
"spanNulls": true
|
|
},
|
|
"unit": "none"
|
|
}
|
|
},
|
|
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 23 },
|
|
"id": 20,
|
|
"options": {
|
|
"legend": { "displayMode": "list", "placement": "bottom" },
|
|
"tooltip": { "mode": "single" }
|
|
},
|
|
"title": "Peer Count",
|
|
"type": "timeseries",
|
|
"targets": [
|
|
{
|
|
"expr": "cometbft_p2p_peers",
|
|
"legendFormat": "Connected Peers",
|
|
"refId": "A"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"datasource": "${DS_PROMETHEUS}",
|
|
"description": "Mempool size and total bytes over time",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": { "mode": "palette-classic" },
|
|
"custom": {
|
|
"axisLabel": "Txs / Bytes",
|
|
"drawStyle": "line",
|
|
"fillOpacity": 10,
|
|
"lineWidth": 2,
|
|
"pointSize": 5,
|
|
"showPoints": "never",
|
|
"spanNulls": true
|
|
},
|
|
"unit": "none"
|
|
}
|
|
},
|
|
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 23 },
|
|
"id": 21,
|
|
"options": {
|
|
"legend": { "displayMode": "list", "placement": "bottom" },
|
|
"tooltip": { "mode": "single" }
|
|
},
|
|
"title": "Mempool",
|
|
"type": "timeseries",
|
|
"targets": [
|
|
{
|
|
"expr": "cometbft_mempool_size",
|
|
"legendFormat": "Tx Count",
|
|
"refId": "A"
|
|
},
|
|
{
|
|
"expr": "cometbft_mempool_size_bytes",
|
|
"legendFormat": "Size (bytes)",
|
|
"refId": "B"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"collapsed": false,
|
|
"gridPos": { "h": 1, "w": 24, "x": 0, "y": 31 },
|
|
"id": 103,
|
|
"title": "System Resources",
|
|
"type": "row"
|
|
},
|
|
{
|
|
"datasource": "${DS_PROMETHEUS}",
|
|
"description": "System memory usage percentage",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": { "mode": "palette-classic" },
|
|
"custom": {
|
|
"axisLabel": "%",
|
|
"drawStyle": "line",
|
|
"fillOpacity": 20,
|
|
"lineWidth": 2,
|
|
"pointSize": 5,
|
|
"showPoints": "never",
|
|
"spanNulls": true
|
|
},
|
|
"max": 100,
|
|
"min": 0,
|
|
"unit": "percent"
|
|
}
|
|
},
|
|
"gridPos": { "h": 8, "w": 8, "x": 0, "y": 32 },
|
|
"id": 30,
|
|
"options": {
|
|
"legend": { "displayMode": "list", "placement": "bottom" },
|
|
"tooltip": { "mode": "single" }
|
|
},
|
|
"title": "Memory Usage",
|
|
"type": "timeseries",
|
|
"targets": [
|
|
{
|
|
"expr": "(1 - (node_memory_MemAvailable_bytes / node_memory_MemTotal_bytes)) * 100",
|
|
"legendFormat": "Memory Used %",
|
|
"refId": "A"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"datasource": "${DS_PROMETHEUS}",
|
|
"description": "CPU usage (1 - idle)",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": { "mode": "palette-classic" },
|
|
"custom": {
|
|
"axisLabel": "%",
|
|
"drawStyle": "line",
|
|
"fillOpacity": 20,
|
|
"lineWidth": 2,
|
|
"pointSize": 5,
|
|
"showPoints": "never",
|
|
"spanNulls": true
|
|
},
|
|
"max": 100,
|
|
"min": 0,
|
|
"unit": "percent"
|
|
}
|
|
},
|
|
"gridPos": { "h": 8, "w": 8, "x": 8, "y": 32 },
|
|
"id": 31,
|
|
"options": {
|
|
"legend": { "displayMode": "list", "placement": "bottom" },
|
|
"tooltip": { "mode": "single" }
|
|
},
|
|
"title": "CPU Usage",
|
|
"type": "timeseries",
|
|
"targets": [
|
|
{
|
|
"expr": "100 - (avg by (instance) (rate(node_cpu_seconds_total{mode=\"idle\"}[5m])) * 100)",
|
|
"legendFormat": "CPU Used %",
|
|
"refId": "A"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"datasource": "${DS_PROMETHEUS}",
|
|
"description": "Disk usage on root filesystem",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": { "mode": "thresholds" },
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{ "color": "green", "value": null },
|
|
{ "color": "yellow", "value": 70 },
|
|
{ "color": "red", "value": 90 }
|
|
]
|
|
},
|
|
"max": 100,
|
|
"min": 0,
|
|
"unit": "percent"
|
|
}
|
|
},
|
|
"gridPos": { "h": 8, "w": 8, "x": 16, "y": 32 },
|
|
"id": 32,
|
|
"options": {
|
|
"orientation": "auto",
|
|
"reduceOptions": {
|
|
"calcs": ["lastNotNull"],
|
|
"fields": "",
|
|
"values": false
|
|
},
|
|
"showThresholdLabels": false,
|
|
"showThresholdMarkers": true
|
|
},
|
|
"title": "Disk Usage",
|
|
"type": "gauge",
|
|
"targets": [
|
|
{
|
|
"expr": "(1 - (node_filesystem_avail_bytes{mountpoint=\"/\"} / node_filesystem_size_bytes{mountpoint=\"/\"})) * 100",
|
|
"legendFormat": "Disk Used %",
|
|
"refId": "A"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"collapsed": false,
|
|
"gridPos": { "h": 1, "w": 24, "x": 0, "y": 40 },
|
|
"id": 104,
|
|
"title": "Agent Module (Custom)",
|
|
"type": "row"
|
|
},
|
|
{
|
|
"datasource": "${DS_PROMETHEUS}",
|
|
"description": "Total agent registrations on ClawChain (custom Cosmos SDK telemetry metric)",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": { "mode": "thresholds" },
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{ "color": "green", "value": null }
|
|
]
|
|
},
|
|
"unit": "none"
|
|
}
|
|
},
|
|
"gridPos": { "h": 4, "w": 6, "x": 0, "y": 41 },
|
|
"id": 40,
|
|
"options": {
|
|
"colorMode": "value",
|
|
"graphMode": "area",
|
|
"justifyMode": "auto",
|
|
"orientation": "auto",
|
|
"reduceOptions": {
|
|
"calcs": ["lastNotNull"],
|
|
"fields": "",
|
|
"values": false
|
|
},
|
|
"textMode": "auto"
|
|
},
|
|
"title": "Agent Registrations",
|
|
"type": "stat",
|
|
"targets": [
|
|
{
|
|
"expr": "clawchain_agent_registrations_total",
|
|
"legendFormat": "Registrations",
|
|
"refId": "A"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"datasource": "${DS_PROMETHEUS}",
|
|
"description": "Agent registration rate over time",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": { "mode": "palette-classic" },
|
|
"custom": {
|
|
"axisLabel": "Registrations",
|
|
"drawStyle": "line",
|
|
"fillOpacity": 20,
|
|
"lineWidth": 2,
|
|
"pointSize": 5,
|
|
"showPoints": "never",
|
|
"spanNulls": true
|
|
},
|
|
"unit": "none"
|
|
}
|
|
},
|
|
"gridPos": { "h": 8, "w": 18, "x": 6, "y": 41 },
|
|
"id": 41,
|
|
"options": {
|
|
"legend": { "displayMode": "list", "placement": "bottom" },
|
|
"tooltip": { "mode": "single" }
|
|
},
|
|
"title": "Agent Registrations Over Time",
|
|
"type": "timeseries",
|
|
"targets": [
|
|
{
|
|
"expr": "increase(clawchain_agent_registrations_total[1h])",
|
|
"legendFormat": "New Registrations (1h)",
|
|
"refId": "A"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"refresh": "15s",
|
|
"schemaVersion": 36,
|
|
"style": "dark",
|
|
"tags": ["clawchain", "cometbft", "cosmos", "blockchain", "observability"],
|
|
"templating": {
|
|
"list": []
|
|
},
|
|
"time": {
|
|
"from": "now-6h",
|
|
"to": "now"
|
|
},
|
|
"timepicker": {},
|
|
"timezone": "browser",
|
|
"title": "ClawChain Production Dashboard",
|
|
"uid": "clawchain-prod-v1",
|
|
"version": 1
|
|
}
|