# Can I use hints based autodiscovery with Docker Swarm secrets?

**URL:** <https://discuss.elastic.co/t/can-i-use-hints-based-autodiscovery-with-docker-swarm-secrets/340497>\
**Category:** Beats\
**Tags:** docker, metricbeat\
**Created:** [August 9, 2023, 10:49pm UTC](https://discuss.elastic.co/t/can-i-use-hints-based-autodiscovery-with-docker-swarm-secrets/340497 "2023-08-09T22:49:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerrac](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jerrac/32/52980_2.png) [@jerrac](https://discuss.elastic.co/u/jerrac)\
**Post date:** [August 9, 2023, 10:49pm UTC](https://discuss.elastic.co/t/can-i-use-hints-based-autodiscovery-with-docker-swarm-secrets/340497/1 "2023-08-09T22:49:32Z")

</div>

Per [Securely manage credentials while monitoring Kubernetes workloads with autodiscovery | Elastic Blog](https://www.elastic.co/blog/securely-manage-credentials-monitoring-kubernetes-workloads-autodiscovery) it is possible to use Kubernetes secrets with hints based autodiscovery.

Can I do the same with Docker Swarm secrets? I couldn't find anything on the topic in the docs or via Google.

If it is, what is the syntax?

Thanks!

---

<div class="post-metadata">

**Author:** ![jerrac](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jerrac/32/52980_2.png) [@jerrac](https://discuss.elastic.co/u/jerrac)\
**Post date:** [August 21, 2023, 3:21pm UTC](https://discuss.elastic.co/t/can-i-use-hints-based-autodiscovery-with-docker-swarm-secrets/340497/2 "2023-08-21T15:21:54Z")

</div>

I'm guessing not... Anyone from Elastic want to confirm?

---

<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:** [September 18, 2023, 5:22pm UTC](https://discuss.elastic.co/t/can-i-use-hints-based-autodiscovery-with-docker-swarm-secrets/340497/3 "2023-09-18T17:22:08Z")

</div>

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