Add new field service_name for docker swarm
Closed this issue · 5 comments
pickfire commented
Hi, I had used sematext with docker swarm setup and I found out that sematext-agent-docker doesn't provide service_name
to sematext. I think it would be nice to add that field.
The current workaround for this is to filter based on container_name: "container.*"
.
otisg commented
I think this makes sense. Would you be able to do a PR by any chance?
megastef commented
@pickfire We are working on it, I hope we can share a solution tomorrow. You would find service name in SPM image/pod filter and logs will be tagged with Swarm labels. BTW, you could extract the swarm labels for logs using the e.g. -e TAGGING_LABELS='com.docker.swarm*,com.myapp.*'
option in SDA, see https://github.com/sematext/sematext-agent-docker#configuration-parameters.