ChristianLempa / videos

This is my video documentation. Here you'll find code-snippets, technical documentation, templates, command reference, and whatever is needed for all my YouTube Videos.
MIT License
879 stars 322 forks source link

Prometheus config file does not support current node exporter and cadvisor compose files #40

Open Slayman opened 1 year ago

Slayman commented 1 year ago

Both docker-compose.yml files of node-exporter and cAdvisor contain this line: network_mode: host which in turn invalidates the current boilerplate config of prometheus since

- targets: ['node_exporter:9100']
- targets: ['cadvisor:8080']

do not work with the host mode as they don't join the stacks network I hope that was understandable and I double checked and figured my solution out:

- targets: ['<dockerhostIP>:9100']
- targets: ['<dockerhostIP>:8080']
ChristianLempa commented 1 year ago

@Slayman can you specify which files you're referring to? Couldn't find them in the repo.

Slayman commented 1 year ago

It's the Prometheus configuration file: https://github.com/ChristianLempa/boilerplates/blob/9ad91f80729aea8eb666e521dfd5f277d7f69c57/docker-compose/prometheus/config/prometheus.yml

LunarLoom24 commented 1 year ago

Starting nginxproxymanager_app_1 ... Starting nginxproxymanager_db_1 ... error

ERROR: for nginxproxymanager_db_1 Cannot start service db: AppArmor enabled on system but the docker-default profile could not be loaded: running /sbin/apparmor_parser apparmor_parser -Kr /var/lib/docker/tmp/docker-default2247113196 failed with output: apparmor_parser: Unable to replace "docker-default". Permission denied; attempted to load a profile while confined? Starting nginxproxymanager_app_1 ... error error: exit status 243

ERROR: for nginxproxymanager_app_1 Cannot start service app: AppArmor enabled on system but the docker-default profile could not be loaded: running /sbin/apparmor_parser apparmor_parser -Kr /var/lib/docker/tmp/docker-default2606824930 failed with output: apparmor_parser: Unable to replace "docker-default". Permission denied; attempted to load a profile while confined?

error: exit status 243

ERROR: for db Cannot start service db: AppArmor enabled on system but the docker-default profile could not be loaded: running /sbin/apparmor_parser apparmor_parser -Kr /var/lib/docker/tmp/docker-default2247113196 failed with output: apparmor_parser: Unable to replace "docker-default". Permission denied; attempted to load a profile while confined?

error: exit status 243

ERROR: for app Cannot start service app: AppArmor enabled on system but the docker-default profile could not be loaded: running /sbin/apparmor_parser apparmor_parser -Kr /var/lib/docker/tmp/docker-default2606824930 failed with output: apparmor_parser: Unable to replace "docker-default". Permission denied; attempted to load a profile while confined?

error: exit status 243 ERROR: Encountered errors while bringing up the project.