Open mhollstein opened 2 months ago
Bars with colour are without colour in Bar chart.
Using this: pve_disk_size_bytes{instance="$instance", id=~"storage/.+"} * on (id, instance) group_left(node, storage) pve_storage_info{storage=~"$storage", node="$host"}
I think, I can't split this into multiple querys. Therefore I can't use this tip: https://community.grafana.com/t/how-to-get-different-colour-for-each-legend-in-a-bar-chart/82751/6
Same behaviour as before.
It occurs the first time because Graph (old) changes to Bar chart because there is no AngularJS inside Grafana 11.
Grafana: 11.0.0-preview OS: Docker Browser: Chrome
Docker
No response
What happened?
Bars with colour are without colour in Bar chart.
Using this: pve_disk_size_bytes{instance="$instance", id=~"storage/.+"} * on (id, instance) group_left(node, storage) pve_storage_info{storage=~"$storage", node="$host"}
I think, I can't split this into multiple querys. Therefore I can't use this tip: https://community.grafana.com/t/how-to-get-different-colour-for-each-legend-in-a-bar-chart/82751/6
What did you expect to happen?
Same behaviour as before.
Did this work before?
It occurs the first time because Graph (old) changes to Bar chart because there is no AngularJS inside Grafana 11.
How do we reproduce it?
Is the bug inside a dashboard panel?
Panel debug snapshot dashboard
```json { "panels": [ { "datasource": { "type": "grafana", "uid": "grafana" }, "aliasColors": {}, "bars": true, "dashLength": 10, "fieldConfig": { "defaults": { "unitScale": true, "links": [] }, "overrides": [] }, "fill": 1, "gridPos": { "h": 13, "w": 15, "x": 0, "y": 0 }, "id": 2, "legend": { "alignAsTable": true, "avg": false, "current": false, "max": false, "min": false, "rightSide": true, "show": false, "total": false, "values": false }, "linewidth": 1, "links": [], "nullPointMode": "null", "options": { "alertThreshold": true }, "pluginVersion": "10.3.4", "pointradius": 2, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "targets": [ { "refId": "A", "datasource": { "type": "grafana", "uid": "grafana" }, "queryType": "snapshot", "snapshot": [ { "schema": { "refId": "A", "meta": { "type": "numeric-multi", "typeVersion": [ 0, 1 ], "custom": { "resultType": "vector" }, "executedQueryString": "Expr: pve_disk_size_bytes{instance=\"px209:9221\", id=~\"storage/.+\"} * on (id, instance) group_left(node, storage) pve_storage_info{storage=~\".*\", node=\"rn2wfcsv020\"}\nStep: 15s", "preferredVisualisationType": "graph" }, "fields": [ { "name": "Time", "type": "time", "typeInfo": { "frame": "time.Time" }, "config": { "interval": 15000 } }, { "name": "Value", "type": "number", "typeInfo": { "frame": "float64" }, "labels": { "id": "storage/rn2wfcsv020/local-zfs", "instance": "px209:9221", "job": "pve_exporter", "node": "rn2wfcsv020", "storage": "local-zfs" }, "config": { "displayNameFromDS": "rn2wfcsv020 - local-zfs" } } ] }, "data": { "values": [ [ 1713187617097 ], [ 6177439358976 ] ] } }, { "schema": { "refId": "A", "meta": { "type": "numeric-multi", "typeVersion": [ 0, 1 ], "custom": { "resultType": "vector" }, "preferredVisualisationType": "graph" }, "fields": [ { "name": "Time", "type": "time", "typeInfo": { "frame": "time.Time" }, "config": { "interval": 15000 } }, { "name": "Value", "type": "number", "typeInfo": { "frame": "float64" }, "labels": { "id": "storage/rn2wfcsv020/local", "instance": "px209:9221", "job": "pve_exporter", "node": "rn2wfcsv020", "storage": "local" }, "config": { "displayNameFromDS": "rn2wfcsv020 - local" } } ] }, "data": { "values": [ [ 1713187617097 ], [ 2998037381120 ] ] } }, { "schema": { "refId": "A", "meta": { "type": "numeric-multi", "typeVersion": [ 0, 1 ], "custom": { "resultType": "vector" }, "preferredVisualisationType": "graph" }, "fields": [ { "name": "Time", "type": "time", "typeInfo": { "frame": "time.Time" }, "config": { "interval": 15000 } }, { "name": "Value", "type": "number", "typeInfo": { "frame": "float64" }, "labels": { "id": "storage/rn2wfcsv020/shared-nfs", "instance": "px209:9221", "job": "pve_exporter", "node": "rn2wfcsv020", "storage": "shared-nfs" }, "config": { "displayNameFromDS": "rn2wfcsv020 - shared-nfs" } } ] }, "data": { "values": [ [ 1713187617097 ], [ 3245492666368 ] ] } }, { "schema": { "refId": "A", "meta": { "type": "numeric-multi", "typeVersion": [ 0, 1 ], "custom": { "resultType": "vector" }, "preferredVisualisationType": "graph" }, "fields": [ { "name": "Time", "type": "time", "typeInfo": { "frame": "time.Time" }, "config": { "interval": 15000 } }, { "name": "Value", "type": "number", "typeInfo": { "frame": "float64" }, "labels": { "id": "storage/rn2wfcsv020/px232-interim1-backup", "instance": "px209:9221", "job": "pve_exporter", "node": "rn2wfcsv020", "storage": "px232-interim1-backup" }, "config": { "displayNameFromDS": "rn2wfcsv020 - px232-interim1-backup" } } ] }, "data": { "values": [ [ 1713187617097 ], [ 3708510076928 ] ] } }, { "schema": { "refId": "A", "meta": { "type": "numeric-multi", "typeVersion": [ 0, 1 ], "custom": { "resultType": "vector" }, "preferredVisualisationType": "graph" }, "fields": [ { "name": "Time", "type": "time", "typeInfo": { "frame": "time.Time" }, "config": { "interval": 15000 } }, { "name": "Value", "type": "number", "typeInfo": { "frame": "float64" }, "labels": { "id": "storage/rn2wfcsv020/px236-interim2-backup", "instance": "px209:9221", "job": "pve_exporter", "node": "rn2wfcsv020", "storage": "px236-interim2-backup" }, "config": { "displayNameFromDS": "rn2wfcsv020 - px236-interim2-backup" } } ] }, "data": { "values": [ [ 1713187617097 ], [ 5112160690176 ] ] } }, { "schema": { "refId": "A", "meta": { "type": "numeric-multi", "typeVersion": [ 0, 1 ], "custom": { "resultType": "vector" }, "preferredVisualisationType": "graph" }, "fields": [ { "name": "Time", "type": "time", "typeInfo": { "frame": "time.Time" }, "config": { "interval": 15000 } }, { "name": "Value", "type": "number", "typeInfo": { "frame": "float64" }, "labels": { "id": "storage/rn2wfcsv020/rn2wfcsv018-backup", "instance": "px209:9221", "job": "pve_exporter", "node": "rn2wfcsv020", "storage": "rn2wfcsv018-backup" }, "config": { "displayNameFromDS": "rn2wfcsv020 - rn2wfcsv018-backup" } } ] }, "data": { "values": [ [ 1713187617097 ], [ 11790151950336 ] ] } } ] } ], "thresholds": [], "timeRegions": [], "title": "Reproduced with embedded data", "tooltip": { "shared": false, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "mode": "series", "show": true, "values": [ "current" ], "name": null, "buckets": null }, "yaxes": [ { "$$hashKey": "object:1431", "decimals": 1, "format": "bytes", "label": "", "logBase": 1, "show": true }, { "$$hashKey": "object:1432", "format": "short", "logBase": 1, "show": true } ], "yaxis": { "align": false }, "dashes": false, "description": "", "fillGradient": 0, "hiddenSeries": false, "lines": false, "percentage": false, "points": false, "stack": false, "steppedLine": false, "timeFrom": null, "timeShift": null }, { "gridPos": { "h": 7, "w": 9, "x": 15, "y": 0 }, "id": 5, "options": { "content": "Panel debug snapshot dashboard
```json { "panels": [ { "datasource": { "type": "grafana", "uid": "grafana" }, "fieldConfig": { "defaults": { "custom": { "lineWidth": 1, "fillOpacity": 80, "gradientMode": "none", "axisPlacement": "auto", "axisLabel": "", "axisColorMode": "text", "axisBorderShow": false, "scaleDistribution": { "type": "linear" }, "axisCenteredZero": false, "hideFrom": { "tooltip": false, "viz": false, "legend": false }, "thresholdsStyle": { "mode": "off" } }, "color": { "mode": "palette-classic" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "value": null, "color": "green" }, { "value": 80, "color": "red" } ] }, "links": [] }, "overrides": [] }, "gridPos": { "h": 13, "w": 15, "x": 0, "y": 0 }, "id": 2, "pluginVersion": "8.2.3", "targets": [ { "refId": "A", "datasource": { "type": "grafana", "uid": "grafana" }, "queryType": "snapshot", "snapshot": [ { "schema": { "refId": "A", "meta": { "type": "numeric-multi", "typeVersion": [ 0, 1 ], "custom": { "resultType": "vector" }, "executedQueryString": "Expr: pve_disk_size_bytes{instance=\"px209:9221\", id=~\"storage/.+\"} * on (id, instance) group_left(node, storage) pve_storage_info{storage=~\".*\", node=\"rn2wfcsv020\"}\nStep: 15s", "preferredVisualisationType": "graph" }, "fields": [ { "name": "Time", "type": "time", "typeInfo": { "frame": "time.Time" }, "config": { "interval": 15000 } }, { "name": "Value", "type": "number", "typeInfo": { "frame": "float64" }, "labels": { "id": "storage/rn2wfcsv020/local-zfs", "instance": "px209:9221", "job": "pve_exporter", "node": "rn2wfcsv020", "storage": "local-zfs" }, "config": { "displayNameFromDS": "rn2wfcsv020 - local-zfs" } } ] }, "data": { "values": [ [ 1713187011223 ], [ 6177438453760 ] ] } }, { "schema": { "refId": "A", "meta": { "type": "numeric-multi", "typeVersion": [ 0, 1 ], "custom": { "resultType": "vector" }, "preferredVisualisationType": "graph" }, "fields": [ { "name": "Time", "type": "time", "typeInfo": { "frame": "time.Time" }, "config": { "interval": 15000 } }, { "name": "Value", "type": "number", "typeInfo": { "frame": "float64" }, "labels": { "id": "storage/rn2wfcsv020/shared-nfs", "instance": "px209:9221", "job": "pve_exporter", "node": "rn2wfcsv020", "storage": "shared-nfs" }, "config": { "displayNameFromDS": "rn2wfcsv020 - shared-nfs" } } ] }, "data": { "values": [ [ 1713187011223 ], [ 3245492666368 ] ] } }, { "schema": { "refId": "A", "meta": { "type": "numeric-multi", "typeVersion": [ 0, 1 ], "custom": { "resultType": "vector" }, "preferredVisualisationType": "graph" }, "fields": [ { "name": "Time", "type": "time", "typeInfo": { "frame": "time.Time" }, "config": { "interval": 15000 } }, { "name": "Value", "type": "number", "typeInfo": { "frame": "float64" }, "labels": { "id": "storage/rn2wfcsv020/local", "instance": "px209:9221", "job": "pve_exporter", "node": "rn2wfcsv020", "storage": "local" }, "config": { "displayNameFromDS": "rn2wfcsv020 - local" } } ] }, "data": { "values": [ [ 1713187011223 ], [ 2997884944384 ] ] } }, { "schema": { "refId": "A", "meta": { "type": "numeric-multi", "typeVersion": [ 0, 1 ], "custom": { "resultType": "vector" }, "preferredVisualisationType": "graph" }, "fields": [ { "name": "Time", "type": "time", "typeInfo": { "frame": "time.Time" }, "config": { "interval": 15000 } }, { "name": "Value", "type": "number", "typeInfo": { "frame": "float64" }, "labels": { "id": "storage/rn2wfcsv020/px232-interim1-backup", "instance": "px209:9221", "job": "pve_exporter", "node": "rn2wfcsv020", "storage": "px232-interim1-backup" }, "config": { "displayNameFromDS": "rn2wfcsv020 - px232-interim1-backup" } } ] }, "data": { "values": [ [ 1713187011223 ], [ 3708510076928 ] ] } }, { "schema": { "refId": "A", "meta": { "type": "numeric-multi", "typeVersion": [ 0, 1 ], "custom": { "resultType": "vector" }, "preferredVisualisationType": "graph" }, "fields": [ { "name": "Time", "type": "time", "typeInfo": { "frame": "time.Time" }, "config": { "interval": 15000 } }, { "name": "Value", "type": "number", "typeInfo": { "frame": "float64" }, "labels": { "id": "storage/rn2wfcsv020/px236-interim2-backup", "instance": "px209:9221", "job": "pve_exporter", "node": "rn2wfcsv020", "storage": "px236-interim2-backup" }, "config": { "displayNameFromDS": "rn2wfcsv020 - px236-interim2-backup" } } ] }, "data": { "values": [ [ 1713187011223 ], [ 5112160690176 ] ] } }, { "schema": { "refId": "A", "meta": { "type": "numeric-multi", "typeVersion": [ 0, 1 ], "custom": { "resultType": "vector" }, "preferredVisualisationType": "graph" }, "fields": [ { "name": "Time", "type": "time", "typeInfo": { "frame": "time.Time" }, "config": { "interval": 15000 } }, { "name": "Value", "type": "number", "typeInfo": { "frame": "float64" }, "labels": { "id": "storage/rn2wfcsv020/rn2wfcsv018-backup", "instance": "px209:9221", "job": "pve_exporter", "node": "rn2wfcsv020", "storage": "rn2wfcsv018-backup" }, "config": { "displayNameFromDS": "rn2wfcsv020 - rn2wfcsv018-backup" } } ] }, "data": { "values": [ [ 1713187011223 ], [ 11790151950336 ] ] } } ] } ], "title": "Reproduced with embedded data", "type": "barchart", "transformations": [ { "id": "reduce", "options": { "reducers": [ "current" ] } } ], "options": { "orientation": "auto", "xTickLabelRotation": 0, "xTickLabelSpacing": 0, "showValue": "auto", "stacking": "none", "groupWidth": 0.7, "barWidth": 0.97, "barRadius": 0, "fullHighlight": false, "tooltip": { "mode": "single", "sort": "none", "maxHeight": 600 }, "legend": { "showLegend": true, "displayMode": "list", "placement": "bottom", "calcs": [] } }, "description": "" }, { "gridPos": { "h": 7, "w": 9, "x": 15, "y": 0 }, "id": 5, "options": { "content": "Environment (with versions)?
Grafana: 11.0.0-preview OS: Docker Browser: Chrome
Grafana platform?
Docker
Datasource(s)?
No response