176 lines
4.0 KiB
JSON
176 lines
4.0 KiB
JSON
|
|
{
|
||
|
|
"dashboard": {
|
||
|
|
"id": null,
|
||
|
|
"title": "Calejo Control Adapter - System Overview",
|
||
|
|
"tags": ["calejo", "control", "scada", "monitoring"],
|
||
|
|
"timezone": "browser",
|
||
|
|
"panels": [
|
||
|
|
{
|
||
|
|
"id": 1,
|
||
|
|
"title": "System Health",
|
||
|
|
"type": "stat",
|
||
|
|
"targets": [
|
||
|
|
{
|
||
|
|
"expr": "up{job=\"calejo-control\"}",
|
||
|
|
"legendFormat": "{{instance}} - {{job}}",
|
||
|
|
"refId": "A"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"gridPos": {
|
||
|
|
"h": 8,
|
||
|
|
"w": 12,
|
||
|
|
"x": 0,
|
||
|
|
"y": 0
|
||
|
|
},
|
||
|
|
"fieldConfig": {
|
||
|
|
"defaults": {
|
||
|
|
"color": {
|
||
|
|
"mode": "thresholds"
|
||
|
|
},
|
||
|
|
"mappings": [],
|
||
|
|
"thresholds": {
|
||
|
|
"steps": [
|
||
|
|
{
|
||
|
|
"color": "red",
|
||
|
|
"value": null
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"color": "green",
|
||
|
|
"value": 1
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": 2,
|
||
|
|
"title": "API Response Time",
|
||
|
|
"type": "timeseries",
|
||
|
|
"targets": [
|
||
|
|
{
|
||
|
|
"expr": "rate(http_request_duration_seconds_sum{job=\"calejo-control\"}[5m]) / rate(http_request_duration_seconds_count{job=\"calejo-control\"}[5m])",
|
||
|
|
"legendFormat": "Avg Response Time",
|
||
|
|
"refId": "A"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"gridPos": {
|
||
|
|
"h": 8,
|
||
|
|
"w": 12,
|
||
|
|
"x": 12,
|
||
|
|
"y": 0
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": 3,
|
||
|
|
"title": "HTTP Requests",
|
||
|
|
"type": "timeseries",
|
||
|
|
"targets": [
|
||
|
|
{
|
||
|
|
"expr": "rate(http_requests_total{job=\"calejo-control\"}[5m])",
|
||
|
|
"legendFormat": "{{method}} {{status}}",
|
||
|
|
"refId": "A"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"gridPos": {
|
||
|
|
"h": 8,
|
||
|
|
"w": 12,
|
||
|
|
"x": 0,
|
||
|
|
"y": 8
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": 4,
|
||
|
|
"title": "Error Rate",
|
||
|
|
"type": "timeseries",
|
||
|
|
"targets": [
|
||
|
|
{
|
||
|
|
"expr": "rate(http_requests_total{job=\"calejo-control\", status=~\"5..\"}[5m])",
|
||
|
|
"legendFormat": "5xx Errors",
|
||
|
|
"refId": "A"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"expr": "rate(http_requests_total{job=\"calejo-control\", status=~\"4..\"}[5m])",
|
||
|
|
"legendFormat": "4xx Errors",
|
||
|
|
"refId": "B"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"gridPos": {
|
||
|
|
"h": 8,
|
||
|
|
"w": 12,
|
||
|
|
"x": 12,
|
||
|
|
"y": 8
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": 5,
|
||
|
|
"title": "Active Connections",
|
||
|
|
"type": "stat",
|
||
|
|
"targets": [
|
||
|
|
{
|
||
|
|
"expr": "scada_connections_active{job=\"calejo-control\"}",
|
||
|
|
"legendFormat": "Active Connections",
|
||
|
|
"refId": "A"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"gridPos": {
|
||
|
|
"h": 8,
|
||
|
|
"w": 8,
|
||
|
|
"x": 0,
|
||
|
|
"y": 16
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": 6,
|
||
|
|
"title": "Modbus Devices",
|
||
|
|
"type": "stat",
|
||
|
|
"targets": [
|
||
|
|
{
|
||
|
|
"expr": "scada_modbus_devices_total{job=\"calejo-control\"}",
|
||
|
|
"legendFormat": "Modbus Devices",
|
||
|
|
"refId": "A"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"gridPos": {
|
||
|
|
"h": 8,
|
||
|
|
"w": 8,
|
||
|
|
"x": 8,
|
||
|
|
"y": 16
|
||
|
|
}
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"id": 7,
|
||
|
|
"title": "OPC UA Connections",
|
||
|
|
"type": "stat",
|
||
|
|
"targets": [
|
||
|
|
{
|
||
|
|
"expr": "scada_opcua_connections_active{job=\"calejo-control\"}",
|
||
|
|
"legendFormat": "OPC UA Connections",
|
||
|
|
"refId": "A"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"gridPos": {
|
||
|
|
"h": 8,
|
||
|
|
"w": 8,
|
||
|
|
"x": 16,
|
||
|
|
"y": 16
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"time": {
|
||
|
|
"from": "now-1h",
|
||
|
|
"to": "now"
|
||
|
|
},
|
||
|
|
"timepicker": {},
|
||
|
|
"templating": {
|
||
|
|
"list": []
|
||
|
|
},
|
||
|
|
"refresh": "5s",
|
||
|
|
"schemaVersion": 35,
|
||
|
|
"version": 0,
|
||
|
|
"uid": "calejo-control-overview"
|
||
|
|
},
|
||
|
|
"folderUid": "",
|
||
|
|
"message": "Calejo Control Adapter Dashboard",
|
||
|
|
"overwrite": true
|
||
|
|
}
|