-
What Grafana version and what operating system are you using?
Docker image for grafana v9.0.9 -
What are you trying to achieve?
I’d like to show sums of linux block device write and read rates, and select the block devices by regular expression so adding additional storage does not require modifying the dashboard. And also try to use one query for multiple panels. -
How are you trying to achieve it?
I added a Transform, “Add field from calculation”, but the field name only allows selecting from existing fields. I tried manually modifying the json, but could not get that to work.
I also played with other transforms, but I’d like to have sums of reads and writes in one panel, along with each block device in another panel using one query.
- Can you copy/paste the configuration(s) that you are having problems with?
Image:
Used with this json (not sure how to attach the full json text), where I tried using “pattern” in place of a list. I’ve tried various regexes here too but they all just match all field names:
{
"id": "calculateField",
"options": {
"mode": "reduceRow",
"reduce": {
"reducer": "sum",
"include": {
"pattern": "Bits written sda"
}
},
"alias": "Failed Regex Total Writes"
}
}