azure-metrics-exporter icon indicating copy to clipboard operation
azure-metrics-exporter copied to clipboard

parameter "subscription" is missing

Open pavithra24 opened this issue 2 years ago • 2 comments

Below is my configuration for azure metrics exporter, when I browse /probe/metrics/list I get this error parameter "subscription" is missing

- job_name: azure-metrics-databases
   scrape_interval: 1m
   metrics_path: /probe/metrics/list
   params:
     name: ["azure-databases"]
     subscription:
     - xxx-xxx
     filter: ["resourceType eq 'Microsoft.DBforMySQL/servers'"]
     metric:
     - storage_used
     - storage_percent
     - connections_failed
     - cpu_percent
     - active_connections
     - network_bytes_egress
     - network_bytes_ingress
     interval: ["PT1M"]
     timespan: ["PT1M"]
     aggregation:
     - average
     - total
   static_configs:
   - targets: ["azure-metrics-exporter-webdevops.external-monitor.svc.cluster.local:8080"]

Please help me to fix this, I do see this on Prometheus dashboard

azure_databases{aggregation="average", instance="azure-metrics-exporter-webdevops.external-monitor.svc.cluster.local:8080", interval="PT1M", job="azure-metrics-databases", metric="active_connections", resourceGroup="databases-rg", resourceID="/subscriptions/xxx-xxx/resourcegroups/databases-rg/providers/microsoft.dbformysql/servers/shopware-mysql", resourceName="shopware-mysql", subscriptionID="xxx-xxx", subscriptionName="dedicated", timespan="PT1M", unit="Count"}

pavithra24 avatar Aug 10 '23 17:08 pavithra24

Hello devs, could you please help on this issue

pavithra24 avatar Aug 15 '23 10:08 pavithra24

you don't have any output? no metrics scraped? what happens if you try the /query url and trigger the metrics probe (eg use portforward)?

mblaschke avatar Oct 23 '23 22:10 mblaschke