I have the exact same setup at home, docker container running the otel collector, on an lxc container. The grafana dashboard is showing the uptime, and metrics, of the host and not the container. So far I have not been able to figure out why. The lxc uptime and htop all show the correct information but otel is seeing something deeper. I think this is because the docker service is sharing the host kernel for running the application, and the lxc is just a fancy set of apparmour and permissions to restrict its capabilities and resources.
If anyone else has any ideas I would greatly appreciate it. Ill keep investigating.