This page describes event monitoring in AppDynamics.
In the AppDynamics model, events represent a change in the state of a monitored application. An event can represent an error/exception generated by the application, the crossing of a performance threshold, or an operational change in the application (such as a JVM restart).
You can use events to investigate application issues underlying performance problems. You can define policies that generate notifications or perform actions when an event occurs. See Alert and Respond.
View and Monitor Events
You can view and analyze events in the Controller UI. From the Database Visibility, Server Visibility, or user experience application pages in the UI, you can view events by clicking Events from the left navigation tree.
To view events for application monitoring:
- Navigate to Events on any business application, business transaction, tier or node dashboard to view events generated in the selected time frame.
- Click Filters and select the type of event to display.
- Review information about an event
If the event is an application change, such as an application restart, the details contain a description of the event.
If the event is a slow transaction or an error, the details are transaction snapshots from which you can drill down to the root cause of the problem.
- From the Event Details dialog, right-click an event to start a war room, delete or archive the event, or test action execution.
An event is purged after two weeks, at which point it is no longer accessible. To save an event beyond the default snapshot lifespan for future analysis, you can archive the event.
Event Purging in Ephemeral Environments
Events associated with nodes that are deployed to machine instances in an ephemeral environment are subject to being purged. This occurs because the node associated with the events is identified by a label consisting of two discrete parts: a node name and a machine instance name. The node name is always fixed, but the machine instance name changes in ephemeral environments. Thus, when a node is redeployed to a new machine instance, the label identifying the node changes.
For example, the label for a node in an ephemeral environment might consist of the fixed node name
"Node1" and the machine instance name
"INSTANCE-M-T1": NodeINSTANCE-M-T1. When the node is redeployed to another machine instance, the label for the node could change because of the new machine instance to something such as "Node1INSTANCE-M-T2". If this occurs, the events associated with the first label
"NodeINSTANCE-M-T1" could potentially be purged later.
Events Archived by Default
AppDynamics archives application configuration change events by default. In the Controller UI, these events display as Application Configuration Change. You can view the
APPLICATION_CONFIG_CHANGE events are archived or deleted, you can no longer retrieve them through the AppDynamics REST APIs.
Manually Archive Events
To manually archive events:
- Select the event from the events list.
- Click Actions > Archive Event.
- Click Archive to confirm the action.
Thisindicates that an event has been archived. You can click the column heading to sort by archived events.
Modify Event Retention Period (On-Premises Controllers)
For on-premises Controllers, administrators can modify the default two-week period by configuring the events.retention.period property in Administration > Controller Settings.
Filter Custom Events
The AppDynamics REST API enables you to define custom events. You can then filter on those events by creating a custom filter:
- Open the filter options on the Events page.
- Navigate to Filter by Custom Events and click Add Property (+).
- In the Add Custom Event Filter dialog, enter the name of the custom event type.
- Optionally, specify filtering event properties as key/value pairs. The custom event needs to contain the property values you specify to satisfy the filter. If you add multiple properties, a matching value of All applies an
ANDoperator to the list, meaning all properties need to match for the filter to be satisfied. Any indicates a logical
OR, meaning at least one property must exist and match for the filter to be satisfied.