videos icon indicating copy to clipboard operation
videos copied to clipboard

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

Open Slayman opened this issue 1 year ago • 3 comments

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']

Slayman avatar Mar 01 '23 20:03 Slayman

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

ChristianLempa avatar Mar 12 '23 16:03 ChristianLempa

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

Slayman avatar Mar 12 '23 17:03 Slayman

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.

LunarLoom24 avatar Mar 27 '23 19:03 LunarLoom24