Elastic agent shows `Input not supported error` when configuring Fleet managed APM integration

Kibana version: 8.9.1

Elasticsearch version: 8.9.1

APM Server version: 8.9.1

I am trying to configure the apm server via [Fleet-managed APM Server | APM User Guide [8.9] | Elastic](Fleet managed APM).

However, when adding the APM integration into an elastic agent policy, the agent state turns unhealthy.

These are the logs for the elastic agent: Not sure why it keeps saying input is not supported.

15:30:54.065
elastic_agent
[elastic_agent][info] Unit state changed apm-default (FAILED->STOPPED): input not supported
15:31:31.666
elastic_agent
[elastic_agent][error] Spawned new component apm-default: input not supported
15:31:31.666
elastic_agent
[elastic_agent][error] Spawned new unit apm-default-93aeee83-1319-46f2-bb62-85ed9f85e222: input not supported
15:31:31.666
elastic_agent
[elastic_agent][error] Spawned new unit apm-default: input not supported
16:07:42.036
elastic_agent
[elastic_agent][info] Component state changed apm-default (FAILED->STOPPED): input not supported
16:07:42.036
elastic_agent
[elastic_agent][info] Unit state changed apm-default (FAILED->STOPPED): input not supported
16:07:42.036
elastic_agent
[elastic_agent][info] Unit state changed apm-default-93aeee83-1319-46f2-bb62-85ed9f85e222 (FAILED->STOPPED): input not supported
16:12:24.394
elastic_agent
[elastic_agent][error] Spawned new component apm-default: input not supported
16:12:24.394
elastic_agent
[elastic_agent][error] Spawned new unit apm-default-fcfef080-4319-4849-96d3-95105c9884a9: input not supported
16:12:24.394
elastic_agent
[elastic_agent][error] Spawned new unit apm-default: input not supported

I have not changed anything from the default settings when configuring the integration.

I am self-hosting elastic, kibana and the fleet server.

Thank you for the help !

I'm moving this topic to the Elastic Agent category, so someone more familiar can answer.