Skip to content

Support to export all the dimensions of azure metrics #99

@ajithkumar25b

Description

@ajithkumar25b

Hello @mblaschke ,

Is there a way to get all the dimensions of the azure metrics?

Let's take the example of load balancer.
image 2024-09-20 at 2 51 47 PM

https://learn.microsoft.com/en-ca/azure/load-balancer/monitor-load-balancer-reference

My scrape config is given below ;
`- job_name: webdevops-azure-metrics-loadbalancer
scrape_interval: 1m
metrics_path: /probe/metrics/list
params:
name: ["azure_metric_loadbalancers"]
template: ["{name}{metric}{aggregation}_{unit}"]
subscription:
- 'xxxxxxxxxx'
resourceType: ["Microsoft.Network/loadBalancers"]
metric:
- AllocatedSnatPorts
- ByteCount
- DipAvailability
- PacketCount
- SnatConnectionCount
- SYNCount
- UsedSnatPorts
- VipAvailability
interval: ["PT15M"]
timespan: ["PT15M"]
aggregation:
- average
- total
static_configs:

  • targets: ["xxxxxxx:8080"]`

Scraped Metric for SnatConnectionCount ;
azure_metric_loadbalancers_snatconnectioncount_average_count{instance="***", interval="PT15M", job="webdevops-azure-metrics-loadbalancer", resourceGroup="****", resourceID="**", resourceName="***", subscriptionID="***", subscriptionName="***", timespan="PT15M"}

In the above metric, you can see that the FrontendIPAddress, BackendIPAddress, and ConnectionState fields are missing !!!

I have tried using the metricFilter parameter in the scrape job, and I got an additional field in the metric->dimension with value as IP address.
metricFilter: ["FrontendIPAddress eq '*'"]

I tried adding all the dimensions in the metricFilter parameter, and I got the same result as above.
This issue is similar to #58

Is there a way to get all the dimensions in the single configuration?

Thanks in advance!!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions