Skip to content
Snippets Groups Projects
Commit c772f89e authored by Jan David Mol's avatar Jan David Mol
Browse files

L2SS-359: Major dashboard improvement, added PCC.

parent e5950082
No related branches found
No related tags found
1 merge request!106Resolve L2SS-359 "Add grafana"
...@@ -24,6 +24,20 @@ ...@@ -24,6 +24,20 @@
"id": 1, "id": 1,
"links": [], "links": [],
"panels": [ "panels": [
{
"collapsed": false,
"datasource": null,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"id": 15,
"panels": [],
"title": "Devices",
"type": "row"
},
{ {
"datasource": "Prometheus", "datasource": "Prometheus",
"fieldConfig": { "fieldConfig": {
...@@ -81,10 +95,10 @@ ...@@ -81,10 +95,10 @@
"overrides": [] "overrides": []
}, },
"gridPos": { "gridPos": {
"h": 8, "h": 4,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 0 "y": 1
}, },
"id": 4, "id": 4,
"options": { "options": {
...@@ -116,9 +130,111 @@ ...@@ -116,9 +130,111 @@
"title": "Device States", "title": "Device States",
"type": "stat" "type": "stat"
}, },
{
"collapsed": false,
"datasource": null,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 5
},
"id": 17,
"panels": [],
"title": "PCC",
"type": "row"
},
{ {
"datasource": "Prometheus", "datasource": "Prometheus",
"description": "", "description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "celsius"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 5,
"x": 0,
"y": 6
},
"id": 22,
"options": {
"legend": {
"calcs": [],
"displayMode": "hidden",
"placement": "bottom"
},
"tooltip": {
"mode": "single"
}
},
"pluginVersion": "8.1.2",
"targets": [
{
"exemplar": true,
"expr": "device_attribute{device=\"lts/pcc/1\",name=\"RCU_temperature_R\"} - 273.15",
"format": "time_series",
"hide": false,
"instant": false,
"interval": "",
"legendFormat": "{{x}}",
"refId": "A"
}
],
"title": "RCU temperatures",
"transformations": [],
"type": "timeseries"
},
{
"datasource": "Prometheus",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
...@@ -133,12 +249,12 @@ ...@@ -133,12 +249,12 @@
"value": null "value": null
}, },
{ {
"color": "green", "color": "red",
"value": 50 "value": 0
}, },
{ {
"color": "red", "color": "green",
"value": 100 "value": 3
} }
] ]
} }
...@@ -147,11 +263,11 @@ ...@@ -147,11 +263,11 @@
}, },
"gridPos": { "gridPos": {
"h": 8, "h": 8,
"w": 5, "w": 6,
"x": 0, "x": 5,
"y": 8 "y": 6
}, },
"id": 11, "id": 21,
"options": { "options": {
"colorMode": "background", "colorMode": "background",
"graphMode": "area", "graphMode": "area",
...@@ -171,22 +287,17 @@ ...@@ -171,22 +287,17 @@
"targets": [ "targets": [
{ {
"exemplar": true, "exemplar": true,
"expr": "(50+50*device_attribute{device=\"lts/sdp/1\",name=\"TR_fpga_communication_error_R\"}) * on(x) device_attribute{device=\"lts/sdp/1\",name=\"TR_fpga_mask_RW\"}", "expr": "sum by (x)(1 + (device_attribute{device=\"lts/pcc/1\",name=\"RCU_ADC_lock_R\"} == bool 129)) * on(x) device_attribute{device=\"lts/pcc/1\",name=\"RCU_mask_RW\"} - 3",
"format": "time_series",
"hide": false,
"instant": true,
"interval": "", "interval": "",
"legendFormat": "{{x}}", "legendFormat": "{{y}}",
"refId": "A" "refId": "A"
} }
], ],
"title": "FPGA communication", "title": "RCU ADC lock",
"transformations": [],
"type": "stat" "type": "stat"
}, },
{ {
"datasource": "Prometheus", "datasource": "Prometheus",
"description": "",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
...@@ -201,12 +312,12 @@ ...@@ -201,12 +312,12 @@
"value": null "value": null
}, },
{ {
"color": "green", "color": "red",
"value": 50 "value": 1
}, },
{ {
"color": "red", "color": "green",
"value": 100 "value": 2
} }
] ]
} }
...@@ -215,11 +326,11 @@ ...@@ -215,11 +326,11 @@
}, },
"gridPos": { "gridPos": {
"h": 8, "h": 8,
"w": 5, "w": 6,
"x": 5, "x": 11,
"y": 8 "y": 6
}, },
"id": 9, "id": 25,
"options": { "options": {
"colorMode": "background", "colorMode": "background",
"graphMode": "area", "graphMode": "area",
...@@ -239,48 +350,23 @@ ...@@ -239,48 +350,23 @@
"targets": [ "targets": [
{ {
"exemplar": true, "exemplar": true,
"expr": "(100-50*device_attribute{device=\"lts/sdp/1\",name=\"FPGA_processing_enable_R\"}) * on(x) device_attribute{device=\"lts/sdp/1\",name=\"TR_fpga_mask_RW\"}", "expr": "(2 - device_attribute{device=\"lts/pcc/1\",name=\"RCU_I2C_STATUS_R\"}) * on(x) device_attribute{device=\"lts/pcc/1\",name=\"RCU_mask_RW\"}",
"format": "time_series",
"hide": false,
"instant": true,
"interval": "", "interval": "",
"legendFormat": "{{x}}", "legendFormat": "{{y}}",
"refId": "A" "refId": "A"
} }
], ],
"title": "FPGA processing enabled", "title": "RCU I2C status",
"transformations": [],
"type": "stat" "type": "stat"
}, },
{ {
"datasource": "Prometheus", "datasource": "Prometheus",
"description": "Number of inputs that are fed from the SDP wave-form generator",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
"mode": "thresholds" "mode": "thresholds"
}, },
"mappings": [ "mappings": [],
{
"options": {
"0": {
"index": 0,
"text": "OFF"
}
},
"type": "value"
},
{
"options": {
"match": "null",
"result": {
"color": "transparent",
"index": 1
}
},
"type": "special"
}
],
"thresholds": { "thresholds": {
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
...@@ -299,14 +385,14 @@ ...@@ -299,14 +385,14 @@
}, },
"gridPos": { "gridPos": {
"h": 5, "h": 5,
"w": 2, "w": 3,
"x": 10, "x": 17,
"y": 8 "y": 6
}, },
"id": 12, "id": 24,
"options": { "options": {
"colorMode": "background", "colorMode": "background",
"graphMode": "area", "graphMode": "none",
"justifyMode": "auto", "justifyMode": "auto",
"orientation": "auto", "orientation": "auto",
"reduceOptions": { "reduceOptions": {
...@@ -317,25 +403,59 @@ ...@@ -317,25 +403,59 @@
"values": false "values": false
}, },
"text": {}, "text": {},
"textMode": "value" "textMode": "name"
}, },
"pluginVersion": "8.1.2", "pluginVersion": "8.1.2",
"targets": [ "targets": [
{ {
"exemplar": true, "exemplar": true,
"expr": "sum(sum by(x) (device_attribute{device=\"lts/sdp/1\",name=\"FPGA_wg_enable_R\"}) * on(x) device_attribute{device=\"lts/sdp/1\",name=\"TR_fpga_mask_R\"})", "expr": "1-device_attribute{device=\"lts/pcc/1\",name=\"CLK_Enable_PWR_R\"}",
"format": "time_series",
"hide": false,
"instant": true,
"interval": "", "interval": "",
"legendFormat": "{{x}}", "legendFormat": "Power",
"refId": "A" "refId": "A"
},
{
"exemplar": true,
"expr": "device_attribute{device=\"lts/pcc/1\",name=\"CLK_I2C_STATUS_R\"}",
"hide": false,
"interval": "",
"legendFormat": "I2C",
"refId": "B"
},
{
"exemplar": true,
"expr": "device_attribute{device=\"lts/pcc/1\",name=\"CLK_PLL_error_R\"}",
"hide": false,
"interval": "",
"legendFormat": "PLL",
"refId": "C"
},
{
"exemplar": true,
"expr": "1-device_attribute{device=\"lts/pcc/1\",name=\"CLK_PLL_locked_R\"}",
"hide": false,
"interval": "",
"legendFormat": "PLL Lock",
"refId": "D"
} }
], ],
"title": "Waveform generator", "title": "Clock",
"transformations": [],
"type": "stat" "type": "stat"
}, },
{
"collapsed": false,
"datasource": null,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 14
},
"id": 19,
"panels": [],
"title": "SDP",
"type": "row"
},
{ {
"datasource": "Prometheus", "datasource": "Prometheus",
"description": "", "description": "",
...@@ -393,7 +513,7 @@ ...@@ -393,7 +513,7 @@
"h": 8, "h": 8,
"w": 5, "w": 5,
"x": 0, "x": 0,
"y": 16 "y": 15
}, },
"id": 5, "id": 5,
"options": { "options": {
...@@ -423,13 +543,149 @@ ...@@ -423,13 +543,149 @@
"transformations": [], "transformations": [],
"type": "timeseries" "type": "timeseries"
}, },
{
"datasource": "Prometheus",
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "transparent",
"value": null
},
{
"color": "green",
"value": 50
},
{
"color": "red",
"value": 100
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 5,
"x": 5,
"y": 15
},
"id": 11,
"options": {
"colorMode": "background",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"text": {},
"textMode": "name"
},
"pluginVersion": "8.1.2",
"targets": [
{
"exemplar": true,
"expr": "(50+50*device_attribute{device=\"lts/sdp/1\",name=\"TR_fpga_communication_error_R\"}) * on(x) device_attribute{device=\"lts/sdp/1\",name=\"TR_fpga_mask_R\"}",
"format": "time_series",
"hide": false,
"instant": true,
"interval": "",
"legendFormat": "{{x}}",
"refId": "A"
}
],
"title": "FPGA communication",
"transformations": [],
"type": "stat"
},
{
"datasource": "Prometheus",
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "transparent",
"value": null
},
{
"color": "green",
"value": 50
},
{
"color": "red",
"value": 100
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 5,
"x": 10,
"y": 15
},
"id": 9,
"options": {
"colorMode": "background",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"text": {},
"textMode": "name"
},
"pluginVersion": "8.1.2",
"targets": [
{
"exemplar": true,
"expr": "(100-50*device_attribute{device=\"lts/sdp/1\",name=\"FPGA_processing_enable_R\"}) * on(x) device_attribute{device=\"lts/sdp/1\",name=\"TR_fpga_mask_R\"}",
"format": "time_series",
"hide": false,
"instant": false,
"interval": "",
"legendFormat": "{{x}}",
"refId": "A"
}
],
"title": "FPGA processing enabled",
"transformations": [],
"type": "stat"
},
{ {
"datasource": "Prometheus", "datasource": "Prometheus",
"description": "Measured difference between PTP and PPS", "description": "Measured difference between PTP and PPS",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
"mode": "palette-classic" "mode": "thresholds"
}, },
"custom": { "custom": {
"axisLabel": "", "axisLabel": "",
...@@ -450,7 +706,7 @@ ...@@ -450,7 +706,7 @@
"type": "linear" "type": "linear"
}, },
"showPoints": "auto", "showPoints": "auto",
"spanNulls": false, "spanNulls": 60000,
"stacking": { "stacking": {
"group": "A", "group": "A",
"mode": "none" "mode": "none"
...@@ -459,6 +715,7 @@ ...@@ -459,6 +715,7 @@
"mode": "off" "mode": "off"
} }
}, },
"decimals": 2,
"mappings": [], "mappings": [],
"thresholds": { "thresholds": {
"mode": "absolute", "mode": "absolute",
...@@ -476,15 +733,16 @@ ...@@ -476,15 +733,16 @@
"value": 0.1 "value": 0.1
} }
] ]
} },
"unit": "s"
}, },
"overrides": [] "overrides": []
}, },
"gridPos": { "gridPos": {
"h": 8, "h": 8,
"w": 5, "w": 5,
"x": 5, "x": 15,
"y": 16 "y": 15
}, },
"id": 13, "id": 13,
"options": { "options": {
...@@ -501,7 +759,7 @@ ...@@ -501,7 +759,7 @@
"targets": [ "targets": [
{ {
"exemplar": true, "exemplar": true,
"expr": "device_attribute{device=\"lts/sdp/1\",name=\"TR_tod_pps_delta_R\"} / 1e9", "expr": "device_attribute{device=\"lts/sdp/1\",name=\"TR_tod_pps_delta_R\"}",
"format": "time_series", "format": "time_series",
"hide": false, "hide": false,
"instant": false, "instant": false,
...@@ -513,6 +771,80 @@ ...@@ -513,6 +771,80 @@
"title": "FPGA Clock offset", "title": "FPGA Clock offset",
"transformations": [], "transformations": [],
"type": "timeseries" "type": "timeseries"
},
{
"datasource": "Prometheus",
"description": "Number of inputs that are fed from the SDP wave-form generator",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"0": {
"index": 0,
"text": "OFF"
}
},
"type": "value"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 1
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 3,
"x": 20,
"y": 15
},
"id": 12,
"options": {
"colorMode": "background",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"text": {},
"textMode": "value"
},
"pluginVersion": "8.1.2",
"targets": [
{
"exemplar": true,
"expr": "sum(sum by(x) (device_attribute{device=\"lts/sdp/1\",name=\"FPGA_wg_enable_RW\"}) * on(x) device_attribute{device=\"lts/sdp/1\",name=\"TR_fpga_mask_R\"})",
"format": "time_series",
"hide": false,
"instant": true,
"interval": "",
"legendFormat": "{{x}}",
"refId": "A"
}
],
"title": "Waveform generator",
"transformations": [],
"type": "stat"
} }
], ],
"refresh": false, "refresh": false,
...@@ -530,5 +862,5 @@ ...@@ -530,5 +862,5 @@
"timezone": "", "timezone": "",
"title": "LOFAR2.0 Station", "title": "LOFAR2.0 Station",
"uid": "6f7Pv8Vnz", "uid": "6f7Pv8Vnz",
"version": 1 "version": 8
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment