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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Grafana Loki

    App Wishlist
    6
    22
    773
    Loading More Posts
    • 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.
    • doodlemania2
      doodlemania2 App Dev last edited by girish

      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

      olearycrew AyoubHabra TomsFreitas 3 Replies Last reply Reply Quote 6
      • olearycrew
        olearycrew @doodlemania2 last edited by

        @doodlemania2 FWIW here's another implementation of it. Wish I had seen your post first 🤦

        https://gitlab.com/liscioapps/loki-cloudron

        robi 1 Reply Last reply Reply Quote 2
        • robi
          robi @olearycrew last edited by

          @olearycrew
          If this is ready for testing.. it may be ready for @staff to add to the store..

          Life of Advanced Technology

          doodlemania2 1 Reply Last reply Reply Quote 1
          • Referenced by  chris chris 
          • doodlemania2
            doodlemania2 App Dev @robi last edited by

            @robi I've been using it as posted for over a year 🙂 works like a champ.

            girish 1 Reply Last reply Reply Quote 2
            • girish
              girish Staff @doodlemania2 last edited by

              @doodlemania2 does the app have any UI? After login, it simply says "not found" . Is that expected?

              doodlemania2 1 Reply Last reply Reply Quote 0
              • girish
                girish Staff last edited by

                I get the same behavior with @olearycrew 's repo as well.

                1 Reply Last reply Reply Quote 0
                • doodlemania2
                  doodlemania2 App Dev @girish last edited by

                  @girish correct - no UX at all - just an open port.
                  For the official version, you could easily add a static page that shows it is up and running and instructions on how to get at it.

                  girish 1 Reply Last reply Reply Quote 3
                  • girish
                    girish Staff @doodlemania2 last edited by

                    @doodlemania2 Do you know how to put a place holder page? As in, is it something upstream Loki supports or we have to put some nginx proxy of sorts in the package?

                    doodlemania2 1 Reply Last reply Reply Quote 0
                    • doodlemania2
                      doodlemania2 App Dev @girish last edited by

                      @girish figured it would be just like we did with the vpn package, nothing upstream really.

                      olearycrew 1 Reply Last reply Reply Quote 0
                      • olearycrew
                        olearycrew @doodlemania2 last edited by

                        @doodlemania2

                        I also got Promtail which is part of this stack working as well: https://gitlab.com/liscioapps/promtail-cloudron.

                        Also yes, it's really a service that is used as part of a stack with Grafana and Prometheus.

                        Similar to the "ELK" stack where logstash (promtail) pushes to Elasticsearch (Loki) but it's all actually visualized in Kibana (Grafana). That's not an exact map but sort of that way.

                        1 Reply Last reply Reply Quote 2
                        • AyoubHabra
                          AyoubHabra @doodlemania2 last edited by

                          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 Reply Quote 0
                          • AyoubHabra
                            AyoubHabra last edited by

                            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.

                            doodlemania2 1 Reply Last reply Reply Quote 0
                            • doodlemania2
                              doodlemania2 App Dev @AyoubHabra last edited by

                              @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 Reply Quote 1
                              • TomsFreitas
                                TomsFreitas @doodlemania2 last edited by

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

                                doodlemania2 1 Reply Last reply Reply Quote 0
                                • doodlemania2
                                  doodlemania2 App Dev @TomsFreitas last edited by

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

                                  TomsFreitas 1 Reply Last reply Reply Quote 0
                                  • TomsFreitas
                                    TomsFreitas @doodlemania2 last edited by TomsFreitas

                                    @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 Reply Quote 0
                                    • girish
                                      girish Staff last edited by

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

                                      TomsFreitas 1 Reply Last reply Reply Quote 0
                                      • TomsFreitas
                                        TomsFreitas @girish last edited by

                                        @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

                                        doodlemania2 1 Reply Last reply Reply Quote 0
                                        • doodlemania2
                                          doodlemania2 App Dev @TomsFreitas last edited by

                                          @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?

                                          girish 1 Reply Last reply Reply Quote 0
                                          • girish
                                            girish Staff @doodlemania2 last edited by

                                            @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.

                                            TomsFreitas 1 Reply Last reply Reply Quote 0
                                            • TomsFreitas
                                              TomsFreitas @girish last edited by

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

                                              doodlemania2 1 Reply Last reply Reply Quote 0
                                              • doodlemania2
                                                doodlemania2 App Dev @TomsFreitas last edited by

                                                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 Reply Quote 1
                                                • First post
                                                  Last post
                                                Powered by NodeBB