Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. App Wishlist
  3. Grafana Loki

Grafana Loki

Scheduled Pinned Locked Moved App Wishlist
30 Posts 9 Posters 5.9k Views 8 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • doodlemania2D doodlemania2

    Loki is a horizontally-scalable, highly-available, multi-tenant log aggregation system inspired by Prometheus. It is designed to be very cost effective and easy to operate. It does not index the contents of the logs, but rather a set of labels for each log stream.

    https://grafana.com/oss/loki/
    https://github.com/grafana/loki

    Initial functional version located here for comment: https://git.cloudron.io/doodlemania2/loki

    AyoubHabraA Offline
    AyoubHabraA Offline
    AyoubHabra
    wrote on last edited by
    #11

    Hi @doodlemania2 ,
    Thanks for this package;
    Actually, I'm trying to set up this, but the authentication is not working with the default vhost added by cloudron. I'm receiving 301 error. (moved permanently)
    On the other hand, I have set up a custom vhost (simple) and it's working correctly. Have you applied any changes to the vhost on your setup?

    1 Reply Last reply
    0
    • AyoubHabraA Offline
      AyoubHabraA Offline
      AyoubHabra
      wrote on last edited by
      #12

      Hi @doodlemania2,
      Thanks for the package,
      I'm trying to set up this, but it's not working for me with the default vhost added by cloudron.
      However it's working with a simple vhsot with basic http_auth, in your case did you applied any changes to the reverse proxy conf ?
      myvhost : https://privatebin.wpprovider.nl/?4dcc2cf01ed14692#DSVsPUfCmTv2oxE93CyykLw4H4kkDx3BpfzGT5gnhCKP
      cloudronvhost : https://privatebin.wpprovider.nl/?ea0a92aeb57d6c8e#Eo4ffmb3qg6VqLbCFktBpqe6ju23DnnHXGeBXXbjsAEB
      Thanks.

      doodlemania2D 1 Reply Last reply
      0
      • AyoubHabraA AyoubHabra

        Hi @doodlemania2,
        Thanks for the package,
        I'm trying to set up this, but it's not working for me with the default vhost added by cloudron.
        However it's working with a simple vhsot with basic http_auth, in your case did you applied any changes to the reverse proxy conf ?
        myvhost : https://privatebin.wpprovider.nl/?4dcc2cf01ed14692#DSVsPUfCmTv2oxE93CyykLw4H4kkDx3BpfzGT5gnhCKP
        cloudronvhost : https://privatebin.wpprovider.nl/?ea0a92aeb57d6c8e#Eo4ffmb3qg6VqLbCFktBpqe6ju23DnnHXGeBXXbjsAEB
        Thanks.

        doodlemania2D Offline
        doodlemania2D Offline
        doodlemania2
        App Dev
        wrote on last edited by
        #13

        @AyoubHabra Apologies for the delay - somehow I missed the alert on this. I've not changed anything to permit/reject traffic - not sure why it works for me but not you 😞 That said, I haven't tried to formally package it for the ecosystem due to lack of interest, but will take a peak and see if I can figure out why it's not working for you.

        1 Reply Last reply
        1
        • doodlemania2D doodlemania2

          Loki is a horizontally-scalable, highly-available, multi-tenant log aggregation system inspired by Prometheus. It is designed to be very cost effective and easy to operate. It does not index the contents of the logs, but rather a set of labels for each log stream.

          https://grafana.com/oss/loki/
          https://github.com/grafana/loki

          Initial functional version located here for comment: https://git.cloudron.io/doodlemania2/loki

          TomsFreitasT Offline
          TomsFreitasT Offline
          TomsFreitas
          wrote on last edited by
          #14

          @doodlemania2 Hello, do you have any plans to add authentication to this app?

          doodlemania2D 1 Reply Last reply
          0
          • TomsFreitasT TomsFreitas

            @doodlemania2 Hello, do you have any plans to add authentication to this app?

            doodlemania2D Offline
            doodlemania2D Offline
            doodlemania2
            App Dev
            wrote on last edited by
            #15

            @TomsFreitas haven't had the need 🙂 what's the scenario?

            TomsFreitasT 1 Reply Last reply
            0
            • doodlemania2D doodlemania2

              @TomsFreitas haven't had the need 🙂 what's the scenario?

              TomsFreitasT Offline
              TomsFreitasT Offline
              TomsFreitas
              wrote on last edited by TomsFreitas
              #16

              @doodlemania2 I have several servers that need to push logs to loki so it must be exposed to the internet and I wanted it to be secure. Protecting it with cloudron auth would make it so that loki could be exposed and not have to worry about someone fetching all my logs using loki's API

              1 Reply Last reply
              0
              • girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #17

                How do servers send their logs to Loki? With a token? Wouldn't putting basic auth affect the API?

                TomsFreitasT 1 Reply Last reply
                0
                • girishG girish

                  How do servers send their logs to Loki? With a token? Wouldn't putting basic auth affect the API?

                  TomsFreitasT Offline
                  TomsFreitasT Offline
                  TomsFreitas
                  wrote on last edited by
                  #18

                  @girish Well, the most used setup with Loki is using it with promtail. Promtail resides in your agents and it pushes the logs to loki. Grafana then fetches the logs from loki. It's my understanding that both promtail and grafana support basic auth when interacting with loki

                  doodlemania2D 1 Reply Last reply
                  0
                  • TomsFreitasT TomsFreitas

                    @girish Well, the most used setup with Loki is using it with promtail. Promtail resides in your agents and it pushes the logs to loki. Grafana then fetches the logs from loki. It's my understanding that both promtail and grafana support basic auth when interacting with loki

                    doodlemania2D Offline
                    doodlemania2D Offline
                    doodlemania2
                    App Dev
                    wrote on last edited by
                    #19

                    @TomsFreitas yeah, i think that's right - I've never done it because it's always just been me pushing to it from a tailscale endpoint but I can see the value there.

                    @girish - I think the best approach would be to leave it open (but behind SSL) and let Loki handle the auth.

                    No?

                    girishG 1 Reply Last reply
                    0
                    • doodlemania2D doodlemania2

                      @TomsFreitas yeah, i think that's right - I've never done it because it's always just been me pushing to it from a tailscale endpoint but I can see the value there.

                      @girish - I think the best approach would be to leave it open (but behind SSL) and let Loki handle the auth.

                      No?

                      girishG Offline
                      girishG Offline
                      girish
                      Staff
                      wrote on last edited by
                      #20

                      @doodlemania2 agree, but apparently loki doesn't have any auth of it's own - https://grafana.com/docs/loki/latest/operations/authentication/ . I guess this is why @TomsFreitas wants Cloudron to provide the auth.

                      TomsFreitasT 1 Reply Last reply
                      0
                      • girishG girish

                        @doodlemania2 agree, but apparently loki doesn't have any auth of it's own - https://grafana.com/docs/loki/latest/operations/authentication/ . I guess this is why @TomsFreitas wants Cloudron to provide the auth.

                        TomsFreitasT Offline
                        TomsFreitasT Offline
                        TomsFreitas
                        wrote on last edited by
                        #21

                        @girish Yes, if we could place cloudron in the middle doing authentication it would be incredible

                        doodlemania2D 1 Reply Last reply
                        0
                        • TomsFreitasT TomsFreitas

                          @girish Yes, if we could place cloudron in the middle doing authentication it would be incredible

                          doodlemania2D Offline
                          doodlemania2D Offline
                          doodlemania2
                          App Dev
                          wrote on last edited by
                          #22

                          rats - I thought it would. Putting CR auth in front of Loki may be problematic - how would a payload or client that is pushing data to loki know that it's cloudron asking and not loki. if loki has no knowledge of auth, the inverse is problematic too.

                          1 Reply Last reply
                          1
                          • P Offline
                            P Offline
                            perler
                            wrote on last edited by
                            #23

                            ok, is this still on a roadmap? I could set up loki and promtail on a seperate docker server, but really would like to have this integrated into cloudron..

                            1 Reply Last reply
                            0
                            • I Offline
                              I Offline
                              ioctl
                              wrote on last edited by
                              #24

                              I would love to have some solution for logging aggregation in my cloudron. I see some of the projects here have been deleted. Any plans to add official support for Loki or some alternative?

                              1 Reply Last reply
                              1
                              • girishG Offline
                                girishG Offline
                                girish
                                Staff
                                wrote on last edited by
                                #25

                                Not sure what the status of https://git.cloudron.io/doodlemania2/loki is . @doodlemania2 any update?

                                I haven't used Loki myself but is it actually a web app?

                                1 Reply Last reply
                                0
                                • doodlemania2D Offline
                                  doodlemania2D Offline
                                  doodlemania2
                                  App Dev
                                  wrote on last edited by
                                  #26

                                  It's not - it's really just an endpoint. I have used it as is for many moons and is rock solid. That said, it definitely needs an update. One of the challenges I faced is there's a LOT of changes under the covers, so I've stayed with this older version and it serves me well.

                                  1 Reply Last reply
                                  3
                                  • LanhildL Offline
                                    LanhildL Offline
                                    Lanhild
                                    App Dev
                                    wrote last edited by
                                    #27

                                    I revived this package by making a new one @ https://github.com/Lanhild/loki-cloudron.
                                    I iterate on @doodlemania2 's point: It is only an endpoint. Loki itself is simply the aggregator and API that you connect to Grafana.

                                    1 Reply Last reply
                                    4
                                    • girishG Offline
                                      girishG Offline
                                      girish
                                      Staff
                                      wrote last edited by
                                      #28

                                      @Lanhild I gave this a try, I keep getting this non-stop in console. Is this normal?

                                      13:46:54 - level=debug ts=2025-06-25T11:46:54.799939764Z caller=mock.go:189 msg="Get - deadline exceeded" key=collectors/scheduler
                                      13:46:54 - level=debug ts=2025-06-25T11:46:54.799950054Z caller=mock.go:153 msg=Get key=collectors/scheduler wait_index=269
                                      13:46:54 - level=debug ts=2025-06-25T11:46:54.799960534Z caller=mock.go:189 msg="Get - deadline exceeded" key=collectors/compactor
                                      13:46:54 - level=debug ts=2025-06-25T11:46:54.799965693Z caller=mock.go:153 msg=Get key=collectors/compactor wait_index=267
                                      13:46:54 - level=debug ts=2025-06-25T11:46:54.799970983Z caller=mock.go:189 msg="Get - deadline exceeded" key=collectors/ring
                                      13:46:54 - level=debug ts=2025-06-25T11:46:54.799975492Z caller=mock.go:153 msg=Get key=collectors/ring wait_index=268
                                      13:46:54 - level=debug ts=2025-06-25T11:46:54.900963825Z caller=mock.go:189 msg="Get - deadline exceeded" key=collectors/ring
                                      13:46:54 - level=debug ts=2025-06-25T11:46:54.901013418Z caller=mock.go:153 msg=Get key=collectors/ring wait_index=268
                                      13:46:54 - level=debug ts=2025-06-25T11:46:54.901011464Z caller=mock.go:189 msg="Get - deadline exceeded" key=collectors/distributor
                                      13:46:54 - level=debug ts=2025-06-25T11:46:54.901046991Z caller=mock.go:153 msg=Get key=collectors/distributor wait_index=271
                                      13:46:54 - level=debug ts=2025-06-25T11:46:54.901061147Z caller=mock.go:189 msg="Get - deadline exceeded" key=collectors/scheduler
                                      13:46:54 - level=debug ts=2025-06-25T11:46:54.901077498Z caller=mock.go:153 msg=Get key=collectors/scheduler wait_index=269
                                      
                                      LanhildL 2 Replies Last reply
                                      0
                                      • girishG girish

                                        @Lanhild I gave this a try, I keep getting this non-stop in console. Is this normal?

                                        13:46:54 - level=debug ts=2025-06-25T11:46:54.799939764Z caller=mock.go:189 msg="Get - deadline exceeded" key=collectors/scheduler
                                        13:46:54 - level=debug ts=2025-06-25T11:46:54.799950054Z caller=mock.go:153 msg=Get key=collectors/scheduler wait_index=269
                                        13:46:54 - level=debug ts=2025-06-25T11:46:54.799960534Z caller=mock.go:189 msg="Get - deadline exceeded" key=collectors/compactor
                                        13:46:54 - level=debug ts=2025-06-25T11:46:54.799965693Z caller=mock.go:153 msg=Get key=collectors/compactor wait_index=267
                                        13:46:54 - level=debug ts=2025-06-25T11:46:54.799970983Z caller=mock.go:189 msg="Get - deadline exceeded" key=collectors/ring
                                        13:46:54 - level=debug ts=2025-06-25T11:46:54.799975492Z caller=mock.go:153 msg=Get key=collectors/ring wait_index=268
                                        13:46:54 - level=debug ts=2025-06-25T11:46:54.900963825Z caller=mock.go:189 msg="Get - deadline exceeded" key=collectors/ring
                                        13:46:54 - level=debug ts=2025-06-25T11:46:54.901013418Z caller=mock.go:153 msg=Get key=collectors/ring wait_index=268
                                        13:46:54 - level=debug ts=2025-06-25T11:46:54.901011464Z caller=mock.go:189 msg="Get - deadline exceeded" key=collectors/distributor
                                        13:46:54 - level=debug ts=2025-06-25T11:46:54.901046991Z caller=mock.go:153 msg=Get key=collectors/distributor wait_index=271
                                        13:46:54 - level=debug ts=2025-06-25T11:46:54.901061147Z caller=mock.go:189 msg="Get - deadline exceeded" key=collectors/scheduler
                                        13:46:54 - level=debug ts=2025-06-25T11:46:54.901077498Z caller=mock.go:153 msg=Get key=collectors/scheduler wait_index=269
                                        
                                        LanhildL Offline
                                        LanhildL Offline
                                        Lanhild
                                        App Dev
                                        wrote last edited by
                                        #29

                                        @girish Yeah, the app indeed works, it's only overly verbose logs. I'll look into it if there's a setting.

                                        1 Reply Last reply
                                        1
                                        • girishG girish

                                          @Lanhild I gave this a try, I keep getting this non-stop in console. Is this normal?

                                          13:46:54 - level=debug ts=2025-06-25T11:46:54.799939764Z caller=mock.go:189 msg="Get - deadline exceeded" key=collectors/scheduler
                                          13:46:54 - level=debug ts=2025-06-25T11:46:54.799950054Z caller=mock.go:153 msg=Get key=collectors/scheduler wait_index=269
                                          13:46:54 - level=debug ts=2025-06-25T11:46:54.799960534Z caller=mock.go:189 msg="Get - deadline exceeded" key=collectors/compactor
                                          13:46:54 - level=debug ts=2025-06-25T11:46:54.799965693Z caller=mock.go:153 msg=Get key=collectors/compactor wait_index=267
                                          13:46:54 - level=debug ts=2025-06-25T11:46:54.799970983Z caller=mock.go:189 msg="Get - deadline exceeded" key=collectors/ring
                                          13:46:54 - level=debug ts=2025-06-25T11:46:54.799975492Z caller=mock.go:153 msg=Get key=collectors/ring wait_index=268
                                          13:46:54 - level=debug ts=2025-06-25T11:46:54.900963825Z caller=mock.go:189 msg="Get - deadline exceeded" key=collectors/ring
                                          13:46:54 - level=debug ts=2025-06-25T11:46:54.901013418Z caller=mock.go:153 msg=Get key=collectors/ring wait_index=268
                                          13:46:54 - level=debug ts=2025-06-25T11:46:54.901011464Z caller=mock.go:189 msg="Get - deadline exceeded" key=collectors/distributor
                                          13:46:54 - level=debug ts=2025-06-25T11:46:54.901046991Z caller=mock.go:153 msg=Get key=collectors/distributor wait_index=271
                                          13:46:54 - level=debug ts=2025-06-25T11:46:54.901061147Z caller=mock.go:189 msg="Get - deadline exceeded" key=collectors/scheduler
                                          13:46:54 - level=debug ts=2025-06-25T11:46:54.901077498Z caller=mock.go:153 msg=Get key=collectors/scheduler wait_index=269
                                          
                                          LanhildL Offline
                                          LanhildL Offline
                                          Lanhild
                                          App Dev
                                          wrote last edited by
                                          #30

                                          @girish Tried one of the solution mentioned @ https://github.com/grafana/loki/issues/6182, without success.

                                          1 Reply Last reply
                                          1
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Bookmarks
                                          • Search