How to apply "Config from query" transform to multirow queries?

I have a two Prometheus queries:

A: Returns used storage on a device
B: Total storage

Each of those queries return two rows each. Here is an example:

A:
{__name__="fs_available_storage_bytes", instance="zt1:9101", job="service1", machine="P30", source="external"}
{__name__="fs_available_storage_bytes", instance="zt1:9101", job="service1", machine="P30", source="internal"}
B
{__name__="fs_total_storage_bytes", instance="zt1:9101", job="service1", machine="P30", source="external"}
{__name__="fs_total_storage_bytes", instance="zt1:9101", job="service1", machine="P30", source="internal"}

I want to use ‘total’ as max, so in transform I select “Config from query results” in config query I see two option for B. If I select B it looks like it selects both and if I set max only I see 3 bars. Two rom the A query and 1 form the B (source=“internal”).
If I try to add another “Config from query results” I have no queries available to consume for the transform.

It seams like a bug but maybe I am misconfiguring something? Quick hack was to specify source as internal seams to fix it because there is no real diff between the two… for now.

1 Like

Hi @povilasid,

Welcome to the :grafana: community support forums !!

We are excited that you joined our OSS community. Please read about some of the FAQs in the community :slight_smile:

We would appreciate it if you can open a bug report about this in our official GitHub repository using this link.

Provide all the information (you can simply copy/paste your data + screenshot from here to there).

Lastly, paste the link to your GitHub issue here in this post so that all other community users can also track it. I will also add more additional information to it :+1:

did you find out how to do this?