diff --git a/grafana-central/dashboards/Station/clock.json b/grafana-central/dashboards/Station/clock.json new file mode 100644 index 0000000000000000000000000000000000000000..721fabeba619e2a2d690ffc4d325f23703e4e0d7 --- /dev/null +++ b/grafana-central/dashboards/Station/clock.json @@ -0,0 +1,579 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "datasource", + "uid": "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": 22, + "iteration": 1655816473480, + "links": [ + { + "asDropdown": true, + "icon": "external link", + "includeVars": true, + "keepTime": true, + "tags": [ + "station" + ], + "targetBlank": false, + "title": "Dashboards", + "tooltip": "", + "type": "dashboards", + "url": "" + } + ], + "liveNow": true, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "fillOpacity": 70, + "lineWidth": 0, + "spanNulls": false + }, + "mappings": [ + { + "options": { + "0": { + "color": "red", + "index": 0, + "text": "NONE" + }, + "1": { + "color": "blue", + "index": 1, + "text": "160" + }, + "2": { + "color": "purple", + "index": 2, + "text": "200" + }, + "3": { + "color": "red", + "index": 3, + "text": "BOTH" + } + }, + "type": "value" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 12, + "x": 0, + "y": 0 + }, + "id": 31, + "options": { + "alignValue": "left", + "legend": { + "displayMode": "list", + "placement": "bottom" + }, + "mergeValues": false, + "rowHeight": 0.9, + "showValue": "auto", + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.5.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "device_attribute{host=\"$station\",device=\"stat/apsct/1\",name=\"APSCT_PLL_160MHz_locked_R\"} + on(x) (\r\n2 * device_attribute{host=\"$station\",device=\"stat/apsct/1\",name=\"APSCT_PLL_200MHz_locked_R\"})", + "instant": false, + "interval": "", + "legendFormat": "Lock", + "range": true, + "refId": "A" + } + ], + "title": "ADC Clock", + "type": "state-timeline" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "fillOpacity": 70, + "lineWidth": 0, + "spanNulls": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "transparent", + "value": null + }, + { + "color": "red", + "value": 10 + }, + { + "color": "green", + "value": 13 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 15, + "w": 11, + "x": 12, + "y": 0 + }, + "id": 46, + "options": { + "alignValue": "left", + "legend": { + "displayMode": "hidden", + "placement": "bottom" + }, + "mergeValues": false, + "rowHeight": 0.9, + "showValue": "never", + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "sum by (x) (device_attribute{host=\"$station\",device=\"stat/recv/1\",name=\"RCU_ADC_locked_R\"})\r\n* on(x) (10 + device_attribute{host=\"$station\",device=\"stat/recv/1\", name=\"RCU_mask_RW\"})", + "instant": false, + "legendFormat": "RCU {{x}}", + "range": true, + "refId": "A" + } + ], + "title": "RCU ADC Lock", + "type": "state-timeline" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "fillOpacity": 70, + "lineWidth": 0, + "spanNulls": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 1 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 11, + "w": 12, + "x": 0, + "y": 4 + }, + "id": 5, + "options": { + "alignValue": "left", + "legend": { + "displayMode": "hidden", + "placement": "bottom" + }, + "mergeValues": true, + "rowHeight": 0.9, + "showValue": "never", + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.5.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "1 - device_attribute{host=\"$station\",device=\"stat/apsct/1\",name=\"APSCT_INPUT_10MHz_good_R\"}", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "10MHz in", + "range": true, + "refId": "B" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "device_attribute{host=\"$station\",device=\"stat/apsct/1\",name=\"APSCT_PPS_ignore_R\"}", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "PPS used", + "range": true, + "refId": "F" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "1 - device_attribute{host=\"$station\",device=\"stat/apsct/1\",name=\"APSCT_INPUT_PPS_good_R\"}", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "PPS in", + "range": true, + "refId": "C" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "exemplar": false, + "expr": "device_attribute{host=\"$station\",device=\"stat/apsct/1\",name=\"APSCT_PLL_160MHz_error_R\"}", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "PLL 160MHz", + "refId": "E" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "exemplar": false, + "expr": "device_attribute{host=\"$station\",device=\"stat/apsct/1\",name=\"APSCT_PLL_200MHz_error_R\"}", + "hide": false, + "instant": false, + "interval": "", + "legendFormat": "PLL 200Mhz", + "range": true, + "refId": "G" + } + ], + "title": "APSCT Status", + "type": "state-timeline" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 15 + }, + "id": 44, + "panels": [], + "title": "SDP State", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "fillOpacity": 70, + "lineWidth": 0, + "spanNulls": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "transparent", + "value": null + }, + { + "color": "red", + "value": 10 + }, + { + "color": "green", + "value": 11 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 14, + "w": 12, + "x": 0, + "y": 16 + }, + "id": 35, + "options": { + "alignValue": "left", + "legend": { + "displayMode": "hidden", + "placement": "bottom" + }, + "mergeValues": true, + "rowHeight": 0.9, + "showValue": "never", + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.5.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "exemplar": true, + "expr": "device_attribute{host=\"$station\",device=\"stat/sdp/1\",name=\"FPGA_pps_present_R\"}\r\n+ on(x) (10 * device_attribute{host=\"$station\",device=\"stat/sdp/1\",name=\"TR_fpga_mask_R\"})", + "interval": "", + "legendFormat": "FPGA {{x}}", + "range": true, + "refId": "A" + } + ], + "title": "SDP FPGA PPS Present", + "type": "state-timeline" + }, + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "fillOpacity": 70, + "lineWidth": 0, + "spanNulls": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "transparent", + "value": null + }, + { + "color": "red", + "value": 159 + }, + { + "color": "blue", + "value": 160 + }, + { + "color": "red", + "value": 161 + }, + { + "color": "purple", + "value": 200 + }, + { + "color": "red", + "value": 201 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 14, + "w": 11, + "x": 12, + "y": 16 + }, + "id": 37, + "options": { + "alignValue": "left", + "legend": { + "displayMode": "hidden", + "placement": "bottom" + }, + "mergeValues": false, + "rowHeight": 0.9, + "showValue": "auto", + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.5.3", + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "editorMode": "code", + "exemplar": true, + "expr": "device_attribute{host=\"$station\",device=\"stat/sdp/1\",name=\"FPGA_pps_capture_cnt_R\"} / 1000000", + "interval": "", + "legendFormat": "FPGA {{x}}", + "range": true, + "refId": "A" + } + ], + "title": "SDP FPGA Measured Clock", + "type": "state-timeline" + } + ], + "refresh": false, + "schemaVersion": 36, + "style": "dark", + "tags": [ + "station" + ], + "templating": { + "list": [ + { + "current": { + "selected": true, + "text": "dop496", + "value": "dop496" + }, + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "definition": "scrape_series_added\n", + "description": "", + "hide": 0, + "includeAll": false, + "label": "Station", + "multi": false, + "name": "station", + "options": [], + "query": { + "query": "scrape_series_added\n", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "/.*host=\"(?<text>[^\"]*)\".*/", + "skipUrlSync": false, + "sort": 1, + "type": "query" + } + ] + }, + "time": { + "from": "now-5m", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "Clock", + "uid": "clock", + "version": 3, + "weekStart": "" +}