feat: add CPU/RAM graph per process
This commit is contained in:
29
roles/munin_client/tasks/lxc.yml
Normal file
29
roles/munin_client/tasks/lxc.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
|
||||
# Useless junks for LXC
|
||||
- name: Delete junks for LXC containers
|
||||
ansible.builtin.file:
|
||||
path: "/etc/munin/plugins/{{ item }}"
|
||||
state: absent
|
||||
notify:
|
||||
- Restart munin-node
|
||||
loop:
|
||||
- acpi
|
||||
- cpuspeed
|
||||
- diskstats
|
||||
- entropy
|
||||
- irqstats
|
||||
|
||||
# Per process CPU/RAM
|
||||
- name: Add per process CPU/RAM metrics
|
||||
ansible.builtin.copy:
|
||||
src: "files/{{ item }}"
|
||||
dest: "/etc/munin/plugins/{{ item }}"
|
||||
mode: "0755"
|
||||
owner: root
|
||||
group: root
|
||||
notify:
|
||||
- Restart munin-node
|
||||
loop:
|
||||
- cpu_by_process
|
||||
- memory_by_process
|
Reference in New Issue
Block a user