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 branches found
No related tags found
No related merge requests found
Pipeline #49546 passed
...@@ -24,8 +24,7 @@ ...@@ -24,8 +24,7 @@
"editable": true, "editable": true,
"fiscalYearStartMonth": 0, "fiscalYearStartMonth": 0,
"graphTooltip": 0, "graphTooltip": 0,
"id": 12, "id": 14,
"iteration": 1651665241632,
"links": [ "links": [
{ {
"asDropdown": true, "asDropdown": true,
...@@ -44,318 +43,6 @@ ...@@ -44,318 +43,6 @@
], ],
"liveNow": true, "liveNow": true,
"panels": [ "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, "collapsed": false,
"datasource": { "datasource": {
...@@ -366,7 +53,7 @@ ...@@ -366,7 +53,7 @@
"h": 1, "h": 1,
"w": 24, "w": 24,
"x": 0, "x": 0,
"y": 11 "y": 0
}, },
"id": 15, "id": 15,
"panels": [], "panels": [],
...@@ -412,7 +99,7 @@ ...@@ -412,7 +99,7 @@
"h": 6, "h": 6,
"w": 4, "w": 4,
"x": 0, "x": 0,
"y": 12 "y": 1
}, },
"id": 61, "id": 61,
"options": { "options": {
...@@ -428,7 +115,7 @@ ...@@ -428,7 +115,7 @@
"showThresholdMarkers": false, "showThresholdMarkers": false,
"text": {} "text": {}
}, },
"pluginVersion": "8.5.1", "pluginVersion": "9.5.1",
"targets": [ "targets": [
{ {
"exemplar": true, "exemplar": true,
...@@ -505,7 +192,7 @@ ...@@ -505,7 +192,7 @@
"h": 9, "h": 9,
"w": 4, "w": 4,
"x": 4, "x": 4,
"y": 12 "y": 1
}, },
"id": 4, "id": 4,
"options": { "options": {
...@@ -526,7 +213,7 @@ ...@@ -526,7 +213,7 @@
}, },
"textMode": "value_and_name" "textMode": "value_and_name"
}, },
"pluginVersion": "8.5.1", "pluginVersion": "9.5.1",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
...@@ -571,13 +258,9 @@ ...@@ -571,13 +258,9 @@
"color": "rgba(245, 54, 54, 0.9)", "color": "rgba(245, 54, 54, 0.9)",
"value": null "value": null
}, },
{
"color": "rgba(237, 129, 40, 0.89)",
"value": 0
},
{ {
"color": "rgba(50, 172, 45, 0.97)", "color": "rgba(50, 172, 45, 0.97)",
"value": 10 "value": 1
} }
] ]
} }
...@@ -588,7 +271,7 @@ ...@@ -588,7 +271,7 @@
"h": 11, "h": 11,
"w": 10, "w": 10,
"x": 8, "x": 8,
"y": 12 "y": 1
}, },
"id": 63, "id": 63,
"maxDataPoints": 1, "maxDataPoints": 1,
...@@ -613,6 +296,7 @@ ...@@ -613,6 +296,7 @@
"clusterMinDistance": 0, "clusterMinDistance": 0,
"clusterValue": "size", "clusterValue": "size",
"color": { "color": {
"field": "Value",
"fixed": "dark-green" "fixed": "dark-green"
}, },
"enableGradient": false, "enableGradient": false,
...@@ -621,7 +305,7 @@ ...@@ -621,7 +305,7 @@
"iconSize": 9, "iconSize": 9,
"pinShape": "marker", "pinShape": "marker",
"shape": "circle", "shape": "circle",
"showLegend": true, "showLegend": false,
"showPin": false, "showPin": false,
"size": { "size": {
"fixed": 5, "fixed": 5,
...@@ -629,11 +313,18 @@ ...@@ -629,11 +313,18 @@
"min": 2 "min": 2
} }
}, },
"displayProperties": [
"name",
"idx",
"Value"
],
"location": { "location": {
"geohash": "str_value", "geohash": "geohash",
"mode": "geohash" "mode": "geohash"
}, },
"name": "Tiles", "name": "Tiles",
"query": "A",
"titleField": "antenna_name",
"type": "markers" "type": "markers"
} }
], ],
...@@ -653,20 +344,16 @@ ...@@ -653,20 +344,16 @@
}, },
"editorMode": "code", "editorMode": "code",
"exemplar": false, "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", "format": "table",
"instant": true, "instant": true,
"legendFormat": "{{idx}}: {{name}} = {{Value}}",
"range": false, "range": false,
"refId": "A" "refId": "A"
} }
], ],
"title": "HBA Tile Locations", "title": "Antenna Locations",
"transformations": [ "transformations": [],
{
"id": "labelsToFields",
"options": {}
}
],
"type": "orchestracities-map-panel" "type": "orchestracities-map-panel"
}, },
{ {
...@@ -705,7 +392,7 @@ ...@@ -705,7 +392,7 @@
"h": 11, "h": 11,
"w": 6, "w": 6,
"x": 18, "x": 18,
"y": 12 "y": 1
}, },
"id": 65, "id": 65,
"options": { "options": {
...@@ -726,7 +413,7 @@ ...@@ -726,7 +413,7 @@
}, },
"textMode": "auto" "textMode": "auto"
}, },
"pluginVersion": "8.5.1", "pluginVersion": "9.5.1",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
...@@ -758,7 +445,9 @@ ...@@ -758,7 +445,9 @@
}, },
"custom": { "custom": {
"align": "auto", "align": "auto",
"displayMode": "auto", "cellOptions": {
"type": "auto"
},
"inspect": false "inspect": false
}, },
"mappings": [], "mappings": [],
...@@ -782,11 +471,13 @@ ...@@ -782,11 +471,13 @@
"h": 3, "h": 3,
"w": 4, "w": 4,
"x": 0, "x": 0,
"y": 18 "y": 7
}, },
"id": 44, "id": 44,
"options": { "options": {
"cellHeight": "sm",
"footer": { "footer": {
"countRows": false,
"fields": "", "fields": "",
"reducer": [ "reducer": [
"sum" "sum"
...@@ -795,7 +486,7 @@ ...@@ -795,7 +486,7 @@
}, },
"showHeader": false "showHeader": false
}, },
"pluginVersion": "8.5.1", "pluginVersion": "9.5.1",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
...@@ -864,8 +555,8 @@ ...@@ -864,8 +555,8 @@
"type": "table" "type": "table"
} }
], ],
"refresh": false, "refresh": "",
"schemaVersion": 36, "schemaVersion": 38,
"style": "dark", "style": "dark",
"tags": [ "tags": [
"station" "station"
...@@ -902,7 +593,7 @@ ...@@ -902,7 +593,7 @@
}, },
{ {
"current": { "current": {
"selected": true, "selected": false,
"text": "h0", "text": "h0",
"value": "h0" "value": "h0"
}, },
...@@ -930,7 +621,7 @@ ...@@ -930,7 +621,7 @@
}, },
{ {
"current": { "current": {
"selected": true, "selected": false,
"text": "hba", "text": "hba",
"value": "hba" "value": "hba"
}, },
...@@ -966,6 +657,6 @@ ...@@ -966,6 +657,6 @@
"timezone": "", "timezone": "",
"title": "Home", "title": "Home",
"uid": "home", "uid": "home",
"version": 4, "version": 1,
"weekStart": "" "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