Getting started with Grafana Loki - under 4 minutes

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ธ.ค. 2024

ความคิดเห็น • 13

  • @ggg-fy1ic
    @ggg-fy1ic 4 ปีที่แล้ว +2

    Bedankt!

  • @prasaddotcom
    @prasaddotcom 2 ปีที่แล้ว

    Can you guide how to export sql server logs from remote machine to prometheus

  • @TheKesava123
    @TheKesava123 3 ปีที่แล้ว

    Hi Ward Bekker, I got this error when I am trying to add a Loki data source in grafana. 503 service unavailable the server is temporarily unable to service your request due to maintenance downtime or capacity problem

  • @charleswilliams4541
    @charleswilliams4541 4 ปีที่แล้ว +1

    This tutorial got me up-and-running fast, thanks! I want to extend the
    Loki data source so that local database event log files are also
    visible in the explorer. I've tried adding a job to the
    scrape_configs section in the promtail yaml file to no effect. I've
    also seen file-bases service discovery briefly mentioned in the
    documentation, but can't find details/examples. The only thing that
    has worked so far is to move the file to /var/log, or create a hard
    link there. Do you know of resources/examples that would help? I've
    searched with no luck.

  • @mehmetergul4493
    @mehmetergul4493 4 ปีที่แล้ว +4

    Hello it's very nice tutorial. I did the exact same things at 2.18 when you were getting log file names my grafana only shows __name__ and I can't access any log files. Can you help me out?

    • @RahulAjgaonkar
      @RahulAjgaonkar 4 ปีที่แล้ว +1

      Did you happen to find out what was missing?
      PS: I think I know, the mounting that was done in the docker-compose.yaml for promtail is for linux and I am doing this on windows docker desktop. So I simply changed this to
      volumes:
      - D:\AppMonitor\loki\logs:/var/log

  • @Daniel-ne8rf
    @Daniel-ne8rf 4 ปีที่แล้ว

    All looks nice and easy but after dockers are started I can't open grafana. Browser states "ERR_CONNECTION_REFUSED". Just called the localhost without any specific url, like it's shown in the video. Is there something else I have to pay attention?

  • @goliateros
    @goliateros 5 ปีที่แล้ว +1

    Many thanks you for the tutorial! My logs are basically json, but can't find json fields in so called Labels. Do you know how to be able to filter/aggregate by json fields?

    • @wardbekker4637
      @wardbekker4637  5 ปีที่แล้ว +2

      Loki doesn't index the JSON data (by design). You can configure promtail to parse key/values that you want to set as labels. Check the json stage in pipelines. github.com/grafana/loki/blob/master/docs/clients/promtail/pipelines.md

  • @azizsadykov2652
    @azizsadykov2652 5 ปีที่แล้ว

    Thanks a lot, Can you show how can i create dashboard from loki datasource

    • @wardbekker4637
      @wardbekker4637  5 ปีที่แล้ว

      Check out the following video where I introduce the new Log panel: th-cam.com/video/WzlHH_ZGDAU/w-d-xo.html

  • @mzs114
    @mzs114 5 ปีที่แล้ว +2

    Why are the "modern" tools so tied to docker? Why can't these be agnostic..

    • @wardbekker4637
      @wardbekker4637  5 ปีที่แล้ว +1

      Great question. In the case of Loki it doesn't assume docker for deployment. See github.com/grafana/loki/blob/master/docs/installation/local.md for using make to create a single binary. Docker does tend to make it much easier to get new stuff up and running, without the need to install a toolchain and all kinds of dependencies on your local system.