Skip to content

Commit 39e3010

Browse files
author
0xfffffffa
committed
grafana fixes
1 parent 8e27eff commit 39e3010

6 files changed

Lines changed: 6 additions & 537 deletions

File tree

monitoring/grafana/custom.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ allow_embedding = true
2121

2222
[users]
2323
# Performance optimization
24-
default_theme = light
24+
default_theme = dark
2525

2626
[unified_alerting]
2727
# Reduce alerting overhead for viewers

monitoring/grafana/dashboards/qbtc-dashboard.json

Lines changed: 0 additions & 219 deletions
Original file line numberDiff line numberDiff line change
@@ -423,225 +423,6 @@
423423
],
424424
"title": "Pending Transactions",
425425
"type": "timeseries"
426-
},
427-
{
428-
"collapsed": false,
429-
"gridPos": {
430-
"h": 1,
431-
"w": 24,
432-
"x": 0,
433-
"y": 14
434-
},
435-
"id": 22,
436-
"panels": [],
437-
"title": "Network Health",
438-
"type": "row"
439-
},
440-
{
441-
"datasource": "Prometheus",
442-
"fieldConfig": {
443-
"defaults": {
444-
"color": {
445-
"mode": "palette-classic"
446-
},
447-
"custom": {
448-
"axisLabel": "",
449-
"axisPlacement": "auto",
450-
"barAlignment": 0,
451-
"drawStyle": "line",
452-
"fillOpacity": 10,
453-
"gradientMode": "none",
454-
"hideFrom": {
455-
"tooltip": false,
456-
"viz": false,
457-
"legend": false
458-
},
459-
"lineInterpolation": "linear",
460-
"lineWidth": 1,
461-
"pointSize": 5,
462-
"scaleDistribution": {
463-
"type": "linear"
464-
},
465-
"showPoints": "never",
466-
"spanNulls": false,
467-
"stacking": {
468-
"group": "A",
469-
"mode": "none"
470-
},
471-
"thresholdsStyle": {
472-
"mode": "off"
473-
}
474-
},
475-
"mappings": [],
476-
"thresholds": {
477-
"mode": "absolute",
478-
"steps": [
479-
{
480-
"color": "green",
481-
"value": null
482-
}
483-
]
484-
},
485-
"unit": "none"
486-
},
487-
"overrides": []
488-
},
489-
"gridPos": {
490-
"h": 8,
491-
"w": 12,
492-
"x": 0,
493-
"y": 15
494-
},
495-
"id": 8,
496-
"options": {
497-
"tooltip": {
498-
"mode": "multi"
499-
},
500-
"legend": {
501-
"calcs": [],
502-
"displayMode": "list",
503-
"placement": "bottom"
504-
}
505-
},
506-
"pluginVersion": "8.0.0",
507-
"targets": [
508-
{
509-
"expr": "qbtc_connected_peers_total{instance=~\"$instance\"}",
510-
"refId": "A",
511-
"legendFormat": "Connected Peers"
512-
},
513-
{
514-
"expr": "qbtc_synced_peers{instance=~\"$instance\"}",
515-
"refId": "B",
516-
"legendFormat": "Synced Peers"
517-
},
518-
{
519-
"expr": "qbtc_failed_peers{instance=~\"$instance\"}",
520-
"refId": "C",
521-
"legendFormat": "Failed Peers"
522-
}
523-
],
524-
"title": "Peer Statistics",
525-
"type": "timeseries"
526-
},
527-
{
528-
"datasource": "Prometheus",
529-
"fieldConfig": {
530-
"defaults": {
531-
"mappings": [],
532-
"thresholds": {
533-
"mode": "percentage",
534-
"steps": [
535-
{
536-
"color": "red",
537-
"value": null
538-
},
539-
{
540-
"color": "yellow",
541-
"value": 50
542-
},
543-
{
544-
"color": "green",
545-
"value": 80
546-
}
547-
]
548-
},
549-
"unit": "percent",
550-
"min": 0,
551-
"max": 100
552-
},
553-
"overrides": []
554-
},
555-
"gridPos": {
556-
"h": 8,
557-
"w": 6,
558-
"x": 12,
559-
"y": 15
560-
},
561-
"id": 9,
562-
"options": {
563-
"orientation": "auto",
564-
"reduceOptions": {
565-
"values": false,
566-
"calcs": [
567-
"lastNotNull"
568-
],
569-
"fields": ""
570-
},
571-
"showThresholdLabels": false,
572-
"showThresholdMarkers": true,
573-
"text": {}
574-
},
575-
"pluginVersion": "8.0.0",
576-
"targets": [
577-
{
578-
"expr": "(qbtc_synced_peers{instance=~\"$instance\"} / qbtc_connected_peers_total{instance=~\"$instance\"}) * 100",
579-
"refId": "A"
580-
}
581-
],
582-
"title": "Peer Sync Rate",
583-
"type": "gauge"
584-
},
585-
{
586-
"datasource": "Prometheus",
587-
"fieldConfig": {
588-
"defaults": {
589-
"custom": {
590-
"align": "auto",
591-
"displayMode": "auto"
592-
},
593-
"mappings": [
594-
{
595-
"options": {
596-
"1": {
597-
"text": "Healthy",
598-
"color": "green"
599-
},
600-
"0": {
601-
"text": "Unhealthy",
602-
"color": "red"
603-
}
604-
},
605-
"type": "value"
606-
}
607-
],
608-
"thresholds": {
609-
"mode": "absolute",
610-
"steps": [
611-
{
612-
"color": "red",
613-
"value": null
614-
},
615-
{
616-
"color": "green",
617-
"value": 1
618-
}
619-
]
620-
}
621-
},
622-
"overrides": []
623-
},
624-
"gridPos": {
625-
"h": 8,
626-
"w": 6,
627-
"x": 18,
628-
"y": 15
629-
},
630-
"id": 10,
631-
"options": {
632-
"showHeader": true
633-
},
634-
"pluginVersion": "8.0.0",
635-
"targets": [
636-
{
637-
"expr": "qbtc_health_check_status{instance=~\"$instance\"}",
638-
"format": "table",
639-
"instant": true,
640-
"refId": "A"
641-
}
642-
],
643-
"title": "Component Health",
644-
"type": "table"
645426
}
646427
],
647428
"refresh": "5s",

0 commit comments

Comments
 (0)