# Number of Elastic Agent requests sent to Azure Monitor API

**URL:** <https://discuss.elastic.co/t/number-of-elastic-agent-requests-sent-to-azure-monitor-api/354352>\
**Category:** Metrics\
**Created:** [February 28, 2024, 1:50pm UTC](https://discuss.elastic.co/t/number-of-elastic-agent-requests-sent-to-azure-monitor-api/354352 "2024-02-28T13:50:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![s.buksa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/s.buksa/32/124525_2.png) [@s.buksa](https://discuss.elastic.co/u/s.buksa)\
**Post date:** [February 28, 2024, 1:50pm UTC](https://discuss.elastic.co/t/number-of-elastic-agent-requests-sent-to-azure-monitor-api/354352/1 "2024-02-28T13:50:39Z")

</div>

Hello,  
Could someone help me to understand how Elastic Agent performed API calls to Azure monitor for metrics ingestion is being calculated?  
The following snippet of configuration:

```auto
period: 60s
client_id: xxxx
client_secret: xxxx
tenant_id: xxxx
subscription_id: xxxx
refresh_list_interval: 60s
resources:
  - resource_query: "resourceType eq 'Microsoft.EventHub/Namespaces'"
    metrics:
      - name: 
          - ActiveConnections
        namespace: "Microsoft.EventHub/Namespaces"
        timegrain: PT1M
        ignore_unsupported: true
      - name:
          - IncomingMessages
          - OutgoingMessages
          - IncomingBytes
          - OutgoingBytes
          - Size  
        namespace: "Microsoft.EventHub/Namespaces"
        timegrain: PT1M
        dimensions:
            - name: EntityName
              value: '*'
        ignore_unsupported: true

```

Results in 3 documents in Elasticsearch every minute:  
1 document for metric that does not support dimensions;  
1 document for metrics that support dimension EntityName at Namespace level;  
1 document for metrics that support dimension EntityName at Event Hub level.

Does it mean one document = 1 API call? And 3 documents in one minute = 3 API calls in one minute?

---

<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:** [March 27, 2024, 1:51pm UTC](https://discuss.elastic.co/t/number-of-elastic-agent-requests-sent-to-azure-monitor-api/354352/2 "2024-03-27T13:51:27Z")

</div>

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