Dynatrace produces system events for system activity in your environment, for example, when an app is installed, updated, and uninstalled. You can extract a metric via OpenPipeline and track how many app updates occurred in your environment.
This article is intended for administrators and app users.
In this article, you'll learn how to set up OpenPipeline to extract a metric to monitor system events frequency.
storage:system:read
user permissionGo to Notebooks and open an existing or new notebook.
Select > DQL.
Enter a DQL query to fetch the relevant records.
App lifecycle events are audit events produced by Dynatrace AppEngine Registry. The following example query fetches app lifecycle events and summarizes the results by event type.
fetch dt.system.events| filter event.kind == "AUDIT_EVENT" AND event.provider == "APP_REGISTRY"| summarize by:{event.type}, count()
To filter only by app updates, select app.updated > Filter.
You found the condition that identifies app updates (event.kind == "AUDIT_EVENT" AND event.provider == "APP_REGISTRY" AND event.type == "app.updated"
).
Go to OpenPipeline > System events > Pipelines.
To create a new pipeline, select Pipeline and enter a name—for example, App LifeCycle-Updates
.
To configure metric extraction, go to Metric extraction > Processor > Counter metric and define the processor by entering:
Frequency
event.type == app.updated
apps.updates
resource
from the pre-defined dimensions. This dimension identifies the ID of the app from which the update originates.details.app.type
.Select Save.
You successfully created a new pipeline to extract a metric containing information about the event's source and further app details. The new pipeline is visible in the pipelines list.
Go to OpenPipeline > System events > Dynamic routing.
To create a new route, select Dynamic route and specify:
App LifeCycle
event.kind == "AUDIT_EVENT" AND event.provider == "APP_REGISTRY"
App LifeCycle-Updates
)Select Add.
You successfully created a new route. All app lifecycle events are routed to the pipeline where a metric is extracted only for app updates. The new route is visible in the routes list.
dt.system.events.apps.updates
).You successfully extracted a metric to track app update frequency. All new app lifecycle events are routed to a new pipeline. When a record is an app update, the new pipeline extracts a metric containing the ID of the application from which the update originates and further app details. You can query the metric in Dashboards and Notebooks.