webdevops / azure-metrics-exporter

Azure Monitor metrics exporter for Prometheus with dimension support, template engine and ServiceDiscovery
MIT License
118 stars 24 forks source link

parameter "subscription" is missing #59

Open pavithra24 opened 11 months ago

pavithra24 commented 11 months ago

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 commented 11 months ago

Hello devs, could you please help on this issue

mblaschke commented 8 months ago

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)?