# Query regarding azure monitor\_service.go based logging in metricbeat

**URL:** <https://discuss.elastic.co/t/query-regarding-azure-monitor-service-go-based-logging-in-metricbeat/289804>\
**Category:** Beats\
**Tags:** beats-module, metricbeat\
**Created:** [November 22, 2021, 12:03pm UTC](https://discuss.elastic.co/t/query-regarding-azure-monitor-service-go-based-logging-in-metricbeat/289804 "2021-11-22T12:03:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![adhiraj-g](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adhiraj-g/32/88997_2.png) [@adhiraj-g](https://discuss.elastic.co/u/adhiraj-g)\
**Post date:** [November 22, 2021, 12:03pm UTC](https://discuss.elastic.co/t/query-regarding-azure-monitor-service-go-based-logging-in-metricbeat/289804/1 "2021-11-22T12:03:43Z")

</div>

Hi @Kaiyan_Sheng / @MarianaD ,

Hope you both are doing well.

While checking metricbeat logs, i observed the following line:

`2021-11-22T06:27:25.307-0500 WARN [azure monitor service] azure/monitor_service.go:130 Charges amounted to 180 are being applied while retrieving the metric values from the resource /subscriptions/<subscriptionId>/resourceGroups/<resourceGroup>/<resource_details>`

As checked on github, the monitor\_service.go file is associated with Billing API, but here we have disabled billing module as it won't work with Pay as you go subscriptions.

So, what cost does the line refer to? Kindly help get some clarity on the same.

MetricBeat Version: 7.15.0

Hope to hear back from you soon.

---

<div class="post-metadata">

**Author:** ![adhiraj-g](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adhiraj-g/32/88997_2.png) [@adhiraj-g](https://discuss.elastic.co/u/adhiraj-g)\
**Post date:** [November 28, 2021, 2:13pm UTC](https://discuss.elastic.co/t/query-regarding-azure-monitor-service-go-based-logging-in-metricbeat/289804/2 "2021-11-28T14:13:30Z")

</div>

Hi There,

Just following up on the same. Could you please help out here?

---

<div class="post-metadata">

**Author:** ![MarianaD](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marianad/32/42687_2.png) [@MarianaD](https://discuss.elastic.co/u/MarianaD)\
**Post date:** [December 2, 2021, 1:33pm UTC](https://discuss.elastic.co/t/query-regarding-azure-monitor-service-go-based-logging-in-metricbeat/289804/3 "2021-12-02T13:33:43Z")

</div>

hi @adhiraj-g , sorry for the delay, the costs are coming from the Azure metrics API, more info here [Azure module | Metricbeat Reference [7.15] | Elastic](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-module-azure.html#azure-api-cost). The amount charged in the logs is listed together with the metric values , unfortunately the unit/currency is not ( [Metrics - List - REST API (Azure Monitor) | Microsoft Docs](https://docs.microsoft.com/en-us/rest/api/monitor/metrics/list) under `cost`).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 30, 2021, 3:34pm UTC](https://discuss.elastic.co/t/query-regarding-azure-monitor-service-go-based-logging-in-metricbeat/289804/4 "2021-12-30T15:34:18Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
