Any issues with including NetData on the root server and as an app add-on?
-
@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
-
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 filestream.conf
using the file explorer and restart the appInfos 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 -
@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
-
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 -
@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.
-
@cvachery thanks, will take a look next week or so!
-
-
@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-nodesDo you provide the CloudronManifest.json somwhere?
-
@Kubernetes it's in the repo at https://github.com/aylham/cloudron-netdata
-
@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.
-
@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).
-
@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 )