This page describes how the Log Management & Analytics - Retain with Included Queries DPS capability is consumed and billed. For an overview of the capability, including its main features, see Log Management & Analytics - Retain with Included Queries.
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).
Here's what's included with the Retain with Included Queries data-usage dimension:
Apply the following calculation to determine your daily consumption for the Retain with Included Queries data-usage dimension:
consumption per day = (volume of uncompressed logs stored in GiB) x (GiB-day price for Retain with Included Queries 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 with Included Queries.
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.
The example below shows usage aggregated in 1-hour intervals between 2024-09-15 and 2024-10-15 (last 30 days).
The following DQL query provides an overview of the Log Management & Analytics – Retain with Included Queries hourly usage in gibibytes retained by bucket:
fetch dt.system.events| filter event.kind == "BILLING_USAGE_EVENT" and event.type == "Log Management & Analytics - Retain with Included Queries"| summarize {usage.bucket = takeLast(usage.bucket), billed_bytes = takeLast(billed_bytes)}, by:{billing_period = bin(timestamp, 1h), event.id}| fields billing_period, billed_bytes, usage.bucket| makeTimeseries max(billed_bytes), by:{usage.bucket}, time: billing_period, interval:1h
The example below shows the hourly usage visualized in a bar chart for the last 30 days:
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 with Included Queries capability.
You can query this metric via the Environment API - Metrics API v2.
Yes, the retention period for log buckets ranges from a minimum of 10 days to a maximum of 35 days. If you need to retain your data for more than 35 days, consider switching to our usage-based model with Retain, and Query.
The data volume stored in a bucket configured for Retain with Included Queries defines the query volume that is included in your Retain with Included Queries consumption.
Included query usage per day = (GiB of logs retained) × 15