{
  "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": 12,
  "iteration": 1651665241632,
  "links": [
    {
      "asDropdown": true,
      "icon": "external link",
      "includeVars": true,
      "keepTime": true,
      "tags": [
        "station"
      ],
      "targetBlank": false,
      "title": "Dashboards",
      "tooltip": "",
      "type": "dashboards",
      "url": ""
    }
  ],
  "liveNow": true,
  "panels": [
    {
      "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": 6,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "hoverEnabled": true,
      "id": 58,
      "infoEnabled": false,
      "lengthChangeEnabled": true,
      "orderColumnEnabled": true,
      "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": 170,
      "pluginVersion": "8.4.5",
      "rowNumbersEnabled": false,
      "rowsPerPage": 5,
      "scroll": false,
      "scrollHeight": "default",
      "searchEnabled": true,
      "searchHighlightingEnabled": false,
      "showCellBorders": false,
      "showHeader": true,
      "showRowBorders": true,
      "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": "text",
              "text": "Description",
              "type": "string"
            },
            {
              "selector": "resource",
              "text": "Station",
              "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": "Station",
              "operator": "equals",
              "value": [
                "$station"
              ]
            }
          ],
          "format": "table",
          "global_query_id": "",
          "hide": false,
          "refId": "A",
          "root_selector": "",
          "source": "url",
          "type": "json",
          "url": "http://alerta-server: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": "",
      "gridPos": {
        "h": 5,
        "w": 24,
        "x": 0,
        "y": 6
      },
      "id": 60,
      "links": [
        {
          "targetBlank": true,
          "title": "Details",
          "url": "/alerting/list"
        }
      ],
      "options": {
        "alertInstanceLabelFilter": "{host=\"$station\"}",
        "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"
    },
    {
      "collapsed": false,
      "datasource": {
        "type": "prometheus",
        "uid": "prometheus"
      },
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 11
      },
      "id": 15,
      "panels": [],
      "title": "Devices",
      "type": "row"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "prometheus"
      },
      "description": "Progress of station initialisation",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "max": 100,
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "yellow",
                "value": null
              },
              {
                "color": "red",
                "value": 1
              },
              {
                "color": "green",
                "value": 100
              }
            ]
          },
          "unit": "percent"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 4,
        "x": 0,
        "y": 12
      },
      "id": 61,
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": false,
        "text": {}
      },
      "pluginVersion": "8.5.1",
      "targets": [
        {
          "exemplar": true,
          "expr": "device_attribute{host=\"$station\",device=\"stat/boot/1\",name=\"progress_R\"}",
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "title": "Station Initialisation",
      "type": "gauge"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "prometheus"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [
            {
              "options": {
                "0": {
                  "color": "green",
                  "index": 1,
                  "text": "ON"
                },
                "1": {
                  "color": "red",
                  "index": 3,
                  "text": "OFF"
                },
                "7": {
                  "color": "yellow",
                  "index": 2,
                  "text": "STANDBY"
                },
                "8": {
                  "color": "red",
                  "index": 0,
                  "text": "FAULT"
                },
                "11": {
                  "color": "red",
                  "index": 4,
                  "text": "ALARM"
                }
              },
              "type": "value"
            }
          ],
          "noValue": "???",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "string"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 9,
        "w": 4,
        "x": 4,
        "y": 12
      },
      "id": 4,
      "options": {
        "colorMode": "background",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "horizontal",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {
          "titleSize": 20,
          "valueSize": 20
        },
        "textMode": "value_and_name"
      },
      "pluginVersion": "8.5.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "prometheus"
          },
          "exemplar": true,
          "expr": "device_attribute{host=\"$station\",name=\"State\",device=~\"stat/.*/1\"}",
          "instant": false,
          "interval": "",
          "legendFormat": "{{device}}",
          "refId": "A"
        }
      ],
      "title": "Device States",
      "transformations": [
        {
          "id": "renameByRegex",
          "options": {
            "regex": ".*/(.*)/1",
            "renamePattern": "$1"
          }
        }
      ],
      "type": "stat"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "prometheus"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "rgba(245, 54, 54, 0.9)",
                "value": null
              },
              {
                "color": "rgba(237, 129, 40, 0.89)",
                "value": 0
              },
              {
                "color": "rgba(50, 172, 45, 0.97)",
                "value": 10
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 11,
        "w": 10,
        "x": 8,
        "y": 12
      },
      "id": 63,
      "maxDataPoints": 1,
      "options": {
        "basemap": {
          "config": {},
          "type": "osm-standard"
        },
        "controls": {
          "mouseWheelZoom": true,
          "showAttribution": true,
          "showDebug": false,
          "showLayercontrol": true,
          "showScale": true,
          "showZoom": true
        },
        "layers": [
          {
            "config": {
              "cluster": false,
              "clusterDistance": 20,
              "clusterMinDistance": 0,
              "clusterValue": "size",
              "color": {
                "fixed": "dark-green"
              },
              "enableGradient": false,
              "enableShadow": false,
              "fillOpacity": 0.4,
              "iconSize": 9,
              "pinShape": "marker",
              "shape": "circle",
              "showLegend": true,
              "showPin": false,
              "size": {
                "fixed": 5,
                "max": 15,
                "min": 2
              }
            },
            "location": {
              "geohash": "str_value",
              "mode": "geohash"
            },
            "name": "Tiles",
            "type": "markers"
          }
        ],
        "view": {
          "id": "auto",
          "lat": 52.811858,
          "lon": 6.39537,
          "zoom": 18
        }
      },
      "pluginVersion": "8.5.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "prometheus"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "device_attribute{host=\"$station\", device=\"stat/antennafield/1\", name=\"Antenna_Reference_GEOHASH_R\"}",
          "format": "table",
          "instant": true,
          "range": false,
          "refId": "A"
        }
      ],
      "title": "HBA Tile Locations",
      "transformations": [
        {
          "id": "labelsToFields",
          "options": {}
        }
      ],
      "type": "orchestracities-map-panel"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "prometheus"
      },
      "description": "The number of data points of the largest attributes in the archive.",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "#EAB839",
                "value": 1000
              },
              {
                "color": "red",
                "value": 2000
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 11,
        "w": 6,
        "x": 18,
        "y": 12
      },
      "id": 65,
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "horizontal",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {
          "titleSize": 16,
          "valueSize": 16
        },
        "textMode": "auto"
      },
      "pluginVersion": "8.5.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "prometheus"
          },
          "editorMode": "code",
          "exemplar": false,
          "expr": "topk(20, count by(device, name) (device_attribute{host=\"$station\"}))",
          "instant": true,
          "legendFormat": "{{device}} - {{name}}",
          "range": false,
          "refId": "A"
        }
      ],
      "title": "Largest archived attributes",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "prometheus"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": "auto",
            "displayMode": "auto",
            "inspect": false
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "red",
                "value": null
              },
              {
                "color": "green",
                "value": 100
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 3,
        "w": 4,
        "x": 0,
        "y": 18
      },
      "id": 44,
      "options": {
        "footer": {
          "fields": "",
          "reducer": [
            "sum"
          ],
          "show": false
        },
        "showHeader": false
      },
      "pluginVersion": "8.5.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "prometheus"
          },
          "exemplar": false,
          "expr": "device_attribute{host=\"$station\",device=\"stat/boot/1\",name=\"status_R\"}",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "title": "Initialisation status",
      "transformations": [
        {
          "id": "labelsToFields",
          "options": {}
        },
        {
          "id": "merge",
          "options": {}
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "Time": true,
              "Value": true,
              "__name__": true,
              "device": true,
              "device_attribute{host=\"$station\",device=\"stat/boot/1\", dim_x=\"1\", dim_y=\"0\", instance=\"tango-prometheus-exporter:8000\", job=\"tango\", label=\"status_R\", name=\"status_R\", str_value=\"Initialisation completed\", type=\"string\", x=\"0\", y=\"0\"}": true,
              "dim_x": true,
              "dim_y": true,
              "instance": true,
              "job": true,
              "label": true,
              "name": true,
              "type": true,
              "x": true,
              "y": true
            },
            "indexByName": {
              "Time": 0,
              "Value": 5,
              "device": 1,
              "dim_x": 2,
              "dim_y": 3,
              "instance": 4,
              "job": 6,
              "label": 7,
              "name": 8,
              "str_value": 9,
              "type": 10,
              "x": 11,
              "y": 12
            },
            "renameByName": {
              "name": "",
              "str_value": "status"
            }
          }
        }
      ],
      "type": "table"
    }
  ],
  "refresh": false,
  "schemaVersion": 36,
  "style": "dark",
  "tags": [
    "station"
  ],
  "templating": {
    "list": [
      {
        "current": {
          "selected": false,
          "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-30m",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "",
  "title": "Home",
  "uid": "home",
  "version": 4,
  "weekStart": ""
}