// Import libraries to set up APM for the plugin
import { init as initApm } from '@elastic/apm-rum';
export class Plugin implements Plugin {
// Called when Kibana is being loaded on the browser
public setup() {
// Register an application into the side navigation menu
core.application.register({ --- },
});
// Set up APM for the plugin
const apm = initApm({
// Set required service name (allowed characters: a-z, A-Z, 0-9, -, _, and space)
serviceName: 'plugin_APM',
// Set custom APM Server URL (default: http://localhost:8200)
serverUrl: 'https://0.0.0.0:8200',
// Set service version (required for sourcemap feature)
serviceVersion: 'v1',
});
return {};
}
// Called when the setup is complete for all the plugins
public start() {
...
return {};
}
public stop() { }
}
I would also like to emphasize that I am running Kibana in dev mode, and want to have APM for an external plugin I am developing with Kibana 8.8.1 dev using React.
The positive news is that from what I see in the first screenshot, beacons are being sent correctly.
I'm assuming that the full URL corresponding to each entry of "events" is something like https://0.0.0.0:8200/intake/v2/rum/events, is that right? (just wanna confirm that there is just one instance of RUM agent in your Kibana)
Thanks to all the input you just gave us, we can confirm that the issue doesn't seem related to the browser side.
No data is available in APM or User Experience, is that right?
I did all the steps...as in documentations... but in Kibana, when I go to APM> services/traces/dependencies -> all are empty.... even User Experience Dashboard
I see the following error in logs (elastic_agent.apm_server dataset)
[elastic_agent.apm_server][error] failed to index document (fail_processor_exception): Document produced by APM Server v8.8.1, which is newer than the installed APM integration (v8.4.2). The APM integration must be upgraded.
Hi @Sheereen ,
this error that you see in the apm-server logs indicates that the apm package that you have installed is on version 8.4, where the ingesting apm-server is already on a newer version 8.8.1.
Is it possible for you to upgrade the Kibana version and with that the APM integration to 8.8.1? This should solve the error that you see.
The error indicates that the apm package has not been updated to 8.8.1. Please navigate to the apm integration settings page in Kibana and upgrade or reinstall the apm package.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.