# How to customize fleet agent policy integration

**URL:** <https://discuss.elastic.co/t/how-to-customize-fleet-agent-policy-integration/333478>\
**Category:** Elasticsearch\
**Tags:** fleet\
**Created:** [May 15, 2023, 3:13pm UTC](https://discuss.elastic.co/t/how-to-customize-fleet-agent-policy-integration/333478 "2023-05-15T15:13:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jobin\_James](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jobin_james/32/120704_2.png) [@Jobin\_James](https://discuss.elastic.co/u/Jobin_James)\
**Post date:** [May 15, 2023, 3:13pm UTC](https://discuss.elastic.co/t/how-to-customize-fleet-agent-policy-integration/333478/1 "2023-05-15T15:13:29Z")

</div>

Hello,

I am currently setting up an Elasticsearch cluster using the ECK operator, and I would like to know how I can customize the fleet integration configuration using the kibana.yml

The problems I am facing.

1. I can create a new policy and install the integration, But deleting the policy from the config file is not deleting the policy from UI. How to make this work?
2. How can I adjust the integration settings? I cannot find any detailed documentation on how to adjust this.  
Here is an example kibana.yml xpack.fleet.agentPolicies

```auto
      xpack.fleet.packages:
      - name: elastic_agent
        version: latest
      - name: fleet_server
        version: latest
      - name: elasticsearch
        version: latest
      xpack.fleet.agentPolicies:
      - name: Fleet Server on ECK policy
        id: eck-fleet-server
        is_default_fleet_server: true
        description: Fleet Server in EKS Policy
        is_managed: true
        namespace: default
        monitoring_enabled:
        - metrics
        - logs
        unenroll_timeout: 600
        package_policies:
        - name: fleet-server
          id: fleet-server
          package:
            name: fleet_server
        - name: elasticsearch
          id: elasticsearch
          package:
            name: elasticsearch
          inputs:
            - type: elasticsearch-elasticsearch/metrics
              enabled: true
              vars:
              - name: hosts
                value: ["https://es-http.elastic-systems.svc:9200"]

```

After applying the changes, kibana logs sys the fleet configuration completed. But the changes are not reflected in the UI.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 12, 2023, 3:13pm UTC](https://discuss.elastic.co/t/how-to-customize-fleet-agent-policy-integration/333478/2 "2023-06-12T15:13:58Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
