This page describes how the Log Management & Analytics - Retain DPS capability is consumed and billed. For an overview of the capability, including its main features, see Log Management & Analytics - Retain.
The usage of Distributed Tracing and
Services is included with Dynatrace.
No consumption is generated by these apps.
Retained data is the amount of data saved to storage after data parsing, enrichment, transformation, and filtering but before compression. It is calculated per gibibyte-day (GiB-day).
Apply the following calculation to determine your daily consumption for the Retain data-usage dimension:
consumption per day = (volume of uncompressed logs stored in GiB) x (GiB-day price for Retain on your rate card)
This section describes the different Dynatrace tools that you can use to track consumption and costs.
Dynatrace provides a built-in usage metric that helps you understand and analyze your organization's consumption of Log Management and Analytics - Retain.
To use this metric, in Data Explorer, enter DPS
in the Search field.
Key: builtin:billing.log.retain.usage
Dimension: Byte
Resolution: 1 hour
Description: Number of bytes saved to storage after data parsing, enrichment, transformation, and filtering but before compression.
You can monitor the total bytes stored for Retain in hourly intervals for any selected timeframe using the metric builtin:billing.log.retain.usage
.
The example below shows usage aggregated in 1-hour intervals between 2023-09-04 and 2023-09-11 (last 7 days).
The following DQL query provides the hourly Retain usage by bucket.
fetch dt.system.events| filter event.kind == "BILLING_USAGE_EVENT" and event.type == "Log Management & Analytics - Retain"| summarize {usage.event_bucket = takeLast(usage.event_bucket), billed_bytes = takeLast(billed_bytes)}, by:{billing_period = bin(timestamp, 1h), event.id}| fieldsAdd bytes_and_bucket = record(bucket = usage.event_bucket, billed_bytes = billed_bytes)| summarize {`total billed_bytes` = sum(billed_bytes), `billed_bytes by bucket` = collectDistinct(bytes_and_bucket)}, by:{billing_period}| fields billing_period, `total billed_bytes`, `billed_bytes by bucket`
You can also view usage metrics in Account Management. Go to Account Management > Subscription > Overview > Cost and usage details > Usage summary and select the Log Management and Analytics - Retain capability.
You can query metrics via the Environment API - Metrics API v2.