RobustPerception / azure_metrics_exporter

Azure metrics exporter for Prometheus
Apache License 2.0
133 stars 69 forks source link

Can't fetch metrics from multiple resource_types. #98

Closed antopraveen closed 3 years ago

antopraveen commented 3 years ago

I am trying to fetch metrics from multiple resource type using the below config is not working, can you please let me know how to achieve this.


targets:
resource_groups:
  - resource_group: "RG-AZURE"
    resource_types:
      - "Microsoft.Network/loadBalancers"
    metrics:
      - name: "PacketCount"

resource_groups:
  - resource_group: "RG-AZURE"
    resource_types:
      - "Microsoft.DBforPostgreSQL/servers"
    metrics:
      - name: "active_connections"
      - name: "storage_used"
brian-brazil commented 3 years ago

This is an invalid configuration, you can't have two keys called resource_groups.

antopraveen commented 3 years ago

Is there a way i can tweak the config file to get statistics of multiple resource types like

antopraveen commented 3 years ago

Done

targets: resource_groups: