Can't fetch metrics from multiple resource_types.
Closed this issue · 3 comments
antopraveen commented
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
This is an invalid configuration, you can't have two keys called resource_groups.
antopraveen commented
Is there a way i can tweak the config file to get statistics of multiple resource types like
- Microsoft.DBforPostgreSQL/servers"
- Microsoft.Network/loadBalancers
Thanks in advance :)
antopraveen commented
Done
targets:
resource_groups:
- resource_group: "rg-***
resource_types:- "Microsoft.Network/loadBalancers"
metrics: - name: "PacketCount"
- "Microsoft.Network/loadBalancers"
- resource_group: "rg-***"
resource_types:- "Microsoft.DBforPostgreSQL/servers"
metrics: - name: "active_connections"
- name: "storage_used"
- "Microsoft.DBforPostgreSQL/servers"
- resource_group: "rg-***"
resource_types:- "Microsoft.Network/natGateways"
metrics: - name: "SNATConnectionCount"
- name: "PacketDropCount"
- "Microsoft.Network/natGateways"