Filebeat Autodiscover Configuration

Can anyone shed some light on where exactly in the YAML config the configuration property "cleanup_timeout" is supposed to sit?

We're using Filebeat Autodiscover for Kubernetes and unfortunately the documentation around exactly what options can sit at what level in the YAML is patchy at best. The only mention of it in the filebeat.reference.yaml file is here:

However, in the documentation here - https://www.elastic.co/guide/en/beats/filebeat/current/configuration-autodiscover.html - it states that this item is a property of the Provider, does that mean that the config I have is correct?

Please help!

cleanup_timeout is used in kubernetes autodiscover to wait some time before the
configurations associated to stopped containers are removed. As it states in https://www.elastic.co/guide/en/beats/filebeat/current/configuration-autodiscover.html the property is defined in the provider configuration.

There is a similar option for add_docker_metadata (hence the same name).

So, have I configured it correctly then?

Also, are you guys going to update the filebeat.reference.yaml so that it explicitly shows the two places where you can use that property?