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

fix home dashboard to use station state enums

parent 16ed23f8
Branches
Tags
No related merge requests found
Pipeline #74069 passed
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
"editable": true, "editable": true,
"fiscalYearStartMonth": 0, "fiscalYearStartMonth": 0,
"graphTooltip": 0, "graphTooltip": 0,
"id": 95, "id": 90,
"links": [ "links": [
{ {
"asDropdown": true, "asDropdown": true,
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
"calcs": [ "calcs": [
"lastNotNull" "lastNotNull"
], ],
"fields": "/^str_value$/", "fields": "/^ds_station_state$/",
"values": false "values": false
}, },
"showPercentChange": false, "showPercentChange": false,
...@@ -142,11 +142,11 @@ ...@@ -142,11 +142,11 @@
}, },
"editorMode": "code", "editorMode": "code",
"exemplar": false, "exemplar": false,
"expr": "ds_station_state_info", "expr": "ds_station_state{host=\"$station\"} > 0",
"format": "table", "format": "table",
"instant": true, "instant": true,
"interval": "", "interval": "",
"legendFormat": "{{state_value}}", "legendFormat": "__auto",
"range": false, "range": false,
"refId": "A" "refId": "A"
} }
...@@ -553,7 +553,7 @@ ...@@ -553,7 +553,7 @@
}, },
"editorMode": "code", "editorMode": "code",
"exemplar": false, "exemplar": false,
"expr": "# obtain geographical location as a \"geohash\" label\r\nlabel_join(ds_antenna_reference_geohash_info{host=\"$station\"}, \"geohash\", \"\", \"str_value\")\r\n\r\n# obtain antenna name as an \"antenna_name\" label\r\n* on(x, member) group_right(geohash)\r\nlabel_join(ds_antenna_names_info{host=\"$station\"}, \"antenna_name\", \"\", \"str_value\")\r\n\r\n# # obtain the value of the marker\r\n* on(x, member) group_right(geohash, antenna_name, antenna_quality)\r\n(\r\n # select antennas that are in an active field and in the usage mask\r\n (label_join(ds_active_antenna_fields_info,\"member\",\"\",\"str_value\") * on(member) group_right ds_antenna_usage_mask{access=\"r\",family=\"DigitalBeam\"}) or\r\n # add antennas in inactive fields\r\n (ds_antenna_usage_mask{access=\"r\",family=\"DigitalBeam\"} * 0)\r\n)\r\n", "expr": "# obtain geographical location as a \"geohash\" label\r\nlabel_join(ds_antenna_reference_geohash_info{host=\"$station\"}, \"geohash\", \"\", \"str_value\")\r\n\r\n# obtain antenna name as an \"antenna_name\" label\r\n* on(x, member) group_right(geohash)\r\nlabel_join(ds_antenna_names_info{host=\"$station\"}, \"antenna_name\", \"\", \"str_value\")\r\n\r\n# # obtain the value of the marker\r\n* on(x, member) group_right(geohash, antenna_name, antenna_quality)\r\n(\r\n # select antennas that are in an active field and in the usage mask\r\n (label_join(ds_active_antenna_fields_info,\"member\",\"\",\"str_value\") * on(x, member) group_right ds_antenna_usage_mask{access=\"r\",family=\"DigitalBeam\"}) or\r\n # add antennas in inactive fields\r\n (ds_antenna_usage_mask{access=\"r\",family=\"DigitalBeam\"} * 0)\r\n)\r\n",
"format": "table", "format": "table",
"instant": true, "instant": true,
"legendFormat": "{{idx}}: {{antenna_name}} = {{Value}}", "legendFormat": "{{idx}}: {{antenna_name}} = {{Value}}",
...@@ -619,7 +619,7 @@ ...@@ -619,7 +619,7 @@
"calcs": [ "calcs": [
"lastNotNull" "lastNotNull"
], ],
"fields": "/^str_value$/", "fields": "/^ds_requested_station_state$/",
"values": false "values": false
}, },
"showPercentChange": false, "showPercentChange": false,
...@@ -635,41 +635,17 @@ ...@@ -635,41 +635,17 @@
}, },
"editorMode": "code", "editorMode": "code",
"exemplar": false, "exemplar": false,
"expr": "ds_station_state_transitioning * on(station) group_left(str_value) ds_last_requested_transition_info", "expr": "(ds_requested_station_state{host=\"$station\"} > 0) * on(host) group_right(ds_requested_station_state) (ds_station_state_transitioning{host=\"$station\"} +1)",
"format": "table", "format": "table",
"instant": true, "instant": true,
"interval": "", "interval": "",
"legendFormat": "{{state_value}}", "legendFormat": "__auto",
"range": false, "range": false,
"refId": "A" "refId": "A"
} }
], ],
"title": "Active State Transition", "title": "Active State Transition",
"transformations": [ "transformations": [],
{
"id": "filterByValue",
"options": {
"filters": [
{
"config": {
"id": "equal",
"options": {
"value": ""
}
},
"fieldName": "Value"
}
],
"match": "any",
"type": "exclude"
}
},
{
"disabled": true,
"id": "labelsToFields",
"options": {}
}
],
"type": "stat" "type": "stat"
}, },
{ {
...@@ -757,6 +733,6 @@ ...@@ -757,6 +733,6 @@
"timezone": "", "timezone": "",
"title": "Home", "title": "Home",
"uid": "home", "uid": "home",
"version": 7, "version": 2,
"weekStart": "" "weekStart": ""
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment