Open airtonix opened 7 years ago
I'm seeing the same issue in Rancher (latest stable) with hosts running RancherOS (latest stable)
Any solution?
Since I'm a complete newb when it comes to the Rancher stack definition files, I decomposed the docker command and got it working using the Stacks Tab 'Add Service' button.
Here's the command from titpetric which is pretty standard apart from the added SYS_PTRACE capability (permission).
docker run -d --cap-add SYS_PTRACE --name netdata -v /proc:/host/proc:ro -v /sys:/host/sys:ro -p 19999:19999 titpetric/netdata
Steps: 1) Navigate to Racher Stacks Menu 2) Click 'Add Service' -- the big button, not any of the options from the drop down 3) Scale: Select Always run one instance on every host 4) Use Image 'titpetric/netdata:1.5' (Latest may work too, but pinned versions lead to future repeatable steps) 5) Command Tab: Set Console to Interactive - Not sure what the ideal choice is, but this worked for me. 6) Volume Tab: Add both volumes: /proc:/host/proc:ro and /sys:/host/sys:ro (make sure there are no spaces before or after them or you'll get a correctable volume error) 7) Networking Tab: Select 'Host Networking' and Hostname: Use the container Name 8) Security/Host Tab: Capabilities - Add 'SYS_PTRACE ' 9) Health Check: I added TCP Connection Opens to 19999 for the health check and reduced the default frequency of checks to 30 seconds.
I think I also set the logging type to json-file at the bottom of one of the tabs which may or may not allow logging to work.
Click Create. Wait 30 seconds or so then navigate to host1:19999 host2:19999, etc..
I'm not sure what's wrong with the community stack file.. Maybe the network type needs to be changed. If I have time I'll see if that's the issue and if so will see if I can get a pull request to fix it.
Edit: Corrected a couple mistakes.
Thanks. You were right, I tried with the 1.5 tag and it worked.... :)
Awesome sauce.
Netdata template needs some attention:
launched with (basic template from catalog)