Skip to content

Commit 6464776

Browse files
buraizurtrieu
authored andcommitted
Docs12123/metric discrepancy info (#32583)
* [DOCS-12123] Add image for metric discrepancy troubleshooting * [DOCS-12123] Add metric discrepancy troubleshooting * [DOCS-12123] Update link for metrics aggregation explanation * [DOCS-12123] Fix link reference for space aggregation * [DOCS-12123] Update heading level * Apply suggestions from code review Co-authored-by: Rosa Trieu <[email protected]> --------- Co-authored-by: Rosa Trieu <[email protected]>
1 parent 8d5d055 commit 6464776

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

content/en/integrations/guide/azure-advanced-configuration.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,34 @@ Turning on Diagnostics allows ARM deployed VMs to collect logging information wh
299299

300300
{{< img src="integrations/guide/azure_troubleshooting/azure_enable_diagnostics.png" alt="azure diagnostics settings overview displayed with No storage account highlighted under Pick a storage account and enable guest level monitoring enabled" style="width:70%">}}
301301

302+
## Discrepancy between your data in Azure and Datadog
303+
304+
Datadog's Azure integration collects all metrics from [Azure Monitor][14]. Metrics are collected with all available dimensions (which are mapped to tags in Datadog), the highest time granularity, and the primary aggregation type.
305+
306+
The sections below describe two important distinctions to be aware of, as well as steps to [reconcile the discrepancy](#reconcile-the-discrepancy).
307+
308+
### 1. Time aggregation
309+
310+
Datadog displays raw data from Azure in per-second values, regardless of the time frame selected in Azure. That can make Datadog's value appear lower than the value Azure displays. See [Time aggregation][15] in the metric documentation for more information.
311+
312+
### 2. Space aggregation
313+
314+
[Space aggregation][20] in Datadog corresponds to the [primary aggregation type][17] of the metric in Azure Monitor. You can find the primary aggregation type from Azure's [Metric Definitions - List][16] API, in the field `primaryAggregationType`.
315+
316+
### Reconcile the discrepancy
317+
318+
1. Graph the metric in [Azure Monitor Metrics Explorer][18], or by going to the resource in Azure and clicking **Monitoring** and then **Metrics** in the left panel.
319+
2. Graph the metric in the [Datadog Metrics Explorer][19].
320+
3. Confirm that the query in Azure is scoped identically to the query in Datadog:
321+
- Any dimensions used in the Azure metric query should match tags used in the Datadog metric query
322+
- The primary aggregation type used in the query should match the Datadog [space aggregator][19]
323+
- The time frame should match the time frame in the Datadog Metric Explorer
324+
4. Hover over a datapoint on the graph to display the timestamp and value.
325+
326+
{{< img src="integrations/guide/azure_advanced_configuration/azure_metric_explorer.png" alt="The Azure Metrics Explorer with the cursor hovering over a point in the graph, and the metric value and timestamp highlighted" >}}
327+
328+
5. Find the same point in time in the Datadog graph and compare the values. If the values are equal, the original discrepancy was due to differences in either time or space aggregation between the two graphs.
329+
302330
## Automated log collection
303331

304332
### Naming conflicts
@@ -393,3 +421,10 @@ The `azure.*.count` metric should show in Datadog within 5 - 10 minutes.
393421
[11]: /integrations/azure_arc/
394422
[12]: https://learn.microsoft.com/cli/azure/connectedmachine/extension
395423
[13]: /logs/guide/azure-event-hub-log-forwarding/
424+
[14]: https://learn.microsoft.com/azure/azure-monitor/reference/metrics-index
425+
[15]: /metrics/#time-aggregation
426+
[16]: https://learn.microsoft.com/rest/api/monitor/metric-definitions/list?view=rest-monitor-2023-10-01
427+
[17]: https://learn.microsoft.com/azure/azure-monitor/metrics/metrics-aggregation-explained#aggregation-types
428+
[18]: https://portal.azure.com/#view/Microsoft_Azure_Monitoring/AzureMonitoringBrowseBlade/~/metrics
429+
[19]: https://app.datadoghq.com/metric/explorer
430+
[20]: /metrics/#space-aggregation
193 KB
Loading

0 commit comments

Comments
 (0)