Unable to add APM Integration

Hello, I am following the quick start guide for Elastic APM for version 7.17. Everything went well until I got to Step 3: 'Add the APM integration'. The first instruction is "In Kibana, select Add integrations > Elastic APM." When I click on 'Elastic APM', it takes me to the following link: "kibana.my.domain/app/home#/tutorial/apm". On that page, it says, " Unable to find tutorial apm". See screenshot:


I am at a loss on how to proceed. I checked the kibana logs and browser console for errors, but there doesn't appear to be anything related. If anyone has any ideas, I would be very appreciative!

The ELK stack is on version 7.17.6 (self-hosted).

This is the document I am following: link

Hi @jwalker Welcome to the community... Interesting....

Did you change the base server path for your Kibana?

Can you show the actual URL in the URL bar?

http://localhost:5601/app/home#/tutorial/apm

Also if you open the Chrome - Dev Tools can you see and error?

The actual URL uses an internal domain, but here it is substituted with 'localhost': https://localhost:5601/app/home#/tutorial/apm

Here are the errors from the dev tools console:

"Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution."

"utils.js:3474 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' 'wasm-unsafe-eval' 'inline-speculation-rules'". Either the 'unsafe-inline' keyword, a hash ('sha256-o7bfkBJKRs9/bv39VoPp7D2d12zInAtuBHEki1qpfn0='), or a nonce ('nonce-...') is required to enable inline execution."

I don't think those are the issues.... I have them too.

What happens when you try this....

http://localhost:5601/api/kibana/home/tutorials

Should Look Like...

It looks the same as yours:

Searching the page for 'apm' yields no results.

I see


    "id": "apm",
    "name": "APM",
    "moduleName": "apm",
    "category": "other",
    "shortDescription": "Collect performance metrics from your applications with Elastic APM.",
    "longDescription": "Application Performance Monitoring (APM) collects in-depth performance metrics and errors from inside your application. It allows you to monitor the performance of thousands of applications in real time. [Learn more]({config.docs.base_url}guide/en/apm/guide/{config.docs.version}/index.html).",
    "euiIconType": "apmApp",
    "integrationBrowserCategories": [
      "observability",
      "apm"
    ],
    "artifacts": {
      "dashboards": [
        {
.....

Its is near the bottom..

Ohh mine is 8.x I would have to check with 7.17

UPDATE

I see the same in 7.17.10

....
  "elasticCloud": {
      "instructionSets": [
        {
          "title": "APM Server",
          "instructionVariants": [
            {
              "id": "esc",
              "instructions": [
                {
                  "title": "Enable the APM Server in the Elastic Cloud user console",
                  "textPre": "To enable the APM Server go to [the Elastic Cloud console](https://cloud.elastic.co/deployments//edit) and enable APM and Fleet in the deployment edit page by clicking on add capacity, and then click on save. Once enabled, refresh this page."
                }
              ]
            }
          ]
        },
        {
          "title": "APM Server",
          "callOut": {
            "title": "Important: Updating to 7.0 or higher",
            "message": "Please make sure your APM Server is updated to 7.0 or higher.             You can also migrate your 6.x data with the migration assistant found in Kibana's management section.",
            "iconType": "alert"
          },
          "instructionVariants": [
            {
              "id": "deb",
              "instructions": [
                {
                  "title": "Download and unpack APM Server",
                  "commands": [
                    "curl -L -O https://artifacts.elastic.co/downloads/apm-server/apm-server-{config.kibana.version}-amd64.deb",
                    "sudo dpkg -i apm-server-{config.kibana.version}-amd64.deb"
.....

Perhaps a bad Kibana install?

What does the network debug show

It shows a '200 OK' for the tutorials GET request. I'll try a fresh Kibana install and let you know. Thanks for all the help so far!

@stephenb I figured it out: in the kibana.yml, xpack.apm.enabled was set to false. I set it to true and restarted kibana and now everything is working!

1 Like

Thanks for reporting back the fix. Hopefully it'll help someone else that's interesting