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

    Solved Prometheus - monitoring & time series database

    App Wishlist
    4
    30
    1132
    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.
    • marcusquinn
      marcusquinn last edited by girish

      "From metrics to insight
      Power your metrics and alerting with a leading
      open-source monitoring solution."

      https://prometheus.io
      https://github.com/prometheus

      We're not here for a long time - but we are here for a good time :)
      Jersey/UK
      Work & Ecommerce Advice: https://brandlight.org
      Personal & Software Tips: https://marcusquinn.com

      1 Reply Last reply Reply Quote 5
      • marcusquinn
        marcusquinn last edited by

        And Thanos:

        "Open source, highly available Prometheus setup with long term storage capabilities."

        https://thanos.io
        https://github.com/thanos-io/thanos

        We're not here for a long time - but we are here for a good time :)
        Jersey/UK
        Work & Ecommerce Advice: https://brandlight.org
        Personal & Software Tips: https://marcusquinn.com

        1 Reply Last reply Reply Quote 1
        • marcusquinn
          marcusquinn last edited by

          And AlertManager:

          "The Alertmanager handles alerts sent by client applications such as the Prometheus server. It takes care of deduplicating, grouping, and routing them to the correct receiver integration such as email, PagerDuty, or OpsGenie. It also takes care of silencing and inhibition of alerts."

          https://prometheus.io/docs/alerting/latest/alertmanager/
          https://github.com/prometheus/alertmanager

          We're not here for a long time - but we are here for a good time :)
          Jersey/UK
          Work & Ecommerce Advice: https://brandlight.org
          Personal & Software Tips: https://marcusquinn.com

          1 Reply Last reply Reply Quote 2
          • R
            rossmaclean last edited by

            After installing Grafana on Cloudron, I'd really like this too!

            1 Reply Last reply Reply Quote 1
            • eriktad
              eriktad App Dev last edited by

              https://git.cloudron.io/erik/prometheus-app our app for Prometheus ( in progress )

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

                @eriktad This looks like a good start! I guess we need some sort of authentication for the prometheus dashboard? https://prometheus.io/docs/guides/tls-encryption/ has some information.

                eriktad 2 Replies Last reply Reply Quote 0
                • eriktad
                  eriktad App Dev @girish last edited by

                  @girish Yes but I only find basic http auth on Prometheus docs, so what can you suggest?

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

                    @girish is it normal practice for us?

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

                      @eriktad Yes. You can do something like https://git.cloudron.io/cloudron/simple-torrent-app/-/blob/master/apache/cloud-torrent.conf . That apache config sets up the app for authentication via Cloudron LDAP .

                      eriktad 2 Replies Last reply Reply Quote 1
                      • eriktad
                        eriktad App Dev @girish last edited by

                        @girish cool thx

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

                          @girish I tried this example, but somehow apache does not start for me, if you can help, I will give the more information about this

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

                            @eriktad Happy to help, let me know what error you are facing.

                            eriktad 3 Replies Last reply Reply Quote 1
                            • eriktad
                              eriktad App Dev @girish last edited by

                              @girish if I try to run start.sh manually it gives me
                              1c6f3918-6632-4204-8ff5-855eff7cbaf6-image.png

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

                                @girish So idk what happens I try to do it like another example I found in GitLab

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

                                  @girish Ye problem founded. #!/bin/sh -> #!/bin/bash

                                  1 Reply Last reply Reply Quote 1
                                  • eriktad
                                    eriktad App Dev last edited by

                                    @girish Prometheus app is done. Can you review it and tell me what to need to do next?

                                    girish 1 Reply Last reply Reply Quote 1
                                    • eriktad
                                      eriktad App Dev last edited by

                                      @girish https://git.cloudron.io/erik/alertmanager-app and Alertmanager app

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

                                        @eriktad That's great progress! Yes, I can take a look next week. I have marked this app as WIP.

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

                                          @eriktad said in Prometheus - monitoring & time series database:

                                          @girish https://git.cloudron.io/erik/alertmanager-app and Alertmanager app

                                          I don't have much experience with Promotheus. Does it make sense to merge alertmanager into the main app itself or do you think it should be separate apps?

                                          If you need help deciding, we can take a guess from how they are usually deployed? Are they in separate domains or as subpaths etc.

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

                                            @girish Yeh, I thought about that but idk, they run on other ports and have other dashboards, but altermanager only alerting Prometheus massages, I can try to merge, think it is good idea, but we need to understand if user no need alerts why we setup it with Prometheus.

                                            marcusquinn girish 3 Replies Last reply Reply Quote 0
                                            • marcusquinn
                                              marcusquinn @eriktad last edited by marcusquinn

                                              @eriktad They make sense as separate Apps.

                                              I'd suggest the App naming would make it clearer, so:

                                              • Prometheus Server
                                              • Prometheus Alertmanager
                                              • Thanos (Single-Node)

                                              For interest, like Statping, in mission-critical setups it makes sense to have Prometheus running on a separate Cloudron instance for continuity of data-gathering throughout the ups & downs of the services being monitored.

                                              We're not here for a long time - but we are here for a good time :)
                                              Jersey/UK
                                              Work & Ecommerce Advice: https://brandlight.org
                                              Personal & Software Tips: https://marcusquinn.com

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

                                                @eriktad Thanks for packaging the app. I have published the app as unstable currently. https://git.cloudron.io/cloudron/prometheus-app/ is the repo. I removed the apache authentication bits because I have now merged the "auth wall" feature in Cloudron 6. With that feature, we can just add proxyAuth to the manifest and we will immediately get a login screen (so we don't need to put these things as part of the app).

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

                                                  @eriktad Can you do similar changes for the alertmanager repo as well? I will publish that as well.

                                                  BTW, I also put you in the app dev group. You might have to go to your profile so that the badge displays.

                                                  eriktad 3 Replies Last reply Reply Quote 2
                                                  • girish
                                                    girish Staff last edited by

                                                    I moved the repo to https://git.cloudron.io/cloudron/prometheus-server-app per @marcusquinn 's recommendation

                                                    1 Reply Last reply Reply Quote 3
                                                    • eriktad
                                                      eriktad App Dev @girish last edited by

                                                      @girish yes thx.

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

                                                        @girish alertmanager new version pushed to my repo.

                                                        1 Reply Last reply Reply Quote 2
                                                        • eriktad
                                                          eriktad App Dev @girish last edited by

                                                          @girish And I am already commented under one commit on gitlab, if you have a time plz review it.

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

                                                            @eriktad Thanks! I have published that also as unstable now. https://git.cloudron.io/cloudron/prometheus-alertmanager-app is the new repo and you should have commit privileges as well.

                                                            eriktad 1 Reply Last reply Reply Quote 2
                                                            • eriktad
                                                              eriktad App Dev last edited by

                                                              @girish Yes thank you.

                                                              1 Reply Last reply Reply Quote 2
                                                              • eriktad
                                                                eriktad App Dev @girish last edited by

                                                                @girish can you plz merge this and we can finish with this

                                                                https://git.cloudron.io/cloudron/prometheus-server-app/-/merge_requests/2
                                                                https://git.cloudron.io/cloudron/prometheus-alertmanager-app/-/merge_requests/1

                                                                1 Reply Last reply Reply Quote 2
                                                                • First post
                                                                  Last post
                                                                Powered by NodeBB