<p>Having setup Kibana and a fleet server, I now have attempted to add APM.
When going through the general setup - I forever get an error no matter what is done:</p>
<pre><code>failed to listen:listen tcp *.*.*.*:8200: bind: can't assign requested address
</code></pre>
<p>This is when following the steps for setup of APM having created the fleet server.
This is all being launched in Kubernetes and the documentation has been gone through several times to no avail.</p>
<p>We did discover that we can hit the</p>
<blockquote>
<p>/intake/v2/events</p>
</blockquote>
<p>etc endpoints when shelled into the container but 404 for everything else. Its close but no cigar so far following the instructions.</p>

Aaron Gibson
<p>As it turned out, the general walk through is soon to be depreciated in its current form as is.
And setup is far far simpler in a helm file where its actually possible to configure kibana  with package ref for your named apm service.</p>
<blockquote>
<pre><code>xpack.fleet.packages:
  - name: system
    version: latest
  - name: elastic_agent
    version: latest
  - name: fleet_server
    version: latest
  - name: apm
    version: latest
</code></pre>
</blockquote>
<pre><code>    xpack.fleet.agentPolicies:
  - name: Fleet Server on ECK policy
    id: eck-fleet-server
    is_default_fleet_server: true
    namespace: default
    monitoring_enabled:
      - logs
      - metrics
    unenroll_timeout: 900
    package_policies:
    - name: fleet_server-1
      id: fleet_server-1
      package:
        name: fleet_server
  - name: Elastic Agent on ECK policy
    id: eck-agent
    namespace: default
    monitoring_enabled:
      - logs
      - metrics
    unenroll_timeout: 900
    is_default: true
    package_policies:
      - name: system-1
        id: system-1
        package:
          name: system
      - package:
          name: apm
        name: apm-1
        inputs:
        - type: apm
          enabled: true
          vars:
          - name: host
            value: 0.0.0.0:8200
</code></pre>
<p>Making sure these are set in the kibana helm file will allow any spun up fleet server to automatically register as having APM.</p>
<p>The missing key in seemingly all the documentation is the need of a APM service.
The simplest example of which is here:</p>
<p><a href="https://raw.githubusercontent.com/elastic/cloud-on-k8s/2.3/config/recipes/elastic-agent/fleet-apm-integration.yaml" rel="nofollow noreferrer">Example yaml scripts</a></p>
