RMF Variable Query syntax
Variables are a powerful tool to create more interactive and dynamic dashboards. They offer a way to replace hard-coded values in metric queries and panel titles with placeholders for values.
You can define a dashboard variable in using Grafana's RMF Variable Query syntax with and without a filter.
Syntax of the query without a filter
The general syntax of the query without a filter is as follows:
SELECT
                    <COLUMN_NAME> FROM RESOURCE WHERE condition1 or
                        condition2 or
                condition3
<COLUMN_NAME> is limited to labeland
RESOURCE is limited to resourceonly and cannot be used for other purposes.
condition1: ULQ=Value and TYPE=Valuecondition2: Name=Value and TYPE=Valuecondition3: Name=Value and ULQ=Value and TYPE=Value
select label from resource where ulq="hostname of the DDS" and type="CHANNEL_PATH"select label from resource where ulq="hostname of the DDS" and type="ALL_CHANNELS"
Examples for condition2:
select
                label from resource where
                        name="resource_name" and
                        type="SYSPLEX"select label from resource where ulq="hostname of the DDS" and name="*" and type="CHANNEL_PATH"select label from resource where ulq="hostname of the DDS" and name="*" and type="ALL_CHANNELS"
Syntax of the query with a filter
The general syntax of the RMF query with a filter is as follows:
SELECT <COLUMN_NAME> FROM RESOURCE WHERE
                    condition
Where condition is
                        Name=Value and
                        ULQ=Value and
                        TYPE=Value and
                        Filter=
                    Value
Examples for condition:
select label from resource where
                            name="resource_name"
                        and type="SYSPLEX" and
                            filter="MVS_IMAGE"
To learn how to effectively add and manage variables of your choice in Grafana, you can refer to the Grafana documentation.