From e59500827b9f73ee150a16b769b9f1e3bb2bc7d1 Mon Sep 17 00:00:00 2001
From: Jan David Mol <mol@astron.nl>
Date: Fri, 3 Sep 2021 12:04:40 +0200
Subject: [PATCH] L2SS-359: Black out waveform generator if no data, and read
 _R point instead of _RW point.

---
 .../grafana/dashboards/lofar2.0-station.json     | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/docker-compose/grafana/dashboards/lofar2.0-station.json b/docker-compose/grafana/dashboards/lofar2.0-station.json
index aeebc413d..cf4b480c9 100644
--- a/docker-compose/grafana/dashboards/lofar2.0-station.json
+++ b/docker-compose/grafana/dashboards/lofar2.0-station.json
@@ -269,6 +269,16 @@
                 }
               },
               "type": "value"
+            },
+            {
+              "options": {
+                "match": "null",
+                "result": {
+                  "color": "transparent",
+                  "index": 1
+                }
+              },
+              "type": "special"
             }
           ],
           "thresholds": {
@@ -313,7 +323,7 @@
       "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\"})",
+          "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\"})",
           "format": "time_series",
           "hide": false,
           "instant": true,
@@ -519,6 +529,6 @@
   "timepicker": {},
   "timezone": "",
   "title": "LOFAR2.0 Station",
-  "uid": "xZPJHE47k",
-  "version": 6
+  "uid": "6f7Pv8Vnz",
+  "version": 1
 }
-- 
GitLab