Open edusouzaxx opened 4 years ago
The workaround I found:
Create the mountpoints under /mnt:
By default, /media and /mnt are mounted as shared in the console container. This means that mounts within these directories will propagate to the host as well as other system services that mount these folders as shared.
ros config set mounts '[["/dev/sdb1","/mnt/var/lib/docker","ext4",""],["/dev/sdb2","/mnt/data","ext4",""],["/dev/sdb3","/mnt/var/lib/kubelet","ext4",""],["/dev/sdb4","/mnt/opt/rke","ext4",""]]'
And create symbolic links on cloud-config like:
write_files:
path: /etc/rc.local
permissions: “0755”
owner: root
content: |
#!/bin/bash
ln -s /mnt/data /data
ln -s /mnt/var/lib/kubelet /var/lib/kubelet
ln -s /mnt/opt/rke /opt/rke
RancherOS Version: (ros os version)
v1.5.5
Where are you running RancherOS? (docker-machine, AWS, GCE, baremetal, etc.)
Vmware
Why node-exporter does not take metrics from additional filesystems in RancherOS
RancherOS version
cat /etc/os-release
mounts configuration
filesystems
node-exporter service configuration
metrics
problem
I would like to receive metrics for the filesystems:
/data /var/lib/user-docker /var/lib/kubelet /opt/rke
but I only have metrics from filesystem:
/