Giter Club home page Giter Club logo

acd_playbook_for_prometheus_grafana's Introduction

build status

Ansible Playbook for Prometheus and Grafana ACD

Operating Systems

This playbook currently supports managed hosts running CentOS 7.

Description

This playbook demonstrates the usage of Foreman ACD by installing Prometheus and a connected Grafana. It consists of two roles:

  • prometheus - a role to set up and install prometheus

    This role also configures the firewall by opening the prometheus-corresponding ports.

  • grafana - a role to set up and install a grafana scraping from prometheus

    This role also configures the firewall by opening the grafana-corresponding ports.

For a basic setup via ACD, the variables can be used as found in the group_vars directory:

group_vars/all/main.yml:

---
pmt_port: "9090"
...
Name Description Default Mandatory (y/n)
pmt_port Prometheus Port 9090 y

group_vars/prometheus/main.yml:

---
pmt_arch: "amd64"
pmt_os: "linux"
pmt_vers: "2.24.1"
pmt_dl_link_base: "https://github.com/prometheus/prometheus/releases/download/"
pmt_dl_link: "{{pmt_dl_link_base}}v{{pmt_vers}}/{{pmt_filename}}"
pmt_filename: "prometheus-{{pmt_vers}}.{{pmt_os}}-{{pmt_arch}}.tar.gz"
pmt_dir: "/home/prometheus/prometheus"
pmt_dl_dest: "{{pmt_dir}}/{{pmt_filename}}"
pmt_glbl_scrape_interval: "10s"
pmt_job_scrape_interval: "5s"
...
Name Description Default Mandatory (y/n)
pmt_arch Architecture amd64 y
pmt_os Operating System linux y
pmt_vers Version 2.24.1 y
pmt_dl_link_base Download Link Prefix https://github.com/prometheus/prometheus/releases/download/ y
pmt_dl_link Download Link {{pmt_dl_link_base}}v{{pmt_vers}}/{{pmt_filename}} n
pmt_dir Installation Directory /home/prometheus/prometheus y
pmt_dl_dest Download Directory {{pmt_dir}}/{{pmt_filename}} n
pmt_glbl_scrape_interval Global Scraping Interval 10s y
pmt_job_scrape_interval Local Scraping Interval 5s y

group_vars/grafana/main.yml:

---
gfn_arch: "x86_64"
gfn_vers: "7.3.7-1"
gfn_dl_link_base: "https://dl.grafana.com/oss/release/grafana"
gfn_dl_link: "{{gfn_dl_link_base}}-{{gfn_vers}}.{{gfn_arch}}.rpm"
gfn_port: "3000"
gfn_custom_dashboard: ""
gfn_admin_user: "admin"
gfn_admin_password: "atix0815!"
...
Name Description Default Mandatory (y/n)
gfn_arch Architecture x86_64 y
gfn_vers Version 7.3.7-1 y
gfn_dl_link_base Download Link Prefix https://dl.grafana.com/oss/release/grafana y
gfn_dl_link Download Link {{gfn_dl_link_base}}-{{gfn_vers}}.{{gfn_arch}}.rpm n
gfn_port Port 3000 y
gfn_custom_dashboard Link to custom dashboard n
gfn_admin_user Admin User Name admin y
gfn_admin_password Admin User Password atix0815! y

Documentation

acd_playbook_for_prometheus_grafana's People

Contributors

maximiliankolb avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

acd_playbook_for_prometheus_grafana's Issues

Check if firewalld is running and used

If you do not use firewalld but iptables or disabled the firewall, the playbook fails.

The other suggestion would be to use the firewalld-ansible-module instead of command.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.