Label problems collecting Dockers swarm logs into loki

We have a dockers swarm environment with many different stacks and services. We are trying to collect the logs into loki to use grafana to monitor them but we are founding difficulties because we cannot access part of the information we need (some of the labels we want to use). The information we would like to access can be seen when inspecting the containers under the Config.Labels entry (under the name “Labels” in the object “Config”).

Currently we have tried with promtail but we even had problems to access the stack information and with the Docker driver for loki but we only had access to two additional labels (swarm_stack, swarm_service) which is not enough for our purposes.

Thks in advance