Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support to export all the dimensions of azure metrics #99

Open
ajithkumar25b opened this issue Sep 20, 2024 · 1 comment
Open

Support to export all the dimensions of azure metrics #99

ajithkumar25b opened this issue Sep 20, 2024 · 1 comment

Comments

@ajithkumar25b
Copy link

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!!!

@mblaschke
Copy link
Member

The exporter is using the Azure Monitor REST API and is so limited to whatever Azure can provide.

This is actually not a limitation of the exporter but a limitation of Azure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants