Last active
June 19, 2019 07:19
-
-
Save jidckii/edb12d99c0da74a57d9319ca23e7e06e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin | |
* * * * * $(docker ps -a --filter=label=io.yucca.task --format '- targets: ["{{.ID}}"]\n labels:\n container_name: "{{.Names}}"\n task_id: "{{.Label "io.yucca.task"}}"\n job: "containers"' > /opt/loki/promtail/promtail-targets.yaml) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment