Initially forked from mkrakowitzer/ansible-prometheus.
prometheus is an ansible role which can install systemd-wide or using docker the following:
- prometheus
- alertmanager
- grafana
- blackbox_exporter
- node_exporter
- mongodb_exporter
With install_mode: docker, which is the default behavior, this role will requires a host with docker-engine installed.
Currently, only mongodb_exporter is available with install_mode: system.
master: current state of the rolerelease-0.1: state before refactoring with breaking changes introduced with #9
Using ansible-galaxy:
# requirements.yml
- src: https://github.com/cycloidio/ansible-prometheus.git
version: master
name: cycloid.prometheus
scm: gitUsing git:
$ git clone https://github.com/cycloidio/ansible-prometheus.git
By default, every install_{prometheus,alertmanager,grafana,...} variables are set to false which let the this role be used to only install exporters.
See default variables and there values in defaults/main.yml.
$ bundle install
$ KITCHEN\_YAML=".kitchen.vagrant.yml" bundle exec kitchen test
$ git clone https://github.com/krakowitzerm/ansible-prometheus.git
$ cd ansible-prometheus
$ ansible-galaxy install --role-file=requirements.yml --roles-path=roles --force
$ vagrant up
$ vagrant ssh
Test away
MIT