Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Slayman opened this issue Mar 1, 2023 · 3 comments
Assignees

Comments

@Slayman
Copy link

Slayman commented Mar 1, 2023

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
Copy link
Owner

ChristianLempa commented Mar 12, 2023

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

@ChristianLempa ChristianLempa self-assigned this Mar 12, 2023
@Slayman
Copy link
Author

Slayman commented Mar 12, 2023

@LunarLoom24
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants