Skip to content

Commit

Permalink
Fix/units names datascience (#582)
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasDerReisende authored Jul 27, 2023
1 parent 1fc6245 commit 8bde760
Show file tree
Hide file tree
Showing 10 changed files with 341 additions and 327 deletions.
82 changes: 72 additions & 10 deletions grafana/local/dashboard_config_based.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"type": "grafana-simple-json-datasource",
"uid": "DATASOURCE_UID"
},
"enable": true,
"enable": false,
"iconColor": "red",
"name": "Coal Train Spawn Events",
"query": "get_coal_spawn_events_by_config_id:${config_id}",
Expand Down Expand Up @@ -530,7 +530,7 @@
"type": "table"
}
],
"title": "Verkehrsleistung Zugkilometer pro Stunde",
"title": "Verkehrsleistung Histogramm",
"transformations": [
{
"id": "filterFieldsByName",
Expand Down Expand Up @@ -703,18 +703,18 @@
"uid": "DATASOURCE_UID"
},
"refId": "A",
"target": "get_verkehrsmenge_by_config_id:${config_id}",
"target": "get_verkehrsarbeit_by_config_id:${config_id}",
"type": "table"
}
],
"title": "Verkehrsmenge Zugkilometer",
"title": "Verkehrsarbeit Histogramm",
"transformations": [
{
"id": "filterFieldsByName",
"options": {
"include": {
"names": [
"block_section_length"
"edge_length"
]
}
}
Expand Down Expand Up @@ -826,7 +826,38 @@
},
"unit": "lengthkm"
},
"overrides": []
"overrides": [
{
"matcher": {
"id": "byName",
"options": "train_type"
},
"properties": [
{
"id": "mappings",
"value": [
{
"options": {
"all": {
"index": 0,
"text": "Alle"
},
"cargo": {
"index": 1,
"text": "Güterverkehr"
},
"regio": {
"index": 2,
"text": "Regionalverkehr"
}
},
"type": "value"
}
]
}
]
}
]
},
"gridPos": {
"h": 8,
Expand Down Expand Up @@ -855,11 +886,11 @@
"uid": "DATASOURCE_UID"
},
"refId": "A",
"target": "get_average_verkehrsmenge_by_config_id:${config_id}",
"target": "get_average_verkehrsarbeit_by_config_id:${config_id}",
"type": "table"
}
],
"title": "Durchschnittliche Verkehrsmenge nach Typ",
"title": "Durchschnittliche Verkehrsarbeit nach Typ",
"type": "bargauge"
},
{
Expand Down Expand Up @@ -966,7 +997,38 @@
},
"unit": "velocitykmh"
},
"overrides": []
"overrides": [
{
"matcher": {
"id": "byName",
"options": "train_type"
},
"properties": [
{
"id": "mappings",
"value": [
{
"options": {
"all": {
"index": 0,
"text": "Alle"
},
"cargo": {
"index": 1,
"text": "Güterverkehr"
},
"regio": {
"index": 2,
"text": "Regionalverkehr"
}
},
"type": "value"
}
]
}
]
}
]
},
"gridPos": {
"h": 8,
Expand Down Expand Up @@ -1030,7 +1092,7 @@
"type": "row"
}
],
"refresh": "",
"refresh": false,
"revision": 1,
"schemaVersion": 38,
"style": "dark",
Expand Down
70 changes: 66 additions & 4 deletions grafana/local/dashboard_multi_config_based.json
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,38 @@
},
"unit": "lengthkm"
},
"overrides": []
"overrides": [
{
"matcher": {
"id": "byName",
"options": "train_type"
},
"properties": [
{
"id": "mappings",
"value": [
{
"options": {
"all": {
"index": 0,
"text": "Alle"
},
"cargo": {
"index": 1,
"text": "Güterverkehr"
},
"regio": {
"index": 2,
"text": "Regionalverkehr"
}
},
"type": "value"
}
]
}
]
}
]
},
"gridPos": {
"h": 8,
Expand Down Expand Up @@ -253,11 +284,11 @@
"uid": "DATASOURCE_UID"
},
"refId": "A",
"target": "get_verkehrsmenge_by_multi_config:${config_ids}",
"target": "get_verkehrsarbeit_by_multi_config:${config_ids}",
"type": "table"
}
],
"title": "Verkehrsmenge",
"title": "Verkehrsarbeit",
"type": "bargauge"
},
{
Expand Down Expand Up @@ -287,7 +318,38 @@
},
"unit": "velocitykmh"
},
"overrides": []
"overrides": [
{
"matcher": {
"id": "byName",
"options": "train_type"
},
"properties": [
{
"id": "mappings",
"value": [
{
"options": {
"all": {
"index": 0,
"text": "Alle"
},
"cargo": {
"index": 2,
"text": "Güterverkehr"
},
"regio": {
"index": 1,
"text": "Regionalverkehr"
}
},
"type": "value"
}
]
}
]
}
]
},
"gridPos": {
"h": 8,
Expand Down
Loading

0 comments on commit 8bde760

Please sign in to comment.