Closed mbenabda closed 1 year ago
i figured out from https://github.com/Azure/azure-rest-api-specs/issues/21324 that this is actually expected behaviour (even though it is counter intuitive)
the only way I found so far to achieve similar results to what i was looking for is to filter on resource name:
resourceType eq 'Microsoft.EventHub/Namespaces' and (substringof('${env}-', name) or substringof('-${env}', name))
Hi there. First, let me thank you for the awesome work you're doing providing this exporter.
I'd like to know if there's any way i can filter metrics using both resource type and resource tags ? I'm pretty new to Azure metrics, so this may be straightforward, but i can't figure out how to do this
What i've tried so far:
resourceType
parameter with value['Microsoft.EventHub/Namespaces']
, it works, but is only part of what i'm looking forfilter
parameter with valuetagName eq 'my_tag_name' AND tagValue eq 'my_tag_value'
, it works, but is only part of what i'm looking forfilter
parameter with valueresourceType eq 'Microsoft.EventHub/Namespaces'
, it also works, but is only part of what i'm looking forand
operator, does not workresourceType
andfilter
parameters does not work, there are mutualy exclusivethis suggests that some properties can NOT be combined as well, so i have tried combining
substringof()
andresourceType
, to use one of the supported combinations, but without successhere's my scraping configuration:
any help appreciated, thank you !