# Unable to add APM Integration

**URL:** <https://discuss.elastic.co/t/unable-to-add-apm-integration/344255>\
**Category:** Elastic Observability\
**Created:** [October 2, 2023, 7:40pm UTC](https://discuss.elastic.co/t/unable-to-add-apm-integration/344255 "2023-10-02T19:40:29Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![jwalker](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@jwalker](https://discuss.elastic.co/u/jwalker)\
**Post date:** [October 2, 2023, 7:40pm UTC](https://discuss.elastic.co/t/unable-to-add-apm-integration/344255/1 "2023-10-02T19:40:29Z")

</div>

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:

 ![Screenshot 2023-10-02 at 1.34.38 PM](https://us1.discourse-cdn.com/elastic/original/3X/4/b/4b05f7d1611134e3fe6061d6636173c07b1e7d7f.png)  
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).

---

<div class="post-metadata">

**Author:** ![jwalker](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@jwalker](https://discuss.elastic.co/u/jwalker)\
**Post date:** [October 2, 2023, 7:41pm UTC](https://discuss.elastic.co/t/unable-to-add-apm-integration/344255/2 "2023-10-02T19:41:37Z")

</div>

This is the document I am following: [link](https://www.elastic.co/guide/en/apm/guide/7.17/apm-quick-start.html#add-apm-integration)

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [October 2, 2023, 7:50pm UTC](https://discuss.elastic.co/t/unable-to-add-apm-integration/344255/3 "2023-10-02T19:50:42Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![jwalker](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@jwalker](https://discuss.elastic.co/u/jwalker)\
**Post date:** [October 2, 2023, 8:02pm UTC](https://discuss.elastic.co/t/unable-to-add-apm-integration/344255/4 "2023-10-02T20:02:43Z")

</div>

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."

 ![Screenshot 2023-10-02 at 1.58.48 PM](https://us1.discourse-cdn.com/elastic/original/3X/7/5/757ae20a31bec1078f7214d7ca4343e998a893f2.jpeg)

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [October 2, 2023, 8:33pm UTC](https://discuss.elastic.co/t/unable-to-add-apm-integration/344255/5 "2023-10-02T20:33:11Z")

</div>

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...

 ![Screenshot 2023-10-02 at 1.31.20 PM](https://us1.discourse-cdn.com/elastic/original/3X/5/a/5af8559291f20190c50ea6490b5f7768e6b275d8.png)

---

<div class="post-metadata">

**Author:** ![jwalker](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@jwalker](https://discuss.elastic.co/u/jwalker)\
**Post date:** [October 2, 2023, 8:46pm UTC](https://discuss.elastic.co/t/unable-to-add-apm-integration/344255/6 "2023-10-02T20:46:59Z")

</div>

It looks the same as yours:

 ![Screenshot 2023-10-02 at 2.46.22 PM](https://us1.discourse-cdn.com/elastic/original/3X/7/a/7a3fae972e336530f876ba0a7735eb9259c5dbdf.jpeg)

Searching the page for 'apm' yields no results.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [October 2, 2023, 8:54pm UTC](https://discuss.elastic.co/t/unable-to-add-apm-integration/344255/7 "2023-10-02T20:54:34Z")

</div>

I see

```auto

    "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

```auto
....
  "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?

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [October 2, 2023, 9:14pm UTC](https://discuss.elastic.co/t/unable-to-add-apm-integration/344255/8 "2023-10-02T21:14:47Z")

</div>

What does the network debug show

 ![Screenshot 2023-10-02 at 2.14.16 PM](https://us1.discourse-cdn.com/elastic/original/3X/e/1/e1c1f3525b697cfb320cb00f1757b0766c2532a3.png)

---

<div class="post-metadata">

**Author:** ![jwalker](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@jwalker](https://discuss.elastic.co/u/jwalker)\
**Post date:** [October 2, 2023, 9:24pm UTC](https://discuss.elastic.co/t/unable-to-add-apm-integration/344255/9 "2023-10-02T21:24:11Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![jwalker](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@jwalker](https://discuss.elastic.co/u/jwalker)\
**Post date:** [October 2, 2023, 10:31pm UTC](https://discuss.elastic.co/t/unable-to-add-apm-integration/344255/10 "2023-10-02T22:31:19Z")

</div>

@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!

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [October 3, 2023, 12:29am UTC](https://discuss.elastic.co/t/unable-to-add-apm-integration/344255/11 "2023-10-03T00:29:12Z")

</div>

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