Skip to content

joshuacherry/ansible-role-prometheus

Repository files navigation

ansible-role-prometheus

License: MIT Build Status Ansible

Configured Prometheus on a linux server. Prometheus is a systems and service monitoring system. It collects metrics from configured targets at given intervals, evaluates rule expressions, displays the results, and can trigger alerts if some condition is observed to be true.

Requirements

  • none

Install

Install from GitHub

ansible-galaxy install git+https://github.com/joshuacherry/ansible-role-prometheus.git

Features

OS Prometheus Server
Debian 8
Ubuntu 16.04
Centos 7

Versioning

Semantic Versioning

For the versions available, see the tags on this repository.

Additionaly you can see what change in each version in the CHANGELOG.md file.

Role variables

Look to the defaults properties file to see the possible configuration properties.

Testing

This role includes a Vagrantfile used with a Docker-based test harness that approximates the Travis CI setup for integration testing. Using Vagrant allows all contributors to test on the same platform and avoid false test failures due to untested or incompatible docker versions.

  1. Install Vagrant and VirtualBox.
  2. Run vagrant up from the same directory as the Vagrantfile in this repository.
  3. SSH into the VM with: vagrant ssh
  4. Run tests with make.

Testing with Docker and inspec

make -C /vagrant xenial64 test

See make help for more information including a full list of available targets.

Example Playbook

---
- name: Playbook for Prometheus
  hosts: all

  tasks:
  - include_role:
      name: prometheus

About

Ansible role to install a prometheus server

Resources

License

Stars

Watchers

Forks

Packages

No packages published