Skip to content

Commit

Permalink
Configure PostgreSQL plugins for Munin
Browse files Browse the repository at this point in the history
  • Loading branch information
jchristgit authored and jb3 committed Aug 28, 2024
1 parent 4c377a7 commit 99a8b9e
Showing 1 changed file with 27 additions and 6 deletions.
33 changes: 27 additions & 6 deletions ansible/roles/munin/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
- munin
- munin-node
- spawn-fcgi
# Plugin packages
- libdbd-pg-perl
state: present
tags:
- role::munin
Expand Down Expand Up @@ -33,14 +35,33 @@

- name: Enable non-default munin plugins
file:
src: "/usr/share/munin/plugins/{{ item }}"
dest: "/etc/munin/plugins/{{ item }}"
src: "/usr/share/munin/plugins/{{ item.src }}"
dest: "/etc/munin/plugins/{{ item.dest | default(item.src) }}"
state: link
loop:
- postfix_mailstats
- spamstats
- nginx_request
- nginx_status
# SpamAssassin
- src: spamstats
# Nginx
- src: nginx_request
- src: nginx_status
# Postfix
- src: postfix_mailstats
- src: postfix_mailqueue
- src: postfix_mailvolume
# PostgreSQL
- src: postgres_size_
dest: postgres_size_metricity
- src: postgres_size_
dest: postgres_size_site
- src: postgres_size_
dest: postgres_size_ALL
- src: postgres_xlog
- src: postgres_autovacuum
- src: postgres_bgwriter
- src: postgres_checkpoints
- src: postgres_connections_db
- src: postgres_users
- src: postgres_xlog
tags:
- role::munin
notify:
Expand Down

0 comments on commit 99a8b9e

Please sign in to comment.