How to Self-Host Loki & Promtail with Docker Compose and Connect to Grafana

Поделиться
HTML-код
  • Опубликовано: 25 ноя 2024

Комментарии • 13

  • @elfatihkhalid
    @elfatihkhalid 2 дня назад

    Well done, great video. I got into a problem with following error: "msg="error running loki" err="mkdir /tmp/loki: permission denied" from loki container. when I run the docker compose using my user account (id = 1000:1000) with (root, docker, adm) groups membership, and I solved that using the following Method-1 (preferred): - run the following: { mkdir data && chmod 777 -R data } (as I noticed the loki container creates the data folder under the following user id (1001) or Method-2: add the root user id 0 to the docker-compose.yaml file {user: "0" } to both loki and promtail containers.

  • @HKTECH-001
    @HKTECH-001 3 месяца назад

    Well done! Please also create a video demonstrating how to set up notifications on Grafana.

    • @Techdox
      @Techdox  3 месяца назад +1

      Great suggestion!

  • @asiraky
    @asiraky 19 дней назад

    you dont need to manually set the ip address in promtail config, just use the container name

  • @ksoonsoon
    @ksoonsoon 3 месяца назад +1

    Hope you are doing well

  • @Tekudachi
    @Tekudachi 3 месяца назад

    Thank you so much! I was looking for that

    • @Techdox
      @Techdox  3 месяца назад

      No problem! :)

  • @burloiumarian2665
    @burloiumarian2665 3 месяца назад

    very cool ! nice job

  • @steala
    @steala 3 месяца назад

    Love your videos, fellow Wellington person here! Any chance for a video showing how to pull in logs from several docker containers, from in the same loki host but also outside of the loki host?

    • @Techdox
      @Techdox  3 месяца назад

      Thanks for the kind words, Happy to look into it :)

  • @GundamExia88
    @GundamExia88 3 месяца назад

    Great video. Is it possible to send logs from a public host/server to your Loki on your private network? Would you need to use a VPN or open up ports on your home router?

    • @Techdox
      @Techdox  3 месяца назад

      Either VPN or open up the ports yeah, but I would not open ports. VPN or something like tailscale would be the best bet