Skip to content
Snippets Groups Projects
Commit 92e6f2a1 authored by Jan David Mol's avatar Jan David Mol
Browse files

Fix antenna location view, removed alarm/alert panels as those are not available on a station yet

parent 3fc9a027
No related merge requests found
Pipeline #49546 passed
......@@ -24,8 +24,7 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 12,
"iteration": 1651665241632,
"id": 14,
"links": [
{
"asDropdown": true,
......@@ -44,318 +43,6 @@
],
"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": {
......@@ -366,7 +53,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 11
"y": 0
},
"id": 15,
"panels": [],
......@@ -412,7 +99,7 @@
"h": 6,
"w": 4,
"x": 0,
"y": 12
"y": 1
},
"id": 61,
"options": {
......@@ -428,7 +115,7 @@
"showThresholdMarkers": false,
"text": {}
},
"pluginVersion": "8.5.1",
"pluginVersion": "9.5.1",
"targets": [
{
"exemplar": true,
......@@ -505,7 +192,7 @@
"h": 9,
"w": 4,
"x": 4,
"y": 12
"y": 1
},
"id": 4,
"options": {
......@@ -526,7 +213,7 @@
},
"textMode": "value_and_name"
},
"pluginVersion": "8.5.1",
"pluginVersion": "9.5.1",
"targets": [
{
"datasource": {
......@@ -571,13 +258,9 @@
"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
"value": 1
}
]
}
......@@ -588,7 +271,7 @@
"h": 11,
"w": 10,
"x": 8,
"y": 12
"y": 1
},
"id": 63,
"maxDataPoints": 1,
......@@ -613,6 +296,7 @@
"clusterMinDistance": 0,
"clusterValue": "size",
"color": {
"field": "Value",
"fixed": "dark-green"
},
"enableGradient": false,
......@@ -621,7 +305,7 @@
"iconSize": 9,
"pinShape": "marker",
"shape": "circle",
"showLegend": true,
"showLegend": false,
"showPin": false,
"size": {
"fixed": 5,
......@@ -629,11 +313,18 @@
"min": 2
}
},
"displayProperties": [
"name",
"idx",
"Value"
],
"location": {
"geohash": "str_value",
"geohash": "geohash",
"mode": "geohash"
},
"name": "Tiles",
"query": "A",
"titleField": "antenna_name",
"type": "markers"
}
],
......@@ -653,20 +344,16 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "device_attribute{host=\"$station\", device=\"stat/antennafield/1\", name=\"Antenna_Reference_GEOHASH_R\"}",
"expr": "# obtain geographical location as a \"geohash\" label\r\nlabel_join(device_attribute{host=\"$station\", device=\"stat/antennafield/$antennafield\", name=\"Antenna_Reference_GEOHASH_R\"}, \"geohash\", \"\", \"str_value\")\r\n\r\n# obtain antenna name as an \"antenna_name\" label\r\n* on(idx) group_right(geohash)\r\nlabel_join(device_attribute{host=\"$station\", device=\"stat/antennafield/$antennafield\", name=\"Antenna_Names_R\"}, \"antenna_name\", \"\", \"str_value\")\r\n\r\n# obtain the value of the marker\r\n* on(idx) group_right(geohash, antenna_name)\r\ndevice_attribute{host=\"$station\", device=\"stat/antennafield/$antennafield\", name=\"ANT_mask_RW\"} != bool 0",
"format": "table",
"instant": true,
"legendFormat": "{{idx}}: {{name}} = {{Value}}",
"range": false,
"refId": "A"
}
],
"title": "HBA Tile Locations",
"transformations": [
{
"id": "labelsToFields",
"options": {}
}
],
"title": "Antenna Locations",
"transformations": [],
"type": "orchestracities-map-panel"
},
{
......@@ -705,7 +392,7 @@
"h": 11,
"w": 6,
"x": 18,
"y": 12
"y": 1
},
"id": 65,
"options": {
......@@ -726,7 +413,7 @@
},
"textMode": "auto"
},
"pluginVersion": "8.5.1",
"pluginVersion": "9.5.1",
"targets": [
{
"datasource": {
......@@ -758,7 +445,9 @@
},
"custom": {
"align": "auto",
"displayMode": "auto",
"cellOptions": {
"type": "auto"
},
"inspect": false
},
"mappings": [],
......@@ -782,11 +471,13 @@
"h": 3,
"w": 4,
"x": 0,
"y": 18
"y": 7
},
"id": 44,
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"fields": "",
"reducer": [
"sum"
......@@ -795,7 +486,7 @@
},
"showHeader": false
},
"pluginVersion": "8.5.1",
"pluginVersion": "9.5.1",
"targets": [
{
"datasource": {
......@@ -864,8 +555,8 @@
"type": "table"
}
],
"refresh": false,
"schemaVersion": 36,
"refresh": "",
"schemaVersion": 38,
"style": "dark",
"tags": [
"station"
......@@ -902,7 +593,7 @@
},
{
"current": {
"selected": true,
"selected": false,
"text": "h0",
"value": "h0"
},
......@@ -930,7 +621,7 @@
},
{
"current": {
"selected": true,
"selected": false,
"text": "hba",
"value": "hba"
},
......@@ -966,6 +657,6 @@
"timezone": "",
"title": "Home",
"uid": "home",
"version": 4,
"version": 1,
"weekStart": ""
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment