Hey everyone!
I have recently installed APM but my agents are not sending data to my APM server. I used the node.js installation, with: npm install elastic-apm-node --save. I have installed a server, and an agent in the directory of elasticsearch, so I hope that when it will be all well configured, I will be able to monitor elasticsearch service.
In setup instructions of Kibana, I check the server status and the agent status, and both are started and running.
I have configured the url of apm server in the section apm-server, and the url of kibana in setup.kibana, both in apm-server.yml.
In the agent, I added this code in index.js, at the top of it:
// Add this to the VERY top of the first file loaded in your app
var apm = require('elastic-apm-node').start({
_ // Override service name from package.json_
_ // Allowed characters: a-z, A-Z, 0-9, -, , and space
_ serviceName: 'elasticsearch',_
_ // Use if APM Server requires a token_
_ secretToken: '',_
_ // Set custom APM Server URL (default: http://localhost:8200)_
_ serverUrl: '<URL_APM_server>',_
})
When I start the server with ./apm-server -e -c apm-server.yml, the logs don't give me any error, it goes well, but I don't receive in Kibana any data of the services:
The time range in Kibana is well configured, because I have done some requests to elasticsearch with curl and I can't see this information here or in the dashboards.
Someone can help me?
Thank you so much.
Oriol Val.