From f34b72daa54c93a3ff87cf4ec6dc13b1e56d1a95 Mon Sep 17 00:00:00 2001
From: stedif <stefano.difrischia@inaf.it>
Date: Tue, 17 Jan 2023 13:04:26 +0100
Subject: [PATCH] L2SS-1074: fix legend format

---
 dashboards/UNB2_FPGA/fpga1.json | 4 ++--
 dashboards/UNB2_FPGA/fpga2.json | 4 ++--
 dashboards/UNB2_FPGA/fpga3.json | 4 ++--
 dashboards/UNB2_FPGA/fpga4.json | 4 ++--
 dashboards/unb2.json            | 2 +-
 5 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/dashboards/UNB2_FPGA/fpga1.json b/dashboards/UNB2_FPGA/fpga1.json
index d6a125d..7658882 100644
--- a/dashboards/UNB2_FPGA/fpga1.json
+++ b/dashboards/UNB2_FPGA/fpga1.json
@@ -1304,7 +1304,7 @@
           "editorMode": "code",
           "expr": "device_attribute{host=\"$station\", device=\"stat/unb2/1\"}",
           "hide": false,
-          "legendFormat": "__auto",
+          "legendFormat": "{{name}}",
           "range": true,
           "refId": "UNB2_ATTR"
         },
@@ -1316,7 +1316,7 @@
           "editorMode": "code",
           "expr": "device_attribute{host=\"$station\", device=\"stat/unb2/1\", name=\"UNB2_FPGA_DDR4_SLOT_TEMP_R\"}",
           "hide": false,
-          "legendFormat": "__auto",
+          "legendFormat": "{{name}}",
           "range": true,
           "refId": "DDR4_SLOT_TEMP"
         }
diff --git a/dashboards/UNB2_FPGA/fpga2.json b/dashboards/UNB2_FPGA/fpga2.json
index f7348b9..9482b80 100644
--- a/dashboards/UNB2_FPGA/fpga2.json
+++ b/dashboards/UNB2_FPGA/fpga2.json
@@ -1304,7 +1304,7 @@
           "editorMode": "code",
           "expr": "device_attribute{host=\"$station\", device=\"stat/unb2/1\"}",
           "hide": false,
-          "legendFormat": "__auto",
+          "legendFormat": "{{name}}",
           "range": true,
           "refId": "UNB2_ATTR"
         },
@@ -1316,7 +1316,7 @@
           "editorMode": "code",
           "expr": "device_attribute{host=\"$station\", device=\"stat/unb2/1\", name=\"UNB2_FPGA_DDR4_SLOT_TEMP_R\"}",
           "hide": false,
-          "legendFormat": "__auto",
+          "legendFormat": "{{name}}",
           "range": true,
           "refId": "DDR4_SLOT_TEMP"
         }
diff --git a/dashboards/UNB2_FPGA/fpga3.json b/dashboards/UNB2_FPGA/fpga3.json
index 5b4e3be..2b81126 100644
--- a/dashboards/UNB2_FPGA/fpga3.json
+++ b/dashboards/UNB2_FPGA/fpga3.json
@@ -1304,7 +1304,7 @@
           "editorMode": "code",
           "expr": "device_attribute{host=\"$station\", device=\"stat/unb2/1\"}",
           "hide": false,
-          "legendFormat": "__auto",
+          "legendFormat": "{{name}}",
           "range": true,
           "refId": "UNB2_ATTR"
         },
@@ -1316,7 +1316,7 @@
           "editorMode": "code",
           "expr": "device_attribute{host=\"$station\", device=\"stat/unb2/1\", name=\"UNB2_FPGA_DDR4_SLOT_TEMP_R\"}",
           "hide": false,
-          "legendFormat": "__auto",
+          "legendFormat": "{{name}}",
           "range": true,
           "refId": "DDR4_SLOT_TEMP"
         }
diff --git a/dashboards/UNB2_FPGA/fpga4.json b/dashboards/UNB2_FPGA/fpga4.json
index a518108..d878243 100644
--- a/dashboards/UNB2_FPGA/fpga4.json
+++ b/dashboards/UNB2_FPGA/fpga4.json
@@ -1304,7 +1304,7 @@
           "editorMode": "code",
           "expr": "device_attribute{host=\"$station\", device=\"stat/unb2/1\"}",
           "hide": false,
-          "legendFormat": "__auto",
+          "legendFormat": "{{name}}",
           "range": true,
           "refId": "UNB2_ATTR"
         },
@@ -1316,7 +1316,7 @@
           "editorMode": "code",
           "expr": "device_attribute{host=\"$station\", device=\"stat/unb2/1\", name=\"UNB2_FPGA_DDR4_SLOT_TEMP_R\"}",
           "hide": false,
-          "legendFormat": "__auto",
+          "legendFormat": "{{name}}",
           "range": true,
           "refId": "DDR4_SLOT_TEMP"
         }
diff --git a/dashboards/unb2.json b/dashboards/unb2.json
index b6b5115..8762c9b 100644
--- a/dashboards/unb2.json
+++ b/dashboards/unb2.json
@@ -1096,7 +1096,7 @@
           },
           "editorMode": "code",
           "expr": "device_attribute{host=\"$station\", device=\"stat/unb2/1\"}",
-          "legendFormat": "__auto",
+          "legendFormat": "{{name}}",
           "range": true,
           "refId": "UNB2_ATTR"
         }
-- 
GitLab