# Setting xpack.enabled via Metricbeat Docker hints

**URL:** <https://discuss.elastic.co/t/setting-xpack-enabled-via-metricbeat-docker-hints/284161>\
**Category:** Beats\
**Tags:** docker, metricbeat\
**Created:** [September 14, 2021, 8:57am UTC](https://discuss.elastic.co/t/setting-xpack-enabled-via-metricbeat-docker-hints/284161 "2021-09-14T08:57:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thilog](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thilog/32/63618_2.png) [@thilog](https://discuss.elastic.co/u/thilog)\
**Post date:** [September 14, 2021, 8:57am UTC](https://discuss.elastic.co/t/setting-xpack-enabled-via-metricbeat-docker-hints/284161/1 "2021-09-14T08:57:21Z")

</div>

Hi there,

is there a way to set the `xpack.enabled` flag for via Metricbeat Docker hints? I tried using the `co.elastic.metrics/xpack.enabled` label (on the monitored container), but it does not seem to have an effect.

Alternatively, can a base configuration be rolled out via YAML and hints just amend that config (e.g., in terms of hosts).

Thanks,  
Thilo

P.S.: Elastic Stack v7.14.1

---

<div class="post-metadata">

**Author:** ![jsoriano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsoriano/32/27920_2.png) [@jsoriano](https://discuss.elastic.co/u/jsoriano)\
**Post date:** [September 14, 2021, 11:40am UTC](https://discuss.elastic.co/t/setting-xpack-enabled-via-metricbeat-docker-hints/284161/2 "2021-09-14T11:40:11Z")

</div>

Hey @thilog, welcome to discuss 🙂

Only the settings listed in [the docs](https://www.elastic.co/guide/en/beats/metricbeat/7.14/configuration-autodiscover-hints.html) are available for hints-based autodiscover.

You would need to use the `co.elastic.metrics/raw` annotation to use other settings.

---

<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:** [October 12, 2021, 1:40pm UTC](https://discuss.elastic.co/t/setting-xpack-enabled-via-metricbeat-docker-hints/284161/3 "2021-10-12T13:40:23Z")

</div>

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