If you will be using your configuration form your previous question, click on Query Editor and it will show you the equivalent query of your current settings.

In the query, there is a line | filter (resource.subscription_id == 'auto-subscription-2)
. Simply add ||
and include your subscription you want to include in the filter. The whole line should look like this after applying the OR expression:
| filter (resource.subscription_id == 'auto-subscription-2' || resource.subscription_id == 'my-subscription-dev')
The whole query should look like this:
fetch pubsub_subscription
| metric 'pubsub.googleapis.com/subscription/num_undelivered_messages'
| filter (resource.subscription_id == 'auto-subscription-2' || resource.subscription_id == 'my-subscription-dev' )
| group_by 2m,
[value_num_undelivered_messages_mean: mean(value.num_undelivered_messages)]
| every 2m
| condition val() > 5 '1'
NOTE:For testing purposes I originally have 3 subscriptions (test-sub,test-sub-2,test-sub-3) and I filtered test-sub and test-sub-3:
