Closed sdimovv closed 2 years ago
This functionality is not available in a public release yet; it will be available as of Loki v2.5 which is coming soon.
You can use it if you use one of our daily builds: https://hub.docker.com/r/grafana/loki/tags if you like, but there may be some rough edges.
https://hub.docker.com/layers/grafana/loki/k88-c660a7e/images/sha256-3655fe08b08dbea61d1a150b28326254b1b35c9416bddab06b9aa9ee5c7c3f6c?context=explore is what we're running internally on our cloud, and has this functionality available.
Oh, I see. And what about promtail? Which image should I try? This one: https://hub.docker.com/layers/grafana/promtail/k88-c660a7e/images/sha256-d16b4cfb325024afd89f8bc3897fcd7e2de22e0a3b440a7b0b21a9bb2d31b6bd?context=explore ?
k88
should work :slightly_smiling_face:
it will be available as of Loki v2.5 which is coming soon.
Do you have any more details on what soon means here? Rough estimate like days, weeks or month would be nice :) Is there a plan or roadmap we can follow somewhere?
Also waiting for this feature, so would like to have some prediction if it's worth trying out pre-release or if we should just wait another week for an official release.
Describe the bug I am using docker-compose and I am unable to limit the service discovery to containers with specific labels.
To Reproduce
docker-compose.yaml
:networks: loki:
services: loki: image: grafana/loki:2.4.1 ports:
loki
promtail: image: grafana/promtail:2.4.2 volumes:
server: http_listen_address: 0.0.0.0 http_listen_port: 9080
positions: filename: /tmp/positions.yaml
clients:
scrape_configs:
Only keep containers that have a
prometheus-job
label.Steps to reproduce the behavior: 1.
docker-compose up
promtail
container failing with:docker_sd_configs
todockerswarm_sd_configs
.promtail
instance starting but complaining this is not a swarm managerExpected behavior
docker_sd_configs
to work as described in the docsEnvironment:
Screenshots, Promtail config, or terminal output N/A