-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker-driver: not adding the container_name as documented #3811
Comments
https://github.com/grafana/loki/blob/main/clients/cmd/docker-driver/config.go#L215-L218 After quick search, I see If that's expected behaviour, docs should be updated! |
Oh indeed, the default value of But Maybe making the source of the labels explicit in the Labels section of the docs would help (at least I think it would have helped me). |
I do. But maybe, the documentation should also mention how can we modify each label. That is, whether we have to use FWIW, this is what I'm going to comment in my loki log-driver configuration file: # NB loki-relabel-config is executed once per container.
# NB loki-pipeline-stages is executed once per container log line.
# NB the source label is set per container log line. |
Thank you! |
…rafana#3811) * Allow to override S3 SSE KMS key and encryption context on a per-tenant basis. Signed-off-by: Marco Pracucci <marco@pracucci.com> * Added CHANGELOG entry Signed-off-by: Marco Pracucci <marco@pracucci.com> * Fixed unit tests and rolledback unnecessary changes Signed-off-by: Marco Pracucci <marco@pracucci.com> * Allow to override SSE type too Signed-off-by: Marco Pracucci <marco@pracucci.com> * Added guide Signed-off-by: Marco Pracucci <marco@pracucci.com> * Fixed CHANGELOG and updated CLI flag description Signed-off-by: Marco Pracucci <marco@pracucci.com> * Updated CHANGELOG entry Signed-off-by: Marco Pracucci <marco@pracucci.com>
Describe the bug
the docker-driver is not adding the
container_name
as documented.To Reproduce
Steps to reproduce the behavior:
logcli query --tail '{job="docker"}'
Got:
Expected behavior
I expected the
container_name
label.Workaround
"loki-external-labels": "job=docker,container_name={{.Name}}"
The text was updated successfully, but these errors were encountered: