diff --git a/docker-compose/grafana/dashboards/apsct.yml b/docker-compose/grafana/dashboards/apsct.json similarity index 97% rename from docker-compose/grafana/dashboards/apsct.yml rename to docker-compose/grafana/dashboards/apsct.json index 1aa145725be0c08ab7cf2be415618ce3b017f977..d056e829b160e88711bc68ad5e4423f2e86d5eaa 100644 --- a/docker-compose/grafana/dashboards/apsct.yml +++ b/docker-compose/grafana/dashboards/apsct.json @@ -339,7 +339,7 @@ { "datasource": { "type": "prometheus", - "uid": "6W2nM-Vnz" + "uid": "prometheus" }, "description": "State of the software controller.", "fieldConfig": { @@ -426,7 +426,7 @@ { "datasource": { "type": "prometheus", - "uid": "6W2nM-Vnz" + "uid": "prometheus" }, "exemplar": true, "expr": "device_attribute{device=\"stat/apsct/1\",name=\"State\"}", @@ -441,7 +441,7 @@ { "datasource": { "type": "prometheus", - "uid": "6W2nM-Vnz" + "uid": "prometheus" }, "description": "Status string of the software controller.", "fieldConfig": { @@ -495,7 +495,7 @@ { "datasource": { "type": "prometheus", - "uid": "6W2nM-Vnz" + "uid": "prometheus" }, "exemplar": false, "expr": "device_attribute{device=\"stat/apsct/1\",name=\"Status\"}", @@ -521,7 +521,7 @@ { "datasource": { "type": "prometheus", - "uid": "6W2nM-Vnz" + "uid": "prometheus" }, "description": "The amount of time required to read all archiving points.", "fieldConfig": { @@ -598,7 +598,7 @@ { "datasource": { "type": "prometheus", - "uid": "6W2nM-Vnz" + "uid": "prometheus" }, "exemplar": true, "expr": "max_over_time(device_scraping{device=\"STAT/APSCT/1\"}[2m])", @@ -623,7 +623,7 @@ { "datasource": { "type": "prometheus", - "uid": "6W2nM-Vnz" + "uid": "prometheus" }, "description": "", "fieldConfig": { @@ -696,7 +696,7 @@ { "datasource": { "type": "prometheus", - "uid": "6W2nM-Vnz" + "uid": "prometheus" }, "exemplar": false, "expr": "device_attribute{device=\"stat/apsct/1\",name=\"APSCT_PLL_160MHz_locked_R\"} + on(x) (\r\n2 * device_attribute{device=\"stat/apsct/1\",name=\"APSCT_PLL_200MHz_locked_R\"})", @@ -712,7 +712,7 @@ { "datasource": { "type": "prometheus", - "uid": "6W2nM-Vnz" + "uid": "prometheus" }, "description": "", "fieldConfig": { @@ -763,7 +763,7 @@ { "datasource": { "type": "prometheus", - "uid": "6W2nM-Vnz" + "uid": "prometheus" }, "exemplar": false, "expr": "device_attribute{device=\"stat/apsct/1\",name=\"APSCTTR_I2C_error_R\"}", @@ -775,7 +775,7 @@ { "datasource": { "type": "prometheus", - "uid": "6W2nM-Vnz" + "uid": "prometheus" }, "exemplar": false, "expr": "device_attribute{device=\"stat/apsct/1\",name=\"APSCT_PCB_ID_R\"} == bool 0", @@ -788,7 +788,7 @@ { "datasource": { "type": "prometheus", - "uid": "6W2nM-Vnz" + "uid": "prometheus" }, "exemplar": false, "expr": "1 - device_attribute{device=\"stat/apsct/1\",name=\"APSCT_PWR_on_R\"}", @@ -801,7 +801,7 @@ { "datasource": { "type": "prometheus", - "uid": "6W2nM-Vnz" + "uid": "prometheus" }, "exemplar": false, "expr": "1 - device_attribute{device=\"stat/apsct/1\",name=\"APSCT_INPUT_10MHz_good_R\"}", @@ -814,7 +814,7 @@ { "datasource": { "type": "prometheus", - "uid": "6W2nM-Vnz" + "uid": "prometheus" }, "exemplar": false, "expr": "device_attribute{device=\"stat/apsct/1\",name=\"APSCT_PPS_ignore_R\"}", @@ -827,7 +827,7 @@ { "datasource": { "type": "prometheus", - "uid": "6W2nM-Vnz" + "uid": "prometheus" }, "exemplar": false, "expr": "1 - device_attribute{device=\"stat/apsct/1\",name=\"APSCT_INPUT_PPS_good_R\"}", @@ -840,7 +840,7 @@ { "datasource": { "type": "prometheus", - "uid": "6W2nM-Vnz" + "uid": "prometheus" }, "exemplar": false, "expr": "device_attribute{device=\"stat/apsct/1\",name=\"APSCT_PLL_160MHz_error_R\"}", @@ -853,7 +853,7 @@ { "datasource": { "type": "prometheus", - "uid": "6W2nM-Vnz" + "uid": "prometheus" }, "exemplar": false, "expr": "device_attribute{device=\"stat/apsct/1\",name=\"APSCT_PLL_200MHz_error_R\"}", @@ -866,7 +866,7 @@ { "datasource": { "type": "prometheus", - "uid": "6W2nM-Vnz" + "uid": "prometheus" }, "exemplar": false, "expr": "device_attribute{device=\"stat/apsct/1\",name=\"APSCT_VOUT_error_R\"}", @@ -879,7 +879,7 @@ { "datasource": { "type": "prometheus", - "uid": "6W2nM-Vnz" + "uid": "prometheus" }, "exemplar": false, "expr": "device_attribute{device=\"stat/apsct/1\",name=\"APSCT_TEMP_error_R\"}", @@ -907,7 +907,7 @@ "activePatternIndex": 0, "datasource": { "type": "prometheus", - "uid": "6W2nM-Vnz" + "uid": "prometheus" }, "defaultPattern": { "bgColors": "green|orange|red", @@ -967,7 +967,7 @@ { "datasource": { "type": "prometheus", - "uid": "6W2nM-Vnz" + "uid": "prometheus" }, "exemplar": false, "expr": "device_attribute{device=\"stat/recv/1\",name=\"RCU_ADC_locked_R\"}\r\n+ on(x, y) (10 * device_attribute{device=\"stat/recv/1\", name=\"ANT_mask_RW\"})", @@ -983,7 +983,7 @@ { "datasource": { "type": "prometheus", - "uid": "6W2nM-Vnz" + "uid": "prometheus" }, "description": "", "fieldConfig": { @@ -1038,7 +1038,7 @@ { "datasource": { "type": "prometheus", - "uid": "6W2nM-Vnz" + "uid": "prometheus" }, "exemplar": true, "expr": "device_attribute{device=\"stat/sdp/1\",name=\"FPGA_pps_present_R\"}\r\n+ on(x) (10 * device_attribute{device=\"stat/sdp/1\",name=\"TR_fpga_mask_R\"})", @@ -1053,7 +1053,7 @@ { "datasource": { "type": "prometheus", - "uid": "6W2nM-Vnz" + "uid": "prometheus" }, "description": "", "fieldConfig": { @@ -1120,7 +1120,7 @@ { "datasource": { "type": "prometheus", - "uid": "6W2nM-Vnz" + "uid": "prometheus" }, "exemplar": true, "expr": "device_attribute{device=\"stat/sdp/1\",name=\"FPGA_pps_capture_cnt_R\"} / 1000000", @@ -1149,7 +1149,7 @@ { "datasource": { "type": "prometheus", - "uid": "6W2nM-Vnz" + "uid": "prometheus" }, "description": "", "fieldConfig": { @@ -1221,7 +1221,7 @@ { "datasource": { "type": "prometheus", - "uid": "6W2nM-Vnz" + "uid": "prometheus" }, "exemplar": true, "expr": "device_attribute{device=\"stat/apsct/1\",name=\"APSCT_PWR_CTRL_3V3_R\"} > 0", @@ -1232,7 +1232,7 @@ { "datasource": { "type": "prometheus", - "uid": "6W2nM-Vnz" + "uid": "prometheus" }, "exemplar": true, "expr": "device_attribute{device=\"stat/apsct/1\",name=\"APSCT_PWR_INPUT_3V3_R\"} > 0", @@ -1248,7 +1248,7 @@ { "datasource": { "type": "prometheus", - "uid": "6W2nM-Vnz" + "uid": "prometheus" }, "description": "", "fieldConfig": { @@ -1320,7 +1320,7 @@ { "datasource": { "type": "prometheus", - "uid": "6W2nM-Vnz" + "uid": "prometheus" }, "exemplar": true, "expr": "device_attribute{device=\"stat/apsct/1\",name=\"APSCT_PWR_CLKDIST1_3V3_R\"} > 0", @@ -1331,7 +1331,7 @@ { "datasource": { "type": "prometheus", - "uid": "6W2nM-Vnz" + "uid": "prometheus" }, "exemplar": true, "expr": "device_attribute{device=\"stat/apsct/1\",name=\"APSCT_PWR_CLKDIST2_3V3_R\"} > 0", @@ -1343,7 +1343,7 @@ { "datasource": { "type": "prometheus", - "uid": "6W2nM-Vnz" + "uid": "prometheus" }, "exemplar": true, "expr": "device_attribute{device=\"stat/apsct/1\",name=\"APSCT_PWR_PPSDIST_3V3_R\"} > 0", @@ -1359,7 +1359,7 @@ { "datasource": { "type": "prometheus", - "uid": "6W2nM-Vnz" + "uid": "prometheus" }, "description": "", "fieldConfig": { @@ -1431,7 +1431,7 @@ { "datasource": { "type": "prometheus", - "uid": "6W2nM-Vnz" + "uid": "prometheus" }, "exemplar": true, "expr": "device_attribute{device=\"stat/apsct/1\",name=\"APSCT_PWR_PLL_200MHz_3V3_R\"} > 0", @@ -1446,7 +1446,7 @@ { "datasource": { "type": "prometheus", - "uid": "6W2nM-Vnz" + "uid": "prometheus" }, "description": "", "fieldConfig": { @@ -1518,7 +1518,7 @@ { "datasource": { "type": "prometheus", - "uid": "6W2nM-Vnz" + "uid": "prometheus" }, "exemplar": true, "expr": "device_attribute{device=\"stat/apsct/1\",name=\"APSCT_PWR_PLL_160MHz_3V3_R\"} > 0", @@ -1547,7 +1547,7 @@ { "datasource": { "type": "prometheus", - "uid": "6W2nM-Vnz" + "uid": "prometheus" }, "description": "", "fieldConfig": { @@ -1618,7 +1618,7 @@ { "datasource": { "type": "prometheus", - "uid": "6W2nM-Vnz" + "uid": "prometheus" }, "exemplar": true, "expr": "device_attribute{device=\"stat/apsct/1\",name=\"APSCT_TEMP_R\"} > 0", diff --git a/docker-compose/grafana/dashboards/apspu.json b/docker-compose/grafana/dashboards/apspu.json new file mode 100644 index 0000000000000000000000000000000000000000..e983970ec62a371befbc4daf701374a531f91d10 --- /dev/null +++ b/docker-compose/grafana/dashboards/apspu.json @@ -0,0 +1,1674 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": "-- Grafana --", + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "type": "dashboard" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": 16, + "links": [], + "liveNow": false, + "panels": [ + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 17, + "panels": [], + "title": "Main", + "type": "row" + }, + { + "description": "", + "gridPos": { + "h": 5, + "w": 11, + "x": 0, + "y": 1 + }, + "id": 10, + "links": [ + { + "targetBlank": true, + "title": "Details", + "url": "/alerting/list" + } + ], + "options": { + "alertInstanceLabelFilter": "{device=\"stat/apspu/1\"}", + "alertName": "", + "dashboardAlerts": false, + "groupBy": [], + "groupMode": "default", + "maxItems": 20, + "sortOrder": 1, + "stateFilter": { + "error": true, + "firing": true, + "inactive": false, + "noData": false, + "normal": false, + "pending": true + } + }, + "title": "Firing Alerts", + "type": "alertlist" + }, + { + "alignNumbersToRightEnabled": true, + "columnAliases": [], + "columnFiltersEnabled": false, + "columnWidthHints": [], + "columns": [], + "compactRowsEnabled": true, + "datasource": { + "type": "yesoreyeram-infinity-datasource", + "uid": "alertaui" + }, + "datatablePagingType": "simple_numbers", + "datatableTheme": "basic_theme", + "emptyData": true, + "fontSize": "100%", + "gridPos": { + "h": 10, + "w": 12, + "x": 11, + "y": 1 + }, + "hoverEnabled": true, + "id": 8, + "infoEnabled": false, + "lengthChangeEnabled": false, + "orderColumnEnabled": false, + "pagingTypes": [ + { + "$$hashKey": "object:142", + "text": "Page number buttons only", + "value": "numbers" + }, + { + "$$hashKey": "object:143", + "text": "'Previous' and 'Next' buttons only", + "value": "simple" + }, + { + "$$hashKey": "object:144", + "text": "'Previous' and 'Next' buttons, plus page numbers", + "value": "simple_numbers" + }, + { + "$$hashKey": "object:145", + "text": "'First', 'Previous', 'Next' and 'Last' buttons", + "value": "full" + }, + { + "$$hashKey": "object:146", + "text": "'First', 'Previous', 'Next' and 'Last' buttons, plus page numbers", + "value": "full_numbers" + }, + { + "$$hashKey": "object:147", + "text": "'First' and 'Last' buttons, plus page numbers", + "value": "first_last_numbers" + } + ], + "panelHeight": 256, + "pluginVersion": "8.4.5", + "rowNumbersEnabled": false, + "rowsPerPage": 5, + "scroll": true, + "scrollHeight": "default", + "searchEnabled": false, + "searchHighlightingEnabled": false, + "showCellBorders": false, + "showHeader": true, + "showRowBorders": false, + "sort": { + "col": 0, + "desc": true + }, + "sortByColumns": [ + { + "$$hashKey": "object:17", + "columnData": 0, + "sortMethod": "desc" + } + ], + "sortByColumnsData": [ + [ + 0, + "desc" + ] + ], + "stripedRowsEnabled": true, + "styles": [ + { + "$$hashKey": "object:19", + "dateFormat": "dd DD/MM HH:mm", + "pattern": "Time", + "type": "date" + }, + { + "$$hashKey": "object:45", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "mappingType": 1, + "pattern": "Panel|Dashboard|Alert", + "sanitize": true, + "splitPattern": "/ /", + "thresholds": [], + "type": "string", + "unit": "short", + "valueMaps": [] + }, + { + "$$hashKey": "object:76", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "link": true, + "mappingType": 1, + "pattern": "Alerta Link", + "splitPattern": "/ /", + "thresholds": [], + "type": "string", + "unit": "short", + "valueMaps": [] + }, + { + "$$hashKey": "object:867", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "mappingType": 1, + "pattern": "Since", + "splitPattern": "/ /", + "thresholds": [], + "type": "date", + "unit": "short" + } + ], + "targets": [ + { + "columns": [ + { + "selector": "createTime", + "text": "Since", + "type": "string" + }, + { + "selector": "severity", + "text": "Severity", + "type": "string" + }, + { + "selector": "status", + "text": "Status", + "type": "string" + }, + { + "selector": "event", + "text": "Name", + "type": "string" + }, + { + "selector": "attributes.lofarDevice", + "text": "Device", + "type": "string" + }, + { + "selector": "attributes.lofarAttribute", + "text": "Attribute", + "type": "string" + }, + { + "selector": "attributes.grafanaDashboardHtml", + "text": "Dashboard", + "type": "string" + }, + { + "selector": "attributes.grafanaPanelHtml", + "text": "Panel", + "type": "string" + }, + { + "selector": "attributes.grafanaAlertHtml", + "text": "Alert", + "type": "string" + }, + { + "selector": "href", + "text": "Alerta Link", + "type": "string" + } + ], + "datasource": { + "type": "yesoreyeram-infinity-datasource", + "uid": "alertaui" + }, + "filters": [ + { + "field": "Device", + "operator": "equals", + "value": [ + "stat/apspu/1" + ] + } + ], + "format": "table", + "global_query_id": "", + "hide": false, + "refId": "A", + "root_selector": "", + "source": "url", + "type": "json", + "url": "http://alerta-web:8080/api/alerts", + "url_options": { + "data": "", + "method": "GET" + } + } + ], + "themeOptions": { + "dark": "./styles/dark.scss", + "light": "./styles/light.scss" + }, + "themes": [ + { + "$$hashKey": "object:117", + "disabled": false, + "text": "Basic", + "value": "basic_theme" + }, + { + "$$hashKey": "object:118", + "disabled": true, + "text": "Bootstrap", + "value": "bootstrap_theme" + }, + { + "$$hashKey": "object:119", + "disabled": true, + "text": "Foundation", + "value": "foundation_theme" + }, + { + "$$hashKey": "object:120", + "disabled": true, + "text": "ThemeRoller", + "value": "themeroller_theme" + } + ], + "title": "Alerta Alerts", + "transform": "table", + "type": "briangann-datatable-panel" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "description": "State of the software controller.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "0": { + "color": "green", + "index": 0, + "text": "ON" + }, + "1": { + "color": "red", + "index": 1, + "text": "OFF" + }, + "7": { + "color": "blue", + "index": 3, + "text": "STANDBY" + }, + "8": { + "color": "red", + "index": 4, + "text": "FAULT" + }, + "9": { + "color": "blue", + "index": 2, + "text": "INIT" + }, + "11": { + "color": "orange", + "index": 5, + "text": "ALARM" + } + }, + "type": "value" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 3, + "x": 0, + "y": 6 + }, + "id": 12, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "8.4.5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "exemplar": true, + "expr": "device_attribute{device=\"stat/apspu/1\",name=\"State\"}", + "interval": "", + "legendFormat": "", + "refId": "A" + } + ], + "title": "LCU Device", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "description": "Status string of the software controller.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 4, + "x": 3, + "y": 6 + }, + "id": 13, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "/^str_value$/", + "values": false + }, + "text": { + "valueSize": 20 + }, + "textMode": "auto" + }, + "pluginVersion": "8.4.5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "exemplar": false, + "expr": "device_attribute{device=\"stat/apspu/1\",name=\"Status\"}", + "instant": true, + "interval": "", + "legendFormat": "", + "refId": "A" + } + ], + "title": "LCU Device State", + "transformations": [ + { + "id": "labelsToFields", + "options": { + "keepLabels": [ + "str_value" + ] + } + } + ], + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "description": "The amount of time required to read all archiving points.", + "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": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 4, + "x": 7, + "y": 6 + }, + "id": 14, + "options": { + "legend": { + "calcs": [], + "displayMode": "hidden", + "placement": "bottom" + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.4.5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "exemplar": true, + "expr": "max_over_time(device_scraping{device=\"STAT/APSPU/1\"}[2m])", + "interval": "", + "legendFormat": "", + "refId": "A" + } + ], + "title": "Archiving speed", + "transformations": [ + { + "id": "labelsToFields", + "options": { + "keepLabels": [ + "str_value" + ] + } + } + ], + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 1 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 20, + "x": 0, + "y": 11 + }, + "id": 5, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "name" + }, + "pluginVersion": "8.4.5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "exemplar": false, + "expr": "device_attribute{device=\"stat/apspu/1\",name=\"APSPUTR_I2C_error_R\"}", + "instant": true, + "interval": "", + "legendFormat": "I2C", + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "exemplar": false, + "expr": "device_attribute{device=\"stat/apspu/1\",name=\"APSPU_PCB_ID_R\"} == bool 0", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "PCB ID", + "refId": "J" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "exemplar": false, + "expr": "device_attribute{device=\"stat/apspu/1\",name=\"APSPU_VOUT_error_R\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Voltages", + "refId": "H" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "exemplar": false, + "expr": "device_attribute{device=\"stat/apspu/1\",name=\"APSPU_IOUT_error_R\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Currents", + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "exemplar": false, + "expr": "device_attribute{device=\"stat/apspu/1\",name=\"APSPU_TEMP_error_R\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "Temperatures", + "refId": "I" + } + ], + "title": "APSPU Status", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "green", + "value": 2000 + } + ] + }, + "unit": "rotrpm" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 20, + "x": 0, + "y": 14 + }, + "id": 43, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "value_and_name" + }, + "pluginVersion": "8.4.5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "exemplar": false, + "expr": "device_attribute{device=\"stat/apspu/1\",name=~\"APSPU_FAN1_RPM_R\"}", + "instant": true, + "interval": "", + "legendFormat": "FAN1", + "refId": "A" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "exemplar": false, + "expr": "device_attribute{device=\"stat/apspu/1\",name=~\"APSPU_FAN2_RPM_R\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "FAN2", + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "exemplar": false, + "expr": "device_attribute{device=\"stat/apspu/1\",name=~\"APSPU_FAN3_RPM_R\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "FAN3", + "refId": "C" + } + ], + "title": "Fan Speeds", + "type": "stat" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 17 + }, + "id": 19, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "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" + } + }, + "decimals": 2, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "transparent", + "value": null + } + ] + }, + "unit": "volt" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 6, + "x": 0, + "y": 18 + }, + "id": 22, + "options": { + "legend": { + "calcs": [], + "displayMode": "hidden", + "placement": "bottom" + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "exemplar": true, + "expr": "device_attribute{device=\"stat/apspu/1\",name=\"APSPU_LBA_VOUT_R\"}", + "interval": "", + "legendFormat": "{{name}}", + "refId": "A" + } + ], + "title": "LBA", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "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" + } + }, + "decimals": 2, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "transparent", + "value": null + } + ] + }, + "unit": "volt" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 6, + "x": 6, + "y": 18 + }, + "id": 44, + "options": { + "legend": { + "calcs": [], + "displayMode": "hidden", + "placement": "bottom" + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "exemplar": true, + "expr": "device_attribute{device=\"stat/apspu/1\",name=\"APSPU_RCU2A_VOUT_R\"}", + "interval": "", + "legendFormat": "{{name}}", + "refId": "A" + } + ], + "title": "RCU2 Analog", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "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" + } + }, + "decimals": 2, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "transparent", + "value": null + } + ] + }, + "unit": "volt" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 6, + "x": 12, + "y": 18 + }, + "id": 45, + "options": { + "legend": { + "calcs": [], + "displayMode": "hidden", + "placement": "bottom" + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "exemplar": true, + "expr": "device_attribute{device=\"stat/apspu/1\",name=\"APSPU_RCU2D_VOUT_R\"}", + "interval": "", + "legendFormat": "{{name}}", + "refId": "A" + } + ], + "title": "RCU2 Digital", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "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" + } + }, + "decimals": 2, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "transparent", + "value": null + } + ] + }, + "unit": "amp" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 6, + "x": 0, + "y": 27 + }, + "id": 48, + "options": { + "legend": { + "calcs": [], + "displayMode": "hidden", + "placement": "bottom" + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "exemplar": true, + "expr": "device_attribute{device=\"stat/apspu/1\",name=\"APSPU_LBA_IOUT_R\"}", + "interval": "", + "legendFormat": "{{name}}", + "refId": "A" + } + ], + "title": "LBA", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "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" + } + }, + "decimals": 2, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "transparent", + "value": null + } + ] + }, + "unit": "amp" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 6, + "x": 6, + "y": 27 + }, + "id": 49, + "options": { + "legend": { + "calcs": [], + "displayMode": "hidden", + "placement": "bottom" + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "exemplar": true, + "expr": "device_attribute{device=\"stat/apspu/1\",name=\"APSPU_RCU2A_IOUT_R\"}", + "interval": "", + "legendFormat": "{{name}}", + "refId": "A" + } + ], + "title": "RCU2 Analog", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "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" + } + }, + "decimals": 2, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "transparent", + "value": null + } + ] + }, + "unit": "amp" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 6, + "x": 12, + "y": 27 + }, + "id": 50, + "options": { + "legend": { + "calcs": [], + "displayMode": "hidden", + "placement": "bottom" + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "exemplar": true, + "expr": "device_attribute{device=\"stat/apspu/1\",name=\"APSPU_RCU2D_IOUT_R\"}", + "interval": "", + "legendFormat": "{{name}}", + "refId": "A" + } + ], + "title": "RCU2 Digital", + "type": "timeseries" + } + ], + "title": "Voltages & Currents", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 18 + }, + "id": 26, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "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" + } + }, + "decimals": 2, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "transparent", + "value": null + } + ] + }, + "unit": "celsius" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 6, + "x": 0, + "y": 19 + }, + "id": 51, + "options": { + "legend": { + "calcs": [], + "displayMode": "hidden", + "placement": "bottom" + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "exemplar": true, + "expr": "device_attribute{device=\"stat/apspu/1\",name=\"APSPU_LBA_TEMP_R\"}", + "interval": "", + "legendFormat": "{{name}}", + "refId": "A" + } + ], + "title": "LBA", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "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" + } + }, + "decimals": 2, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "transparent", + "value": null + } + ] + }, + "unit": "celsius" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 6, + "x": 6, + "y": 19 + }, + "id": 52, + "options": { + "legend": { + "calcs": [], + "displayMode": "hidden", + "placement": "bottom" + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "exemplar": true, + "expr": "device_attribute{device=\"stat/apspu/1\",name=\"APSPU_RCU2A_TEMP_R\"}", + "interval": "", + "legendFormat": "{{name}}", + "refId": "A" + } + ], + "title": "RCU2 Analog", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "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" + } + }, + "decimals": 2, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "transparent", + "value": null + } + ] + }, + "unit": "celsius" + }, + "overrides": [] + }, + "gridPos": { + "h": 9, + "w": 6, + "x": 12, + "y": 19 + }, + "id": 53, + "options": { + "legend": { + "calcs": [], + "displayMode": "hidden", + "placement": "bottom" + }, + "tooltip": { + "mode": "multi", + "sort": "desc" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "exemplar": true, + "expr": "device_attribute{device=\"stat/apspu/1\",name=\"APSPU_RCU2D_TEMP_R\"}", + "interval": "", + "legendFormat": "{{name}}", + "refId": "A" + } + ], + "title": "RCU2 Digital", + "type": "timeseries" + } + ], + "title": "Temperatures", + "type": "row" + } + ], + "refresh": false, + "schemaVersion": 35, + "style": "dark", + "tags": [], + "templating": { + "list": [] + }, + "time": { + "from": "now-6h", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "APSPU", + "uid": "apspu", + "version": 2, + "weekStart": "" +} diff --git a/docker-compose/grafana/dashboards/recv.json b/docker-compose/grafana/dashboards/recv.json index caf3bcfb47026157056d66a1a53d25c7cb17bec5..429ce8b55aab5da6dbc841ef3596395632cede0f 100644 --- a/docker-compose/grafana/dashboards/recv.json +++ b/docker-compose/grafana/dashboards/recv.json @@ -620,6 +620,73 @@ ], "type": "timeseries" }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "transparent", + "value": null + }, + { + "color": "green", + "value": 1 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 23, + "x": 0, + "y": 11 + }, + "id": 29, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "name" + }, + "pluginVersion": "8.4.5", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "exemplar": true, + "expr": " device_attribute{device=\"stat/recv/1\",name=\"RCU_mask_RW\"}", + "instant": false, + "interval": "", + "legendFormat": "{{x}}", + "refId": "A" + } + ], + "title": "RCU Mask", + "type": "stat" + }, { "datasource": { "type": "prometheus", @@ -660,7 +727,7 @@ "h": 2, "w": 23, "x": 0, - "y": 11 + "y": 13 }, "id": 2, "options": { @@ -735,7 +802,7 @@ "h": 2, "w": 23, "x": 0, - "y": 13 + "y": 15 }, "id": 3, "options": { @@ -801,7 +868,7 @@ "h": 2, "w": 23, "x": 0, - "y": 15 + "y": 17 }, "id": 4, "options": { @@ -851,12 +918,16 @@ "mode": "absolute", "steps": [ { - "color": "green", + "color": "transparent", "value": null }, { "color": "red", - "value": 1 + "value": 10 + }, + { + "color": "green", + "value": 13 } ] } @@ -867,7 +938,7 @@ "h": 2, "w": 23, "x": 0, - "y": 17 + "y": 19 }, "id": 15, "options": { @@ -892,7 +963,7 @@ "uid": "prometheus" }, "exemplar": true, - "expr": "sum by (y) (device_attribute{device=\"stat/recv/1\",name=\"RCU_ADC_locked_R\"})", + "expr": "sum by (x) (device_attribute{device=\"stat/recv/1\",name=\"RCU_ADC_locked_R\"}) +\r\non(x) (10 * device_attribute{device=\"stat/recv/1\",name=\"RCU_mask_RW\"})", "instant": false, "interval": "", "legendFormat": "{{x}}", @@ -934,7 +1005,7 @@ "h": 2, "w": 23, "x": 0, - "y": 19 + "y": 21 }, "id": 5, "options": { @@ -1000,7 +1071,7 @@ "h": 2, "w": 23, "x": 0, - "y": 21 + "y": 23 }, "id": 6, "options": { @@ -1040,7 +1111,7 @@ "h": 1, "w": 24, "x": 0, - "y": 23 + "y": 25 }, "id": 19, "panels": [ @@ -1088,8 +1159,7 @@ "mode": "absolute", "steps": [ { - "color": "transparent", - "value": null + "color": "transparent" } ] }, @@ -1175,8 +1245,7 @@ "mode": "absolute", "steps": [ { - "color": "transparent", - "value": null + "color": "transparent" } ] }, @@ -1262,8 +1331,7 @@ "mode": "absolute", "steps": [ { - "color": "transparent", - "value": null + "color": "transparent" } ] }, @@ -1349,8 +1417,7 @@ "mode": "absolute", "steps": [ { - "color": "transparent", - "value": null + "color": "transparent" } ] }, @@ -1436,8 +1503,7 @@ "mode": "absolute", "steps": [ { - "color": "transparent", - "value": null + "color": "transparent" } ] }, @@ -1489,7 +1555,7 @@ "h": 1, "w": 24, "x": 0, - "y": 24 + "y": 26 }, "id": 26, "panels": [ @@ -1537,8 +1603,7 @@ "mode": "absolute", "steps": [ { - "color": "transparent", - "value": null + "color": "transparent" } ] }, @@ -1600,6 +1665,6 @@ "timezone": "", "title": "RECV", "uid": "recv", - "version": 15, + "version": 16, "weekStart": "" }