You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Resource type: Microsoft.ServiceBus/namespaces not enabled for Cross Resource metrics
I have set up Azure Metrics Exporter in AKS, using ServiceMonitor. Prometheus service discovery and targets are OK and I can query the exporter via the browser. I can see the /query interface and have tried setting up the additional scrape targets in Prometheus as below - I get the error further below:
Resource type: Microsoft.ServiceBus/namespaces not enabled for Cross Resource metrics
I have set up Azure Metrics Exporter in AKS, using ServiceMonitor. Prometheus service discovery and targets are OK and I can query the exporter via the browser. I can see the
/query
interface and have tried setting up the additional scrape targets in Prometheus as below - I get the error further below:`
scrape_interval: 1m
metrics_path: /probe/metrics
params:
name:
- azure_metric
template:
- '{name}{metric}{aggregation}_{unit}'
help:
- Azure metric {metric} for {aggregation}
subscription:
- a1234567890-etc
resourceType:
- Microsoft.ServiceBus/namespaces
region:
- westeurope
metricNamespace:
- Microsoft.ServiceBus/namespaces
metric:
- IncomingMessages
interval:
- PT1H
timespan:
- PT1H
aggregation:
- average
- total
- count
metricTop:
- 10
validateDimensions:
- 'true'
static_configs:
- targets:
- "azure-metrics-exporter-service.azmonitormetrics.svc.cluster.local:80"
`
I get the following error:
Resource type: Microsoft.ServiceBus/namespaces not enabled for Cross Resource metrics
`
$>kubectl logs azmonitormetrics-azure-metrics-exporter-5578b849df-dvjtr
azmonitormetrics-azure-metrics-exporter-5578b849df-dvjtr azmonitormetrics 2025-05-15T16:05:55.452696105+01:00 {"level":"error","caller":"metrics/prober.go:242","msg":"GET https://management.azure.com/subscriptions/banana/providers/Microsoft.Insights/metrics\n--------------------------------------------------------------------------------\nRESPONSE 400: 400 Bad Request\nERROR CODE: BadRequest\n--------------------------------------------------------------------------------\n{\n "error": {\n "additionalInfo": [\n {\n "type": "string",\n "info": "TraceId=2086b941-ccab-4f14-89d7-bc5e160132b5"\n },\n {\n "type": "string",\n "info": "DateTime=2025-05-15T15:05:55.3691140Z"\n },\n {\n "type": "string",\n "info": "ExceptionType=Microsoft.Online.Metrics.MetricsMP.Utilities.RPRequestFormatException"\n }\n ],\n "code": "BadRequest",\n "message": "Resource type: Microsoft.ServiceBus/namespaces not enabled for Cross Resource metrics"\n }\n}\n--------------------------------------------------------------------------------\n","requestPath":"/probe/metrics","paramName":["azure_metric"],"paramResourceType":["Microsoft.ServiceBus/namespaces"],"paramTemplate":["{name}{metric}{aggregation}_{unit}"],"paramAggregation":["average","total","count"],"paramSubscription":["banana"],"paramTimespan":["PT1H"],"paramValidateDimensions":["true"],"paramHelp":["Azure metric {metric} for {aggregation}"],"paramInterval":["PT1H"],"paramMetric":["Messages"],"paramMetricNamespace":["Microsoft.ServiceBus/namespaces"],"paramMetricTop":["10"],"stacktrace":"github.com/webdevops/azure-metrics-exporter/metrics.(*MetricProber).collectMetricsFromSubscriptions.func1.1\n\t/go/src/github.com/webdevops/azure-metrics-exporter/metrics/prober.go:242\ngithub.com/webdevops/go-common/azuresdk/armclient.(*SubscriptionsIterator).ForEachAsync.func1\n\t/go/pkg/mod/github.com/webdevops/go-common@v0.0.0-20250501164923-7cab87d11d0f/azuresdk/armclient/iterator.subscriptions.go:113"}
`
How do I configure Azure Service Bus metrics and resolve the error above?
Many Thanks!
The text was updated successfully, but these errors were encountered: