144 lines
3.7 KiB
JSON
144 lines
3.7 KiB
JSON
{
|
|
"__inputs": [],
|
|
"__requires": [],
|
|
"annotations": { "list": [] },
|
|
"description": "OmniOil SCADA platform — operational business metrics",
|
|
"editable": true,
|
|
"fiscalYearStartMonth": 0,
|
|
"graphTooltip": 1,
|
|
"id": null,
|
|
"links": [],
|
|
"panels": [
|
|
{
|
|
"id": 1,
|
|
"title": "Active Tags",
|
|
"type": "stat",
|
|
"gridPos": { "h": 4, "w": 6, "x": 0, "y": 0 },
|
|
"datasource": { "type": "prometheus", "uid": "${datasource}" },
|
|
"targets": [
|
|
{
|
|
"expr": "omnioil_active_tags",
|
|
"legendFormat": "Tags",
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"options": {
|
|
"colorMode": "background",
|
|
"graphMode": "none",
|
|
"justifyMode": "center",
|
|
"orientation": "auto",
|
|
"reduceOptions": { "calcs": ["lastNotNull"] }
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": { "mode": "thresholds" },
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [{ "color": "blue", "value": null }]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": 2,
|
|
"title": "Alarms Last 24h",
|
|
"type": "stat",
|
|
"gridPos": { "h": 4, "w": 6, "x": 6, "y": 0 },
|
|
"datasource": { "type": "prometheus", "uid": "${datasource}" },
|
|
"targets": [
|
|
{
|
|
"expr": "increase(omnioil_alarms_triggered_total[24h])",
|
|
"legendFormat": "Alarms (24h)",
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"options": {
|
|
"colorMode": "background",
|
|
"graphMode": "area",
|
|
"justifyMode": "center",
|
|
"orientation": "auto",
|
|
"reduceOptions": { "calcs": ["lastNotNull"] }
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": { "mode": "thresholds" },
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{ "color": "green", "value": null },
|
|
{ "color": "yellow", "value": 5 },
|
|
{ "color": "red", "value": 20 }
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": 3,
|
|
"title": "Telemetry Rate Over Time",
|
|
"type": "timeseries",
|
|
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 4 },
|
|
"datasource": { "type": "prometheus", "uid": "${datasource}" },
|
|
"targets": [
|
|
{
|
|
"expr": "rate(omnioil_telemetry_messages_total[5m])",
|
|
"legendFormat": "msg/s",
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": { "mode": "fixed", "fixedColor": "purple" },
|
|
"unit": "mps"
|
|
}
|
|
},
|
|
"options": { "tooltip": { "mode": "multi" } }
|
|
},
|
|
{
|
|
"id": 4,
|
|
"title": "Alarms Rate Over Time",
|
|
"type": "timeseries",
|
|
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 4 },
|
|
"datasource": { "type": "prometheus", "uid": "${datasource}" },
|
|
"targets": [
|
|
{
|
|
"expr": "rate(omnioil_alarms_triggered_total[5m])",
|
|
"legendFormat": "alarms/s",
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": { "mode": "fixed", "fixedColor": "red" },
|
|
"unit": "ops"
|
|
}
|
|
},
|
|
"options": { "tooltip": { "mode": "multi" } }
|
|
}
|
|
],
|
|
"refresh": "30s",
|
|
"schemaVersion": 38,
|
|
"tags": ["omnioil", "operations"],
|
|
"templating": {
|
|
"list": [
|
|
{
|
|
"current": {},
|
|
"hide": 0,
|
|
"includeAll": false,
|
|
"name": "datasource",
|
|
"options": [],
|
|
"query": "prometheus",
|
|
"refresh": 1,
|
|
"type": "datasource",
|
|
"label": "Datasource"
|
|
}
|
|
]
|
|
},
|
|
"time": { "from": "now-1h", "to": "now" },
|
|
"timepicker": {},
|
|
"timezone": "America/Bogota",
|
|
"title": "OmniOil — Operaciones",
|
|
"uid": "omnioil-operations",
|
|
"version": 1
|
|
}
|