question

MohanAnoop-7126 avatar image
0 Votes"
MohanAnoop-7126 asked MohanAnoop-7126 commented

List of exportable azure metrics for load balancer

Hi,

I was trying to export Azure Load balancer metrics using an exporter and read the Azure doc to see the available/supported metrics. Ref: https://docs.microsoft.com/en-us/azure/azure-monitor/essentials/metrics-supported#microsoftnetworkloadbalancers

I have a couple of questions, if some could help me.

1) The above documentation is showing the supported metrics with a column "Exportable via Diagnostic Settings". Hope this exporter can expose metrics which are marked as "yes" in "Exportable via Diagnostic Settings" column.

2) I believe the exporter can expose only the metrics which have been listed in the above documentation. If not, please share the doc reference (if there is any) which can guide me to configure more exportable metrics for load balancers.

Thank You,

azure-monitor
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SwathiDhanwada-MSFT avatar image
0 Votes"
SwathiDhanwada-MSFT answered MohanAnoop-7126 commented

@MohanAnoop-7126 Welcome to Microsoft Q & A Community Platform. In order to export azure metrics , you need to enable diagnostic settings for the load balancer. You can follow this document to enable it. You can send this to Log Analytics , archive to a Storage Account or stream to event hub.

For instance, if you send this data to Log Analytics , you can query the logs in Log analytics.

For load balancers, below is a sample query to check the metrics. Based on your requirement, you can modify the query and retrieve necessary details.

 AzureMetrics
 | where ResourceProvider == "MICROSOFT.NETWORK"and _ResourceId contains "loadbalancers"
 | summarize count() by MetricName

1) To export the data from log analytics, you can follow either of the below documents.
- workspace data export
- Export with logic apps
- Query with Azure Data Explorer
- Send To Excel
- Send To PowerBI

2) The document you are referring to is the latest one and the metrics which are suggested are only the ones that can be exported.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you @SwathiDhanwada-MSFT for the prompt response.

Actually my requirement is to collect Azure Monitor metrics to our prometheus using an exporter (Using https://github.com/RobustPerception/azure_metrics_exporter) and display this data in Grafana. Could you please confirm whether the solution you provided will work for my requirement? Just wanted to double check whether we can export metrics in prometheus metric format from log analytics using an exporter.

Thank You,

0 Votes 0 ·