From 269e523686b2971ed7ddf7b97a07b10a685661f7 Mon Sep 17 00:00:00 2001
From: Jan David Mol <mol@astron.nl>
Date: Tue, 19 Apr 2022 18:06:12 +0200
Subject: [PATCH] L2SS-731: Added useful prometheus-node-exporter points to LCU
 dashboard

---
 docker-compose/grafana/dashboards/lcu.json | 1315 +++++++++++++++-----
 1 file changed, 1010 insertions(+), 305 deletions(-)

diff --git a/docker-compose/grafana/dashboards/lcu.json b/docker-compose/grafana/dashboards/lcu.json
index 87898b382..6e0421f64 100644
--- a/docker-compose/grafana/dashboards/lcu.json
+++ b/docker-compose/grafana/dashboards/lcu.json
@@ -21,7 +21,6 @@
   "editable": true,
   "fiscalYearStartMonth": 0,
   "graphTooltip": 0,
-  "id": 11,
   "links": [],
   "liveNow": false,
   "panels": [
@@ -93,7 +92,7 @@
         "showThresholdMarkers": false,
         "text": {}
       },
-      "pluginVersion": "8.4.5",
+      "pluginVersion": "8.4.6",
       "targets": [
         {
           "exemplar": true,
@@ -167,7 +166,7 @@
         "overrides": []
       },
       "gridPos": {
-        "h": 14,
+        "h": 10,
         "w": 4,
         "x": 4,
         "y": 1
@@ -191,7 +190,7 @@
         },
         "textMode": "value_and_name"
       },
-      "pluginVersion": "8.4.5",
+      "pluginVersion": "8.4.6",
       "targets": [
         {
           "datasource": {
@@ -218,104 +217,6 @@
       ],
       "type": "stat"
     },
-    {
-      "datasource": {
-        "type": "prometheus",
-        "uid": "prometheus"
-      },
-      "description": "Running docker containers",
-      "fieldConfig": {
-        "defaults": {
-          "color": {
-            "mode": "thresholds"
-          },
-          "mappings": [
-            {
-              "options": {
-                "0": {
-                  "color": "red",
-                  "index": 1,
-                  "text": "OFF"
-                },
-                "1": {
-                  "color": "green",
-                  "index": 0,
-                  "text": "ON"
-                }
-              },
-              "type": "value"
-            }
-          ],
-          "noValue": "???",
-          "thresholds": {
-            "mode": "absolute",
-            "steps": [
-              {
-                "color": "red",
-                "value": null
-              },
-              {
-                "color": "green",
-                "value": 1
-              }
-            ]
-          },
-          "unit": "string"
-        },
-        "overrides": []
-      },
-      "gridPos": {
-        "h": 14,
-        "w": 5,
-        "x": 8,
-        "y": 1
-      },
-      "id": 61,
-      "options": {
-        "colorMode": "value",
-        "graphMode": "none",
-        "justifyMode": "auto",
-        "orientation": "horizontal",
-        "reduceOptions": {
-          "calcs": [
-            "lastNotNull"
-          ],
-          "fields": "",
-          "values": false
-        },
-        "text": {
-          "titleSize": 20,
-          "valueSize": 20
-        },
-        "textMode": "value_and_name"
-      },
-      "pluginVersion": "8.4.5",
-      "targets": [
-        {
-          "datasource": {
-            "type": "prometheus",
-            "uid": "prometheus"
-          },
-          "exemplar": false,
-          "expr": "device_attribute{device=\"stat/docker/1\",name!=\"version_R\",name=~\".*_R\"}",
-          "instant": true,
-          "interval": "",
-          "legendFormat": "{{name}}",
-          "refId": "A"
-        }
-      ],
-      "title": "Docker Containers",
-      "transformations": [
-        {
-          "id": "renameByRegex",
-          "options": {
-            "regex": ".*/(.*)/1",
-            "renamePattern": "$1"
-          }
-        }
-      ],
-      "type": "stat"
-    },
     {
       "datasource": {
         "type": "prometheus",
@@ -380,7 +281,7 @@
       "gridPos": {
         "h": 8,
         "w": 10,
-        "x": 13,
+        "x": 8,
         "y": 1
       },
       "id": 62,
@@ -471,7 +372,7 @@
         },
         "showHeader": false
       },
-      "pluginVersion": "8.4.5",
+      "pluginVersion": "8.4.6",
       "targets": [
         {
           "datasource": {
@@ -540,10 +441,158 @@
       "type": "table"
     },
     {
-      "datasource": {
-        "type": "elasticsearch",
-        "uid": "elk"
+      "collapsed": false,
+      "gridPos": {
+        "h": 1,
+        "w": 24,
+        "x": 0,
+        "y": 11
+      },
+      "id": 70,
+      "panels": [],
+      "title": "LCU System Performance",
+      "type": "row"
+    },
+    {
+      "description": "How much time the CPU spends waiting for I/O to complete.",
+      "fieldConfig": {
+        "defaults": {
+          "color": {
+            "mode": "thresholds"
+          },
+          "decimals": 0,
+          "mappings": [],
+          "max": 1,
+          "min": 0,
+          "thresholds": {
+            "mode": "absolute",
+            "steps": [
+              {
+                "color": "green",
+                "value": null
+              },
+              {
+                "color": "#EAB839",
+                "value": 0.1
+              },
+              {
+                "color": "red",
+                "value": 0.25
+              }
+            ]
+          },
+          "unit": "percentunit"
+        },
+        "overrides": []
+      },
+      "gridPos": {
+        "h": 6,
+        "w": 4,
+        "x": 0,
+        "y": 12
+      },
+      "id": 64,
+      "options": {
+        "orientation": "auto",
+        "reduceOptions": {
+          "calcs": [
+            "lastNotNull"
+          ],
+          "fields": "",
+          "values": false
+        },
+        "showThresholdLabels": false,
+        "showThresholdMarkers": true
+      },
+      "pluginVersion": "8.4.6",
+      "targets": [
+        {
+          "datasource": {
+            "type": "prometheus",
+            "uid": "prometheus"
+          },
+          "exemplar": false,
+          "expr": "avg by(mode) (rate(node_cpu_seconds_total{mode=\"iowait\"}[5m]))",
+          "instant": true,
+          "interval": "",
+          "legendFormat": "{{mode}}",
+          "refId": "A"
+        }
+      ],
+      "title": "CPU I/O Wait",
+      "type": "gauge"
+    },
+    {
+      "description": "How much time the CPU is not idle.",
+      "fieldConfig": {
+        "defaults": {
+          "color": {
+            "mode": "thresholds"
+          },
+          "decimals": 0,
+          "mappings": [],
+          "max": 1,
+          "min": 0,
+          "thresholds": {
+            "mode": "absolute",
+            "steps": [
+              {
+                "color": "green",
+                "value": null
+              },
+              {
+                "color": "yellow",
+                "value": 0.7
+              },
+              {
+                "color": "red",
+                "value": 0.9
+              }
+            ]
+          },
+          "unit": "percentunit"
+        },
+        "overrides": []
+      },
+      "gridPos": {
+        "h": 6,
+        "w": 4,
+        "x": 4,
+        "y": 12
       },
+      "id": 66,
+      "options": {
+        "orientation": "auto",
+        "reduceOptions": {
+          "calcs": [
+            "lastNotNull"
+          ],
+          "fields": "",
+          "values": false
+        },
+        "showThresholdLabels": false,
+        "showThresholdMarkers": true
+      },
+      "pluginVersion": "8.4.6",
+      "targets": [
+        {
+          "datasource": {
+            "type": "prometheus",
+            "uid": "prometheus"
+          },
+          "exemplar": false,
+          "expr": "1 - avg by(mode) (rate(node_cpu_seconds_total{mode=\"idle\"}[5m]))",
+          "instant": true,
+          "interval": "",
+          "legendFormat": "{{mode}}",
+          "refId": "A"
+        }
+      ],
+      "title": "CPU Busy",
+      "type": "gauge"
+    },
+    {
+      "description": "",
       "fieldConfig": {
         "defaults": {
           "color": {
@@ -578,29 +627,35 @@
             }
           },
           "mappings": [],
+          "min": 0,
           "thresholds": {
             "mode": "absolute",
             "steps": [
               {
-                "color": "green",
+                "color": "red",
                 "value": null
               },
               {
-                "color": "red",
-                "value": 1
+                "color": "#EAB839",
+                "value": 0.1009
+              },
+              {
+                "color": "green",
+                "value": 0.3
               }
             ]
-          }
+          },
+          "unit": "binBps"
         },
         "overrides": []
       },
       "gridPos": {
-        "h": 9,
+        "h": 6,
         "w": 5,
-        "x": 0,
-        "y": 15
+        "x": 8,
+        "y": 12
       },
-      "id": 32,
+      "id": 72,
       "options": {
         "legend": {
           "calcs": [],
@@ -608,76 +663,53 @@
           "placement": "bottom"
         },
         "tooltip": {
-          "mode": "single",
-          "sort": "none"
+          "mode": "multi",
+          "sort": "desc"
         }
       },
+      "pluginVersion": "8.4.6",
       "targets": [
         {
-          "alias": "",
-          "bucketAggs": [
-            {
-              "field": "extra.lofar_id.keyword",
-              "id": "2",
-              "settings": {
-                "min_doc_count": "0",
-                "order": "desc",
-                "orderBy": "_term",
-                "size": "10"
-              },
-              "type": "terms"
-            },
-            {
-              "field": "@timestamp",
-              "id": "3",
-              "settings": {
-                "interval": "auto",
-                "min_doc_count": "0",
-                "trimEdges": "0"
-              },
-              "type": "date_histogram"
-            }
-          ],
-          "metrics": [
-            {
-              "id": "1",
-              "type": "count"
-            }
-          ],
-          "query": "level:(ERROR or FATAL)",
-          "refId": "A",
-          "timeField": "@timestamp"
-        }
-      ],
-      "title": "Logged Errors",
-      "transformations": [
+          "datasource": {
+            "type": "prometheus",
+            "uid": "prometheus"
+          },
+          "exemplar": true,
+          "expr": "rate(node_disk_written_bytes_total{device=~\"sda\"}[5m])",
+          "hide": false,
+          "instant": false,
+          "interval": "",
+          "legendFormat": "{{device}} write",
+          "refId": "B"
+        },
         {
-          "id": "renameByRegex",
-          "options": {
-            "regex": "\\(.*/.*/1\\)",
-            "renamePattern": ""
-          }
+          "datasource": {
+            "type": "prometheus",
+            "uid": "prometheus"
+          },
+          "exemplar": true,
+          "expr": "rate(node_disk_read_bytes_total{device=~\"sda\"}[5m])",
+          "hide": false,
+          "instant": false,
+          "interval": "",
+          "legendFormat": "{{device}} read",
+          "refId": "A"
         }
       ],
+      "title": "Disk I/O",
       "type": "timeseries"
     },
     {
-      "datasource": {
-        "type": "elasticsearch",
-        "uid": "elk"
-      },
-      "description": "List of the errors in the selected timespan",
+      "description": "Fill percentage of the /localdata partition.",
       "fieldConfig": {
         "defaults": {
           "color": {
             "mode": "thresholds"
           },
-          "custom": {
-            "align": "auto",
-            "displayMode": "auto",
-            "filterable": true
-          },
+          "decimals": 0,
           "mappings": [],
+          "max": 1,
+          "min": 0,
           "thresholds": {
             "mode": "absolute",
             "steps": [
@@ -685,181 +717,854 @@
                 "color": "green",
                 "value": null
               },
+              {
+                "color": "#EAB839",
+                "value": 0.5
+              },
               {
                 "color": "red",
-                "value": 80
+                "value": 0.8
               }
             ]
-          }
+          },
+          "unit": "percentunit"
         },
-        "overrides": [
-          {
-            "matcher": {
-              "id": "byName",
-              "options": "@timestamp"
-            },
-            "properties": [
-              {
-                "id": "custom.width",
-                "value": 149
-              }
-            ]
+        "overrides": []
+      },
+      "gridPos": {
+        "h": 6,
+        "w": 5,
+        "x": 13,
+        "y": 12
+      },
+      "id": 78,
+      "options": {
+        "orientation": "auto",
+        "reduceOptions": {
+          "calcs": [
+            "lastNotNull"
+          ],
+          "fields": "",
+          "values": false
+        },
+        "showThresholdLabels": false,
+        "showThresholdMarkers": true
+      },
+      "pluginVersion": "8.4.6",
+      "targets": [
+        {
+          "datasource": {
+            "type": "prometheus",
+            "uid": "prometheus"
           },
-          {
-            "matcher": {
-              "id": "byName",
-              "options": "level"
-            },
-            "properties": [
-              {
-                "id": "custom.width",
-                "value": 62
-              }
-            ]
+          "exemplar": true,
+          "expr": "avg by(device) (1 - node_filesystem_free_bytes / node_filesystem_size_bytes)",
+          "hide": false,
+          "instant": false,
+          "interval": "",
+          "legendFormat": "{{device}}",
+          "refId": "B"
+        }
+      ],
+      "title": "Disk Fill %",
+      "type": "gauge"
+    },
+    {
+      "collapsed": true,
+      "gridPos": {
+        "h": 1,
+        "w": 24,
+        "x": 0,
+        "y": 18
+      },
+      "id": 75,
+      "panels": [],
+      "title": "LCU Network Performance",
+      "type": "row"
+    },
+    {
+      "description": "Amount of network traffic with the outside network.",
+      "fieldConfig": {
+        "defaults": {
+          "color": {
+            "mode": "palette-classic"
           },
-          {
-            "matcher": {
-              "id": "byName",
-              "options": "program"
+          "custom": {
+            "axisLabel": "",
+            "axisPlacement": "auto",
+            "axisSoftMax": 10000000,
+            "barAlignment": 0,
+            "drawStyle": "line",
+            "fillOpacity": 0,
+            "gradientMode": "none",
+            "hideFrom": {
+              "legend": false,
+              "tooltip": false,
+              "viz": false
+            },
+            "lineInterpolation": "linear",
+            "lineWidth": 1,
+            "pointSize": 5,
+            "scaleDistribution": {
+              "type": "linear"
             },
-            "properties": [
+            "showPoints": "auto",
+            "spanNulls": false,
+            "stacking": {
+              "group": "A",
+              "mode": "none"
+            },
+            "thresholdsStyle": {
+              "mode": "off"
+            }
+          },
+          "mappings": [],
+          "min": 0,
+          "thresholds": {
+            "mode": "absolute",
+            "steps": [
+              {
+                "color": "red",
+                "value": null
+              },
+              {
+                "color": "#EAB839",
+                "value": 0.1009
+              },
               {
-                "id": "custom.width",
-                "value": 287
+                "color": "green",
+                "value": 0.3
               }
             ]
           },
-          {
-            "matcher": {
-              "id": "byName",
-              "options": "extra.logger_name"
+          "unit": "binbps"
+        },
+        "overrides": []
+      },
+      "gridPos": {
+        "h": 6,
+        "w": 5,
+        "x": 0,
+        "y": 19
+      },
+      "id": 71,
+      "options": {
+        "legend": {
+          "calcs": [],
+          "displayMode": "hidden",
+          "placement": "bottom"
+        },
+        "tooltip": {
+          "mode": "multi",
+          "sort": "desc"
+        }
+      },
+      "pluginVersion": "8.4.6",
+      "targets": [
+        {
+          "datasource": {
+            "type": "prometheus",
+            "uid": "prometheus"
+          },
+          "exemplar": true,
+          "expr": "rate(node_network_transmit_bytes_total{device=\"eno1\"}[5m]) * 8",
+          "instant": false,
+          "interval": "",
+          "legendFormat": "{{device}} transmit",
+          "refId": "A"
+        },
+        {
+          "datasource": {
+            "type": "prometheus",
+            "uid": "prometheus"
+          },
+          "exemplar": true,
+          "expr": "rate(node_network_receive_bytes_total{device=\"eno1\"}[5m]) * 8",
+          "hide": false,
+          "instant": false,
+          "interval": "",
+          "legendFormat": "{{device}} receive",
+          "refId": "B"
+        }
+      ],
+      "title": "Internal Network Traffic",
+      "type": "timeseries"
+    },
+    {
+      "description": "Amount of network traffic with the outside network.",
+      "fieldConfig": {
+        "defaults": {
+          "color": {
+            "mode": "palette-classic"
+          },
+          "custom": {
+            "axisLabel": "",
+            "axisPlacement": "auto",
+            "axisSoftMax": 10000000,
+            "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"
             },
-            "properties": [
+            "thresholdsStyle": {
+              "mode": "off"
+            }
+          },
+          "mappings": [],
+          "min": 0,
+          "thresholds": {
+            "mode": "absolute",
+            "steps": [
               {
-                "id": "custom.width",
-                "value": 72
+                "color": "red",
+                "value": null
+              },
+              {
+                "color": "#EAB839",
+                "value": 0.1009
+              },
+              {
+                "color": "green",
+                "value": 0.3
               }
             ]
           },
-          {
-            "matcher": {
-              "id": "byName",
-              "options": "extra.lofar_id"
+          "unit": "binbps"
+        },
+        "overrides": []
+      },
+      "gridPos": {
+        "h": 6,
+        "w": 5,
+        "x": 5,
+        "y": 19
+      },
+      "id": 73,
+      "options": {
+        "legend": {
+          "calcs": [],
+          "displayMode": "hidden",
+          "placement": "bottom"
+        },
+        "tooltip": {
+          "mode": "multi",
+          "sort": "desc"
+        }
+      },
+      "pluginVersion": "8.4.6",
+      "targets": [
+        {
+          "datasource": {
+            "type": "prometheus",
+            "uid": "prometheus"
+          },
+          "exemplar": true,
+          "expr": "rate(node_network_transmit_bytes_total{device=\"eno1\"}[5m]) * 8",
+          "instant": false,
+          "interval": "",
+          "legendFormat": "{{device}} transmit",
+          "refId": "A"
+        },
+        {
+          "datasource": {
+            "type": "prometheus",
+            "uid": "prometheus"
+          },
+          "exemplar": true,
+          "expr": "rate(node_network_receive_bytes_total{device=\"eno1\"}[5m]) * 8",
+          "hide": false,
+          "instant": false,
+          "interval": "",
+          "legendFormat": "{{device}} receive",
+          "refId": "B"
+        }
+      ],
+      "title": "External Network Traffic",
+      "type": "timeseries"
+    },
+    {
+      "description": "The rate of UDP packet received but dropped by the kernel.",
+      "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"
             },
-            "properties": [
+            "thresholdsStyle": {
+              "mode": "off"
+            }
+          },
+          "mappings": [],
+          "min": 0,
+          "thresholds": {
+            "mode": "absolute",
+            "steps": [
+              {
+                "color": "red",
+                "value": null
+              },
+              {
+                "color": "#EAB839",
+                "value": 0.1009
+              },
               {
-                "id": "custom.width",
-                "value": 196
+                "color": "green",
+                "value": 0.3
               }
             ]
-          }
-        ]
+          },
+          "unit": "pps"
+        },
+        "overrides": []
       },
       "gridPos": {
-        "h": 9,
-        "w": 18,
-        "x": 5,
-        "y": 15
+        "h": 6,
+        "w": 5,
+        "x": 10,
+        "y": 19
       },
-      "id": 56,
+      "id": 65,
       "options": {
-        "footer": {
-          "fields": "",
-          "reducer": [
-            "sum"
-          ],
-          "show": false
+        "legend": {
+          "calcs": [],
+          "displayMode": "list",
+          "placement": "bottom"
         },
-        "showHeader": true,
-        "sortBy": []
+        "tooltip": {
+          "mode": "multi",
+          "sort": "desc"
+        }
       },
-      "pluginVersion": "8.4.5",
+      "pluginVersion": "8.4.6",
       "targets": [
         {
-          "alias": "",
-          "bucketAggs": [],
-          "metrics": [
+          "datasource": {
+            "type": "prometheus",
+            "uid": "prometheus"
+          },
+          "exemplar": true,
+          "expr": "rate(node_netstat_Udp_NoPorts[5m])",
+          "instant": false,
+          "interval": "",
+          "legendFormat": "NoPort",
+          "refId": "A"
+        },
+        {
+          "datasource": {
+            "type": "prometheus",
+            "uid": "prometheus"
+          },
+          "exemplar": true,
+          "expr": "rate(node_netstat_Udp_InErrors[5m])",
+          "hide": false,
+          "instant": false,
+          "interval": "",
+          "legendFormat": "InError",
+          "refId": "B"
+        },
+        {
+          "datasource": {
+            "type": "prometheus",
+            "uid": "prometheus"
+          },
+          "exemplar": true,
+          "expr": "rate(node_netstat_Udp_RcvbufErrors[5m])",
+          "hide": false,
+          "instant": false,
+          "interval": "",
+          "legendFormat": "RcvBufError",
+          "refId": "C"
+        }
+      ],
+      "title": "UDP Loss",
+      "type": "timeseries"
+    },
+    {
+      "collapsed": true,
+      "gridPos": {
+        "h": 1,
+        "w": 24,
+        "x": 0,
+        "y": 25
+      },
+      "id": 68,
+      "panels": [
+        {
+          "datasource": {
+            "type": "elasticsearch",
+            "uid": "elk"
+          },
+          "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": 1
+                  }
+                ]
+              }
+            },
+            "overrides": []
+          },
+          "gridPos": {
+            "h": 9,
+            "w": 5,
+            "x": 0,
+            "y": 21
+          },
+          "id": 32,
+          "options": {
+            "legend": {
+              "calcs": [],
+              "displayMode": "hidden",
+              "placement": "bottom"
+            },
+            "tooltip": {
+              "mode": "single",
+              "sort": "none"
+            }
+          },
+          "targets": [
             {
-              "hide": false,
-              "id": "1",
-              "settings": {
-                "limit": "500"
+              "alias": "",
+              "bucketAggs": [
+                {
+                  "field": "extra.lofar_id.keyword",
+                  "id": "2",
+                  "settings": {
+                    "min_doc_count": "0",
+                    "order": "desc",
+                    "orderBy": "_term",
+                    "size": "10"
+                  },
+                  "type": "terms"
+                },
+                {
+                  "field": "@timestamp",
+                  "id": "3",
+                  "settings": {
+                    "interval": "auto",
+                    "min_doc_count": "0",
+                    "trimEdges": "0"
+                  },
+                  "type": "date_histogram"
+                }
+              ],
+              "metrics": [
+                {
+                  "id": "1",
+                  "type": "count"
+                }
+              ],
+              "query": "level:(ERROR or FATAL)",
+              "refId": "A",
+              "timeField": "@timestamp"
+            }
+          ],
+          "title": "Logged Errors",
+          "transformations": [
+            {
+              "id": "renameByRegex",
+              "options": {
+                "regex": "\\(.*/.*/1\\)",
+                "renamePattern": ""
+              }
+            }
+          ],
+          "type": "timeseries"
+        },
+        {
+          "datasource": {
+            "type": "elasticsearch",
+            "uid": "elk"
+          },
+          "description": "List of the errors in the selected timespan",
+          "fieldConfig": {
+            "defaults": {
+              "color": {
+                "mode": "thresholds"
+              },
+              "custom": {
+                "align": "auto",
+                "displayMode": "auto",
+                "filterable": true
+              },
+              "mappings": [],
+              "thresholds": {
+                "mode": "absolute",
+                "steps": [
+                  {
+                    "color": "green",
+                    "value": null
+                  },
+                  {
+                    "color": "red",
+                    "value": 80
+                  }
+                ]
+              }
+            },
+            "overrides": [
+              {
+                "matcher": {
+                  "id": "byName",
+                  "options": "@timestamp"
+                },
+                "properties": [
+                  {
+                    "id": "custom.width",
+                    "value": 149
+                  }
+                ]
+              },
+              {
+                "matcher": {
+                  "id": "byName",
+                  "options": "level"
+                },
+                "properties": [
+                  {
+                    "id": "custom.width",
+                    "value": 62
+                  }
+                ]
+              },
+              {
+                "matcher": {
+                  "id": "byName",
+                  "options": "program"
+                },
+                "properties": [
+                  {
+                    "id": "custom.width",
+                    "value": 287
+                  }
+                ]
+              },
+              {
+                "matcher": {
+                  "id": "byName",
+                  "options": "extra.logger_name"
+                },
+                "properties": [
+                  {
+                    "id": "custom.width",
+                    "value": 72
+                  }
+                ]
               },
-              "type": "logs"
+              {
+                "matcher": {
+                  "id": "byName",
+                  "options": "extra.lofar_id"
+                },
+                "properties": [
+                  {
+                    "id": "custom.width",
+                    "value": 196
+                  }
+                ]
+              }
+            ]
+          },
+          "gridPos": {
+            "h": 9,
+            "w": 18,
+            "x": 5,
+            "y": 21
+          },
+          "id": 56,
+          "options": {
+            "footer": {
+              "fields": "",
+              "reducer": [
+                "sum"
+              ],
+              "show": false
+            },
+            "showHeader": true,
+            "sortBy": []
+          },
+          "pluginVersion": "8.4.6",
+          "targets": [
+            {
+              "alias": "",
+              "bucketAggs": [],
+              "metrics": [
+                {
+                  "hide": false,
+                  "id": "1",
+                  "settings": {
+                    "limit": "500"
+                  },
+                  "type": "logs"
+                }
+              ],
+              "query": "level:(ERROR or CRIT or FATAL)",
+              "refId": "A",
+              "timeField": "@timestamp"
+            }
+          ],
+          "title": "Error Log",
+          "transformations": [
+            {
+              "id": "organize",
+              "options": {
+                "excludeByName": {
+                  "@version": true,
+                  "_id": true,
+                  "_index": true,
+                  "_source": true,
+                  "_type": true,
+                  "extra.func_name": true,
+                  "extra.interpreter": true,
+                  "extra.interpreter_version": true,
+                  "extra.line": true,
+                  "extra.logger_name": true,
+                  "extra.logstash_async_version": true,
+                  "extra.path": true,
+                  "extra.process_name": true,
+                  "extra.software_version": true,
+                  "extra.tango_device": true,
+                  "extra.thread_name": true,
+                  "highlight": true,
+                  "host": true,
+                  "logsource": true,
+                  "pid": true,
+                  "port": true,
+                  "sort": true,
+                  "tags": true,
+                  "type": true
+                },
+                "indexByName": {
+                  "@timestamp": 0,
+                  "@version": 5,
+                  "_id": 6,
+                  "_index": 7,
+                  "_source": 8,
+                  "_type": 9,
+                  "extra.func_name": 10,
+                  "extra.interpreter": 11,
+                  "extra.interpreter_version": 12,
+                  "extra.line": 13,
+                  "extra.lofar_id": 4,
+                  "extra.logger_name": 14,
+                  "extra.logstash_async_version": 15,
+                  "extra.path": 16,
+                  "extra.process_name": 17,
+                  "extra.software_version": 18,
+                  "extra.tango_device": 19,
+                  "extra.thread_name": 20,
+                  "highlight": 21,
+                  "host": 2,
+                  "level": 1,
+                  "logsource": 22,
+                  "message": 23,
+                  "pid": 24,
+                  "port": 25,
+                  "program": 3,
+                  "sort": 26,
+                  "tags": 27,
+                  "type": 28
+                },
+                "renameByName": {}
+              }
             }
           ],
-          "query": "level:(ERROR or CRIT or FATAL)",
-          "refId": "A",
-          "timeField": "@timestamp"
+          "type": "table"
         }
       ],
-      "title": "Error Log",
-      "transformations": [
+      "title": "Logs",
+      "type": "row"
+    },
+    {
+      "collapsed": true,
+      "gridPos": {
+        "h": 1,
+        "w": 24,
+        "x": 0,
+        "y": 26
+      },
+      "id": 77,
+      "panels": [
         {
-          "id": "organize",
+          "datasource": {
+            "type": "prometheus",
+            "uid": "prometheus"
+          },
+          "description": "Running docker containers",
+          "fieldConfig": {
+            "defaults": {
+              "color": {
+                "mode": "thresholds"
+              },
+              "mappings": [
+                {
+                  "options": {
+                    "0": {
+                      "color": "red",
+                      "index": 1,
+                      "text": "OFF"
+                    },
+                    "1": {
+                      "color": "green",
+                      "index": 0,
+                      "text": "ON"
+                    }
+                  },
+                  "type": "value"
+                }
+              ],
+              "noValue": "???",
+              "thresholds": {
+                "mode": "absolute",
+                "steps": [
+                  {
+                    "color": "red",
+                    "value": null
+                  },
+                  {
+                    "color": "green",
+                    "value": 1
+                  }
+                ]
+              },
+              "unit": "string"
+            },
+            "overrides": []
+          },
+          "gridPos": {
+            "h": 16,
+            "w": 6,
+            "x": 0,
+            "y": 27
+          },
+          "id": 61,
           "options": {
-            "excludeByName": {
-              "@version": true,
-              "_id": true,
-              "_index": true,
-              "_source": true,
-              "_type": true,
-              "extra.func_name": true,
-              "extra.interpreter": true,
-              "extra.interpreter_version": true,
-              "extra.line": true,
-              "extra.logger_name": true,
-              "extra.logstash_async_version": true,
-              "extra.path": true,
-              "extra.process_name": true,
-              "extra.software_version": true,
-              "extra.tango_device": true,
-              "extra.thread_name": true,
-              "highlight": true,
-              "host": true,
-              "logsource": true,
-              "pid": true,
-              "port": true,
-              "sort": true,
-              "tags": true,
-              "type": true
+            "colorMode": "value",
+            "graphMode": "none",
+            "justifyMode": "auto",
+            "orientation": "horizontal",
+            "reduceOptions": {
+              "calcs": [
+                "lastNotNull"
+              ],
+              "fields": "",
+              "values": false
             },
-            "indexByName": {
-              "@timestamp": 0,
-              "@version": 5,
-              "_id": 6,
-              "_index": 7,
-              "_source": 8,
-              "_type": 9,
-              "extra.func_name": 10,
-              "extra.interpreter": 11,
-              "extra.interpreter_version": 12,
-              "extra.line": 13,
-              "extra.lofar_id": 4,
-              "extra.logger_name": 14,
-              "extra.logstash_async_version": 15,
-              "extra.path": 16,
-              "extra.process_name": 17,
-              "extra.software_version": 18,
-              "extra.tango_device": 19,
-              "extra.thread_name": 20,
-              "highlight": 21,
-              "host": 2,
-              "level": 1,
-              "logsource": 22,
-              "message": 23,
-              "pid": 24,
-              "port": 25,
-              "program": 3,
-              "sort": 26,
-              "tags": 27,
-              "type": 28
+            "text": {
+              "titleSize": 20,
+              "valueSize": 20
             },
-            "renameByName": {}
-          }
+            "textMode": "value_and_name"
+          },
+          "pluginVersion": "8.4.6",
+          "targets": [
+            {
+              "datasource": {
+                "type": "prometheus",
+                "uid": "prometheus"
+              },
+              "exemplar": false,
+              "expr": "device_attribute{device=\"stat/docker/1\",name!=\"version_R\",name=~\".*_R\"}",
+              "instant": true,
+              "interval": "",
+              "legendFormat": "{{name}}",
+              "refId": "A"
+            }
+          ],
+          "title": "Docker Containers",
+          "transformations": [
+            {
+              "id": "renameByRegex",
+              "options": {
+                "regex": ".*/(.*)/1",
+                "renamePattern": "$1"
+              }
+            }
+          ],
+          "type": "stat"
         }
       ],
-      "type": "table"
+      "title": "Docker containers",
+      "type": "row"
     }
   ],
   "refresh": false,
@@ -870,13 +1575,13 @@
     "list": []
   },
   "time": {
-    "from": "now-30m",
+    "from": "now-15m",
     "to": "now"
   },
   "timepicker": {},
   "timezone": "",
   "title": "LCU",
   "uid": "lcu",
-  "version": 3,
+  "version": 1,
   "weekStart": ""
 }
-- 
GitLab