Open danialre opened 2 weeks ago
One more note: influxdbBackendMigration
is set to false but enabling it doesn't change this behavior. Also tested with the newest release (10.4.2) and this bug is still occurring.
I have the same issue here. Glad I am not the only one:
I want to get fields for each year:
However it always sets the Cell Value field name for every column:
Also using InfluxDB as data source
Grafana 10.4.2
What happened?
When using the "Grouping to matrix" transformation on table data, the name of the Cell value field appears in the header instead of the value referred by the Column name.
Editing the transformation by removing/re-adding the Column field fixes the headers until the next dashboard refresh or page reload.
What did you expect to happen?
The value in the column field of the transformation should show up in the header of the table.
Did this work before?
Yes, up to and including 10.2.2
How do we reproduce it?
Is the bug inside a dashboard panel?
Panel debug snapshot dashboard
```json { "panels": [ { "datasource": { "type": "grafana", "uid": "grafana" }, "description": "", "fieldConfig": { "defaults": { "custom": { "align": "center", "cellOptions": { "type": "auto" }, "inspect": false, "minWidth": 50 }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "transparent", "value": null }, { "color": "dark-green", "value": 0.1 }, { "color": "semi-dark-green", "value": 0.25 }, { "color": "green", "value": 0.5 }, { "color": "#EAB839", "value": 2 }, { "color": "red", "value": 10 } ] }, "color": { "mode": "thresholds" }, "decimals": 2, "max": 10, "min": 0, "unit": "short" }, "overrides": [ { "matcher": { "id": "byType", "options": "number" }, "properties": [ { "id": "custom.cellOptions", "value": { "mode": "basic", "type": "color-background" } } ] }, { "matcher": { "id": "byName", "options": "From\\To" }, "properties": [ { "id": "custom.filterable", "value": true }, { "id": "mappings", "value": [ { "options": { "pattern": "192.168.(.*)", "result": { "index": 0, "text": "10.0.$1" } }, "type": "regex" } ] } ] } ] }, "gridPos": { "h": 13, "w": 15, "x": 0, "y": 0 }, "id": 2, "interval": "1m", "options": { "showHeader": true, "cellHeight": "sm", "footer": { "show": false, "reducer": [ "sum" ], "countRows": false, "fields": "" }, "sortBy": [ { "desc": false, "displayName": "From\\To" } ] }, "pluginVersion": "10.2.3", "targets": [ { "refId": "A", "datasource": { "type": "grafana", "uid": "grafana" }, "queryType": "snapshot", "snapshot": [ { "schema": { "refId": "A", "meta": { "typeVersion": [ 0, 0 ], "preferredVisualisationType": "table", "executedQueryString": "SELECT mean(\"mean\") *1000 AS \"RTT\" FROM \"rtt\" WHERE time >= 1714749261712ms and time <= 1714750161712ms GROUP BY \"test_spec_source\", \"test_spec_dest\"::tag ORDER BY time ASC", "transformations": [ "organize", "organize", "organize", "organize", "organize", "organize", "organize", "organize", "organize", "organize", "organize", "organize", "organize", "organize", "organize", "organize", "organize", "organize" ] }, "name": "rtt", "fields": [ { "name": "Time", "type": "time", "typeInfo": { "frame": "time.Time" }, "config": {} }, { "name": "test_spec_dest", "type": "string", "typeInfo": { "frame": "string", "nullable": true }, "config": { "displayNameFromDS": "test_spec_dest" } }, { "name": "test_spec_source", "type": "string", "typeInfo": { "frame": "string", "nullable": true }, "config": { "displayNameFromDS": "test_spec_source" } }, { "name": "RTT", "type": "number", "typeInfo": { "frame": "float64", "nullable": true }, "config": { "displayNameFromDS": "RTT" } } ] }, "data": { "values": [ [ 1714749261712, 1714749261712, 1714749261712, 1714749261712, 1714749261712, 1714749261712, 1714749261712, 1714749261712, 1714749261712, 1714749261712, 1714749261712, 1714749261712, 1714749261712, 1714749261712, 1714749261712 ], [ "192.168.219.114", "192.168.219.114", "192.168.219.114", "192.168.219.130", "192.168.219.130", "192.168.219.130", "192.168.219.34", "192.168.219.34", "192.168.219.34", "192.168.219.50", "192.168.219.50", "192.168.219.50", "192.168.219.98", "192.168.219.98", "192.168.219.98" ], [ "192.168.219.130", "192.168.219.50", "192.168.219.98", "192.168.219.114", "192.168.219.50", "192.168.219.98", "192.168.219.130", "192.168.219.50", "192.168.219.98", "192.168.219.114", "192.168.219.130", "192.168.219.98", "192.168.219.114", "192.168.219.130", "192.168.219.50" ], [ 0.208, 0.236, 0.222, 0.2, 0.23299999999999998, 0.19699999999999998, 0.19699999999999998, 0.2955, 0.17, 0.23900000000000002, 0.219, 0.27599999999999997, 0.21000000000000002, 0.194, 0.28150000000000003 ] ] } } ] } ], "title": "Reproduced with embedded data", "transformations": [ { "id": "organize", "options": { "excludeByName": {}, "includeByName": {}, "indexByName": {}, "renameByName": { "test_spec_dest": "To", "test_spec_source": "From" } } }, { "id": "groupingToMatrix", "options": { "columnField": "To", "rowField": "From", "valueField": "RTT" } }, { "id": "renameByRegex", "options": { "regex": "192.168.(.*)", "renamePattern": "10.0.$1" } } ], "type": "table" }, { "gridPos": { "h": 7, "w": 9, "x": 15, "y": 0 }, "id": 5, "options": { "content": "Environment (with versions)?
Grafana: 10.2.3 OSS OS: Docker image default Browser: Chrome 124, Firefox 125
Grafana platform?
Docker
Datasource(s)?
InfluxDB