Using Application Performance Management in a schedule
You can use Application Performance Management (APM) in a schedule to enable Dynatrace application and enhance the data collection during load testing by adding HTTP headers to the request in your HTTP tests. You can also use APM to monitor the performance of applications.
Before you begin
- Created a VU schedule or Rate schedule.
- Added an HTTP test to the schedule.
About this task
You can select the page or the transaction to enable the data to be displayed in the selected application and run the schedule. After the schedule run is complete, you can open the Test Log page, and select the request. You can then click the Protocol Data tab and open the Request page.
Based on the page or transaction that you select, the Request page displays a header that is added automatically to the current page of every request as described in the following table:
If you select... | Then... |
---|---|
Pages |
A header called PT_Page with a value of the current page is added to every request. |
Transactions |
A header called PT_Transaction with a value of
the current page is added to every request.
Note: If you do not add
any transaction to the schedule, then the header is not added to
the request. |
Procedure
- Open the schedule from the test editor.
- Select the schedule from the Schedule Contents section.
- Select Application Performance Management from the Category field.
- Select Enable Dynatrace checkbox to enable transaction and page requests into the Dynatrace application by using HTTP headers.
-
Select any of the following checkboxes to control the header that is added to
every request:
- Pages: Select this checkbox to add a header called PT_Page with a value of the current page name to every request.
- Transactions: Select this checkbox to add a header called PT_Transaction with a value of the current transaction name to every request within a transaction.
-
Select one of the following options to filter the requests:
- All: Click this option to add headers to all the requests.
- Primary Request Only: Click this option to add headers to the primary requests only.
- Select the Filter by Host/Port checkbox to filter the requests based on the hostname and port number of the existing connections in the tests.
-
Select the Filter by User Defined checkbox, and then
perform the following steps if you want to filter the requests based on the
strings that you defined:
-
Select any one of the following checkboxes to add the filters for the
category:
- Both filters match: Click this option to select only the requests that match both the Filter by Host/Port and Filter by User Defined filters.
- Either filter matches: Click this option to select the requests that match either Filter by Host/Port or Filter by User Defined filters.
Results
You have enabled the Dynatrace application in a schedule by using APM.
What to do next
You can save and run the schedule. After the schedule run is complete, you can open the Test Log page, and select the request. You can then click the and verify the request details.