mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-24 10:31:56 +08:00
Add collectd monitoring for the memcached daemon.
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
- hosts
|
||||
- fas_client
|
||||
- collectd/base
|
||||
- collectd/memcached
|
||||
- sudo
|
||||
- memcached
|
||||
|
||||
|
||||
6
roles/collectd/memcached/files/memcached.conf
Normal file
6
roles/collectd/memcached/files/memcached.conf
Normal file
@@ -0,0 +1,6 @@
|
||||
LoadPlugin memcached
|
||||
|
||||
<Plugin memcached>
|
||||
Host "localhost"
|
||||
Port "11211"
|
||||
</Plugin>
|
||||
8
roles/collectd/memcached/tasks/main.yml
Normal file
8
roles/collectd/memcached/tasks/main.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
|
||||
- name: Copy in the memcached collectd config
|
||||
copy: src=memcached.conf dest=/etc/collectd.d/memcached.conf
|
||||
tags:
|
||||
- collectd
|
||||
- memcached
|
||||
notify: restart collectd
|
||||
Reference in New Issue
Block a user