Role name in Ansible Galaxy: robbiet480.memcache_exporter
This Ansible role has the following features for memcache_exporter (a memcache metrics exporter for Prometheus):
- Install a pre-compiled version of memcache_exporter (I hope the maintainer of memcache_exporter will provide official binary releases).
- Handlers for restart/reload/stop events.
None.
memcache_exporter specific user-configurable defaults:
# memcache Connection String URI
# @see http://docs.memcache.org/manual/reference/connection-string/
memcache_exporter_memcache_uri: "localhost:11211"
memcache_exporter_port: 9106Prometheus user-configurable defaults (of course, a subset of optional variables in robbiet480.prometheus):
# user and group
prometheus_user: prometheus
prometheus_group: prometheus
# directory for executable files
prometheus_install_path: /opt/prometheus
# directory for logs
prometheus_log_path: /var/log/prometheus
# directory for PID files
prometheus_pid_path: /var/run/prometheus
# version of helper utility "gosu"
gosu_version: 1.4-
restart memcache_exporter -
reload memcache_exporter -
stop memcache_exporter
Add role name robbiet480.memcache_exporter to your playbook file.
Set vars in your playbook file, if necessary.
Simple example:
---
# file: simple-playbook.yml
- hosts: all
sudo: True
roles:
- robbiet480.memcache_exporter
vars:
memcache_exporter_memcache_uri: "localhost:11211"
None.
MIT License. See the LICENSE file for details.