use cadvisor
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Torma Kristóf 2022-05-29 22:51:55 +02:00
parent bac7dbda24
commit a63f359d6f
2 changed files with 9 additions and 4 deletions

View File

@ -1,5 +1,3 @@
{ {
"userland-proxy": false, "userland-proxy": false
"metrics-addr" : "0.0.0.0:9323",
"experimental" : true
} }

View File

@ -6,6 +6,7 @@
name: name:
- docker.io - docker.io
- docker-compose - docker-compose
- cadvisor
- name: Disable userland proxy - name: Disable userland proxy
copy: copy:
@ -21,6 +22,12 @@
state: restarted state: restarted
enabled: yes enabled: yes
- name: Enable and restart cadvisor
service:
name: cadvisor
state: restarted
enabled: yes
- name: "Add service user to docker group" - name: "Add service user to docker group"
ansible.builtin.user: ansible.builtin.user:
name: service-user name: service-user
@ -31,7 +38,7 @@
- name: Allow docker exporter via ufw - name: Allow docker exporter via ufw
community.general.ufw: community.general.ufw:
rule: allow rule: allow
port: 9323 port: "4194"
proto: tcp proto: tcp
src: 192.168.69.0/24 src: 192.168.69.0/24
... ...