# Azure metrics exporter not working

**URL:** <https://forums.percona.com/t/azure-metrics-exporter-not-working/24273>\
**Category:** PMM 2.x\
**Tags:** pmm, percona, postgresql\
**Created:** [August 7, 2023, 12:38pm UTC](https://forums.percona.com/t/azure-metrics-exporter-not-working/24273 "2023-08-07T12:38:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ben5556\_K](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ben5556_k/32/12083_2.png) [@ben5556\_K](https://forums.percona.com/u/ben5556_K)\
**Post date:** [August 7, 2023, 12:38pm UTC](https://forums.percona.com/t/azure-metrics-exporter-not-working/24273/1 "2023-08-07T12:38:39Z")

</div>

## Description:

Azure metrics exporter not working

## Steps to Reproduce:

Enable Azure Monitoring technical preview feature. Add managed database service and enable Azure metrics checkbox while doing so.

## Version:

2.38.0

## Logs:

Entry seen in logs:

```auto
[31mERROe[0m[2023-08-07T12:05:08.596+00:00] ts=2023-08-07T12:05:08.596Z caller=main.go:61 level=error Received400statusforresource/subscriptions/<subscription_ID_redacted>/resourceGroups/rg-cloud-dev/providers/Microsoft.DBforPostgreSQL/flexibleServers/pg-cloud-dev/providers/microsoft.insights/metrics?aggregationAverage&api-version2018-01-01&metricnamescpu_percent%2Cmemory_percent%2Cstorage_percent%2Cstorage_used%2Cstorage_limit%2Cnetwork_bytes_egress%2Cnetwork_bytes_ingress&timespan2023-08-07T12%3A01%3A08Z%2F2023-08-07T12%3A02%3A08Z.=(MISSING) e[31magentIDe[0m=/agent_id/c5755af7-4b55-4ebb-bb7a-98c9316c68d4 e[31mcomponente[0m=agent-process e[31mtypee[0m=azure_database_exporter

```

## Expected Result:

Fetch metrics from Azure successfully

## Actual Result:

Failing with error 4xx

## Additional Information:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/2X/9/96806cc253bd8ec4a80bd9fb45ee1646ee8236d9.png)

Also, the Qan agent also seems to be stuck in Waiting state. I notice that this can be fixed by specifying the database name to a specific custom one but it always defaults to postgres even though i specify a different database while adding the service on PMM.

---

<div class="post-metadata">

**Author:** ![Roma\_Novikov](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/roma_novikov/32/1161_2.png) [@Roma\_Novikov](https://forums.percona.com/u/Roma_Novikov)\
**Post date:** [August 31, 2023, 11:48am UTC](https://forums.percona.com/t/azure-metrics-exporter-not-working/24273/2 "2023-08-31T11:48:06Z")

</div>

@ben5556_K , what about Azure instance metrics on the Node Summary dashboard? Do you see the data here?  
As the Azure exporter is to collect Node metrics and is not related to the QAN agent.

---

<div class="post-metadata">

**Author:** ![ben5556\_K](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ben5556_k/32/12083_2.png) [@ben5556\_K](https://forums.percona.com/u/ben5556_K)\
**Post date:** [July 25, 2024, 6:02am UTC](https://forums.percona.com/t/azure-metrics-exporter-not-working/24273/3 "2024-07-25T06:02:22Z")

</div>

No, not seeing data there as well. Logged a bug on Github

> <https://github.com/percona/percona-helm-charts/issues/352>
>
> \*\*Steps to Reproduce:\*\*
> 
> Enable Azure Monitoring technical preview feature. Ad…d managed database service and enable Azure metrics checkbox while doing so.
> 
> \*\*Version:\*\* 2.38.0 (tried with version 2.30.0 and latest version 2.42.0 as well)
> 
> \*\*Logs:\*\* (attached as well) Snippet below (\[AZURE\_DATABASE\_EXPORTER f90f739c-c0de-4966-b626-7c0dadf4ab35.log\](https://github.com/user-attachments/files/16371156/AZURE\_DATABASE\_EXPORTER.f90f739c-c0de-4966-b626-7c0dadf4ab35.log)))
> 
> \`\`\`
> \[31mERROe\[0m\[2023-08-07T12:05:08.596+00:00\] ts=2023-08-07T12:05:08.596Z caller=main.go:61 level=error Received400statusforresource/subscriptions/\<subscription\_ID\_redacted\>/resourceGroups/\<redacted\>/providers/Microsoft.DBforPostgreSQL/flexibleServers/\<redacted\>/providers/microsoft.insights/metrics?aggregationAverage&api-version2018-01-01&metricnamescpu\_percent%2Cmemory\_percent%2Cstorage\_percent%2Cstorage\_used%2Cstorage\_limit%2Cnetwork\_bytes\_egress%2Cnetwork\_bytes\_ingress&timespan2023-08-07T12%3A01%3A08Z%2F2023-08-07T12%3A02%3A08Z.=(MISSING) e\[31magentIDe\[0m=/agent\_id/c5755af7-4b55-4ebb-bb7a-98c9316c68d4 e\[31mcomponente\[0m=agent-process e\[31mtypee\[0m=azure\_database\_exporter
> \`\`\`
> 
> \*\*Expected Result:\*\*
> 
> Fetch metrics from Azure successfully
> 
> \*\*Actual Result:\*\*
> 
> Failing with error 4xx
> 
> Agents are all UP & RUNNING
> 
> !\[image\](https://github.com/user-attachments/assets/468444a8-e231-4777-bba6-4a117f29a9d5)

Same issue persists with latest version of PMM 2.42.0
