Make sure you have installed and configured the components described in Installing Agent-Side Components and, for on-premises, Install the Controller and Events Service Deployment before attempting to configure Transaction Analytics.
Configuring Transaction Analytics consists of selecting the application and the specific business transactions that you want to analyze. You can also enable the collection of additional business data using Data Collectors. For Node.js apps, see Configure Analytics for Node.js.
To enable and configure Transaction Analytics for Java and .NET applications:
Even if you have pre-existing Data Collectors defined, you do not get Analytics data unless you confirm that the related business transactions are enabled for analytics.
After you select the application and the business transactions, you can configure various data collectors. This step is optional. For convenience, the Configure Transaction Analytics page includes sections for configuring data collectors (both HTTP and method invocation data collectors).
To collect HTTP request data, you can use the default HTTP Request Data Collector. You need to explicitly enable the collector for Analytics.
To configure HTTP Data Collectors for Analytics, use these steps:
You can also use the Analytics -> Configuration page to enable existing or new Method Invocation Data Collectors. Open the Method Invocation Data Collectors panel. The process is essentially the same as described in Data Collectors. Make sure that you:
Changing the name of method invocation data collector will create a completely new field in transaction analytics. If you want to change the type of a data collector field, we recommend creating a new field instead to avoid conflicts with the old data.
Transaction snapshots capture SQL queries. SQL data collectors provide a way to extract business data from parameters used in the SQL statements for use in analytics. See Collect Business Data From SQL Calls.
To configure the Node.js Agent to send the default transaction data to the analytics agent, you need to modify the require statement in your application. Add the following variables with the proper values to point to your analytics agent:
port: <analyticsPort> }
The analytics agent can be on the same host or a different host than the Node.js agent. For more details on installing the Node.js Agent, see Install the Node.js Agent.
For example, your require statement should look similar to the following where your analytics agent is on localhost and listening on port 9090:
You can also collect additional data from your Node.js business transactions by using the Node.js API. To configure transaction analytics data collectors for Node.js, see
txn.addAnalyticsData() in the Node.js Agent API Reference.