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 15.4k 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.
  • 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
                          • C Offline
                            C Offline
                            cvachery
                            wrote on last edited by
                            #56

                            After to be honest I'm encountering an issue that is the backups aren't working for some reason.
                            Does someone who installed my package have this issue too. Or is it just from my install?

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

                              @cvachery this might be a general Cloudron backup issue. Does netdata create a lot of temporary files? If possible, change the directory where it changes those files to be outside the backup (like in /run or /tmp). A fix from the Cloudron side is coming (it's a bit complicated since we have to rewrite/replace a node module).

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

                                After update and reboot of the Cloudron backup seems to be working OK now. So probably the bug you said on Cloudron side.

                                What would be the next steps to integrate it directly into Cloudron AppStore?

                                girishG 1 Reply Last reply
                                0
                                • C cvachery

                                  After update and reboot of the Cloudron backup seems to be working OK now. So probably the bug you said on Cloudron side.

                                  What would be the next steps to integrate it directly into Cloudron AppStore?

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

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

                                  What would be the next steps to integrate it directly into Cloudron AppStore?

                                  this is only blocked by us 😕 we have a bunch of requirements for packages like having tests etc. So, each package takes time to get polished. If you are in the market for writing the tests, that will help speed things up definitely. But this is on top of the list for us (cc @vladimir-d )

                                  C 1 Reply Last reply
                                  2
                                  • girishG girish

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

                                    What would be the next steps to integrate it directly into Cloudron AppStore?

                                    this is only blocked by us 😕 we have a bunch of requirements for packages like having tests etc. So, each package takes time to get polished. If you are in the market for writing the tests, that will help speed things up definitely. But this is on top of the list for us (cc @vladimir-d )

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

                                    @girish Depending of the tests I can have a look and maybe give it a try if that can help you

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

                                      Just to let you know that I updated my package to add the sendmail package (to enable email notification) and bump the upstream version to 1.44.3

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

                                        @cvachery In your package, do you see the (cloud) Login button on the top right after one logs in with ProxyAuth ?

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

                                          Yes I do, I did not succeed to get rid of all the cloud bits and pieces as it is pretty much all over the software here and there.
                                          I tried this doc but was unsuccessful

                                          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