How to setup transaction Metric for Nodejs Apps

If you are asking about a problem you are experiencing, please use the following template, as it will help us help you. If you have a different problem, please delete all of this text :slight_smile:

Kibana 6.6.0
Elasticsearch 6.6.0
APM-Server 6.6.0
"elastic-apm-node": "^2.4.0",

So I added config for node.js app at the top of app.js but App send only metric processor (context.System).

if(process.env.NODE_ENV === 'production' {
const apm = require('elastic-apm-node')
serviceName: 'service',
secretToken: 'Token',
serverUrl: 'http://localhost:48200',
logLevel: 'debug'

I need help about how to get transaction metric and other metric to APM.

Sorry for my bad english

I assume with "transaction metric" you're referring to sending transactions and spans to Elastic APM. By default the agent will monitor your application for incoming HTTP requests and automatically create transactions for those and instrument what's going on during each HTTP request.

In case your application doesn't accept incoming HTTP requests, no transactions will be created automatically. Instead you have to use the Custom Transactions API.

Does this answer your question?

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.