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. Feature Requests
  3. Any issues with including NetData on the root server and as an app add-on?

Any issues with including NetData on the root server and as an app add-on?

Scheduled Pinned Locked Moved Feature Requests
70 Posts 12 Posters 16.7k Views 11 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.
  • imc67I Offline
    imc67I Offline
    imc67
    translator
    wrote on last edited by imc67
    #36

    BTW nice to know:

    ⭐ Netdata is the most energy-efficient monitoring tool for Docker-based systems ⭐

    Dec 11, 2023: University of Amsterdam published a study related to the impact of monitoring tools for Docker based systems, aiming to answer 2 questions:

    What is the impact of monitoring tools on the energy efficiency of Docker-based systems?
    What is the impact of monitoring tools on the performance of Docker-based systems?
    They tested ELK, Prometheus, Netdata and Zipkin, under 9 different configurations (Low, Mid, High Frequency vs. Low, Mid, High Workload, 3x3).

    This is how Netdata stands:

    🚀 Netdata excels in energy efficiency: "... Netdata being the most energy-efficient tool ...", as the study says.
    🚀 Netdata excels in CPU Usage, RAM Usage and Execution Time, and has a similar impact in Network Traffic as Prometheus.
    The study did not normalize the results based on the number of metrics collected. Given that Netdata usually collects singificantly more metrics than the other tools, Netdata managed to outperform the other tools, while ingesting a much higher number of metrics. Read the full study here: https://www.ivanomalavolta.com/files/papers/ICSOC_2023.pdf

    source: https://github.com/netdata/netdata

    1 Reply Last reply
    2
    • imc67I imc67

      @imc67 said in Any issues with including NetData on the root server and as an app add-on?:

      Uhoh how do we check the version?

      I just found out: node -v on the command line.

      On my 3 Cloudron's it says v18.16.0

      Is that OK @girish ?

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

      @imc67 said in Any issues with including NetData on the root server and as an app add-on?:

      On my 3 Cloudron's it says v18.16.0

      Is that OK @girish ?

      It is correct version right now. If netdata has a nodejs dep, then it might conflict with Cloudron's. We update Cloudron's nodejs without thinking about other software.

      1 Reply Last reply
      0
      • imc67I Offline
        imc67I Offline
        imc67
        translator
        wrote on last edited by
        #38

        Still no single problem with 3 Cloudrons, I guess and am pretty sure it’s not NetData what’s causing your issue.

        1 Reply Last reply
        2
        • C Offline
          C Offline
          cvachery
          wrote on last edited by
          #39

          Hello,

          I'm currently looking at this topic at the moment and maybe it would be possible to split this issue in two different subject.

          I understood that the main issue to add netdata to cloudron as an app is the capabilities required from the docker image to be able to collect all the metrics of the host. Which I understand is a problem as it challenge the whole security design actually implemented.

          But would it be conceivable to deploy netdata as a cloudron app with limited monitoring capabilities as a known limitation. I know that it can seems counter-productive but I have a specific purpose for which it could be useful : Using this netdata instance as a parent node to centralize all the metrics from different children and use the ldap/proxyauth addon of cloudron to add authentication to the WebUI
          That would be a really great use case for me.

          And concerning the other subject of actually collecting the data of the cloudron host using netdata. IMHO a tutorial on how to deploy it with docker and /or docker-compose, and the firewall configuration needed would be enough for most admin I think.

          marcusquinnM 1 Reply Last reply
          1
          • C cvachery

            Hello,

            I'm currently looking at this topic at the moment and maybe it would be possible to split this issue in two different subject.

            I understood that the main issue to add netdata to cloudron as an app is the capabilities required from the docker image to be able to collect all the metrics of the host. Which I understand is a problem as it challenge the whole security design actually implemented.

            But would it be conceivable to deploy netdata as a cloudron app with limited monitoring capabilities as a known limitation. I know that it can seems counter-productive but I have a specific purpose for which it could be useful : Using this netdata instance as a parent node to centralize all the metrics from different children and use the ldap/proxyauth addon of cloudron to add authentication to the WebUI
            That would be a really great use case for me.

            And concerning the other subject of actually collecting the data of the cloudron host using netdata. IMHO a tutorial on how to deploy it with docker and /or docker-compose, and the firewall configuration needed would be enough for most admin I think.

            marcusquinnM Offline
            marcusquinnM Offline
            marcusquinn
            wrote on last edited by
            #40

            @cvachery I believe it makes most sense to install in the root host.

            I assume being installed there would give it a view of all Docker Containers, anyway.

            Perhaps it should just be an optional install on the root host, with disclaimers that issues might not be supported.

            Web Design https://www.evergreen.je
            Development https://brandlight.org
            Life https://marcusquinn.com

            C 1 Reply Last reply
            0
            • marcusquinnM marcusquinn

              @cvachery I believe it makes most sense to install in the root host.

              I assume being installed there would give it a view of all Docker Containers, anyway.

              Perhaps it should just be an optional install on the root host, with disclaimers that issues might not be supported.

              C Offline
              C Offline
              cvachery
              wrote on last edited by
              #41

              @marcusquinn I do agree that for a monitoring point of view it indeed makes more sense to deploy on the root host (that was my second point) but as a cloudron app I do believe the not privileged app has an utility.

              And using this architecture of a netdata parent node as a cloudron app and a child node being deployed on the root host streaming its data to the parent would be then transparent and we would have the best of the two world if the installation on the root host is at least well documented on the cloudron side or even as you suggest made an optionnal part of the install process

              robiR 1 Reply Last reply
              0
              • C cvachery

                @marcusquinn I do agree that for a monitoring point of view it indeed makes more sense to deploy on the root host (that was my second point) but as a cloudron app I do believe the not privileged app has an utility.

                And using this architecture of a netdata parent node as a cloudron app and a child node being deployed on the root host streaming its data to the parent would be then transparent and we would have the best of the two world if the installation on the root host is at least well documented on the cloudron side or even as you suggest made an optionnal part of the install process

                robiR Offline
                robiR Offline
                robi
                wrote on last edited by
                #42

                @cvachery Start a package for it using the docs and see how far you get, others here can chime in to help. Bit by bit, progress is made.

                Conscious tech

                1 Reply Last reply
                0
                • C Offline
                  C Offline
                  cvachery
                  wrote on last edited by cvachery
                  #43

                  I've had some time this week to work on this topic. So here is where I am at the moment.
                  I packaged an app for cloudron, it does seem to be working properly. (I let you guys have a look/test as it is my first try at packaging for cloudron)

                  The only thing I can't get to work is the streaming part. (eg a child node stream to my cloudron node which is a parent), my best guess is that the reverse proxy used by cloudron doesn't send the tcp stream to the container but only http. But I don't know how to configure/fix that.

                  The netdata configuration file is in /app/data/etc so to set up streaming you can add a file stream.conf using the file explorer and restart the app

                  Infos I can give :
                  Command used to install : cloudron install --image cvachery/netdata-app:v1.44.1
                  Github : https://github.com/aylham/cloudron-netdata
                  Docker image : docker pull cvachery/netdata-app:v1.44.1
                  Netdata doc on how to setup streaming : https://learn.netdata.cloud/docs/streaming/understanding-how-streaming-works#enable-streaming-between-nodes

                  girishG KubernetesK 2 Replies Last reply
                  5
                  • C cvachery

                    I've had some time this week to work on this topic. So here is where I am at the moment.
                    I packaged an app for cloudron, it does seem to be working properly. (I let you guys have a look/test as it is my first try at packaging for cloudron)

                    The only thing I can't get to work is the streaming part. (eg a child node stream to my cloudron node which is a parent), my best guess is that the reverse proxy used by cloudron doesn't send the tcp stream to the container but only http. But I don't know how to configure/fix that.

                    The netdata configuration file is in /app/data/etc so to set up streaming you can add a file stream.conf using the file explorer and restart the app

                    Infos I can give :
                    Command used to install : cloudron install --image cvachery/netdata-app:v1.44.1
                    Github : https://github.com/aylham/cloudron-netdata
                    Docker image : docker pull cvachery/netdata-app:v1.44.1
                    Netdata doc on how to setup streaming : https://learn.netdata.cloud/docs/streaming/understanding-how-streaming-works#enable-streaming-between-nodes

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

                    @cvachery said in Any issues with including NetData on the root server and as an app add-on?:

                    The only thing I can't get to work is the streaming part. (eg a child node stream to my cloudron node which is a parent), my best guess is that the reverse proxy used by cloudron doesn't send the tcp stream to the container but only http. But I don't know how to configure/fix that.

                    Not sure if this helps but if the data is sent in separate tcp port, you have to define it using tcpPort in manifest - https://docs.cloudron.io/packaging/manifest/#tcpports

                    1 Reply Last reply
                    1
                    • C Offline
                      C Offline
                      cvachery
                      wrote on last edited by
                      #45

                      Thanks for the reply @girish
                      I don't know how I missed this option.
                      It does work now when the TCP port is defined (it is the same as httpPort, but it does have to be explicitly enabled)

                      Anyway it is now working as expected, their even is the host metrics on the overview.
                      Still have some quality of life configuration changes to do but the app is functional

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

                        @cvachery very nice! can you put a LICENSE in your repo as well? We will need some open source license (MIT, BSD etc) for us to use your package code. I will add this to our internal list of app to review.

                        C 1 Reply Last reply
                        3
                        • girishG girish

                          @cvachery very nice! can you put a LICENSE in your repo as well? We will need some open source license (MIT, BSD etc) for us to use your package code. I will add this to our internal list of app to review.

                          C Offline
                          C Offline
                          cvachery
                          wrote on last edited by
                          #47

                          @girish Licence file added

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

                            @cvachery thanks, will take a look next week or so!

                            C 1 Reply Last reply
                            1
                            • girishG girish

                              @cvachery thanks, will take a look next week or so!

                              C Offline
                              C Offline
                              cvachery
                              wrote on last edited by
                              #49

                              Hello @girish,
                              Any chance you had time to have a look a this?

                              girishG 1 Reply Last reply
                              1
                              • C cvachery

                                Hello @girish,
                                Any chance you had time to have a look a this?

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

                                @cvachery not yet, but it's on our list.

                                1 Reply Last reply
                                0
                                • C cvachery

                                  I've had some time this week to work on this topic. So here is where I am at the moment.
                                  I packaged an app for cloudron, it does seem to be working properly. (I let you guys have a look/test as it is my first try at packaging for cloudron)

                                  The only thing I can't get to work is the streaming part. (eg a child node stream to my cloudron node which is a parent), my best guess is that the reverse proxy used by cloudron doesn't send the tcp stream to the container but only http. But I don't know how to configure/fix that.

                                  The netdata configuration file is in /app/data/etc so to set up streaming you can add a file stream.conf using the file explorer and restart the app

                                  Infos I can give :
                                  Command used to install : cloudron install --image cvachery/netdata-app:v1.44.1
                                  Github : https://github.com/aylham/cloudron-netdata
                                  Docker image : docker pull cvachery/netdata-app:v1.44.1
                                  Netdata doc on how to setup streaming : https://learn.netdata.cloud/docs/streaming/understanding-how-streaming-works#enable-streaming-between-nodes

                                  KubernetesK Offline
                                  KubernetesK Offline
                                  Kubernetes
                                  App Dev
                                  wrote on last edited by
                                  #51

                                  @cvachery said in Any issues with including NetData on the root server and as an app add-on?:

                                  Infos I can give :
                                  Command used to install : cloudron install --image cvachery/netdata-app:v1.44.1
                                  Github : https://github.com/aylham/cloudron-netdata
                                  Docker image : docker pull cvachery/netdata-app:v1.44.1
                                  Netdata doc on how to setup streaming : https://learn.netdata.cloud/docs/streaming/understanding-how-streaming-works#enable-streaming-between-nodes

                                  Do you provide the CloudronManifest.json somwhere?

                                  girishG 1 Reply Last reply
                                  2
                                  • KubernetesK Kubernetes

                                    @cvachery said in Any issues with including NetData on the root server and as an app add-on?:

                                    Infos I can give :
                                    Command used to install : cloudron install --image cvachery/netdata-app:v1.44.1
                                    Github : https://github.com/aylham/cloudron-netdata
                                    Docker image : docker pull cvachery/netdata-app:v1.44.1
                                    Netdata doc on how to setup streaming : https://learn.netdata.cloud/docs/streaming/understanding-how-streaming-works#enable-streaming-between-nodes

                                    Do you provide the CloudronManifest.json somwhere?

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

                                    @Kubernetes it's in the repo at https://github.com/aylham/cloudron-netdata

                                    1 Reply Last reply
                                    2
                                    • C Offline
                                      C Offline
                                      cvachery
                                      wrote on last edited by
                                      #53

                                      And hopefully it will do the job.
                                      I use my package as a parent node since I released it without any issue but more usage will be helpful

                                      1 Reply Last reply
                                      1
                                      • D Offline
                                        D Offline
                                        d1rk
                                        wrote on last edited by
                                        #54

                                        Sounds promising. Can someone please share how to install this app on my Cloudron? Thank you.

                                        LanhildL 1 Reply Last reply
                                        0
                                        • D d1rk

                                          Sounds promising. Can someone please share how to install this app on my Cloudron? Thank you.

                                          LanhildL Offline
                                          LanhildL Offline
                                          Lanhild
                                          App Dev
                                          wrote on last edited by Lanhild
                                          #55

                                          @d1rk This application package not being officially supported by the team, it means you'd need to follow the instructions from that package repo. However, you could use https://docs.cloudron.io/packaging/tutorial/ as an example of what installing a custom application looks like.

                                          1 Reply Last reply
                                          0
                                          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