Installs and configures a Prometheus monitoring server. Prometheus.io
Systems:
- Debian (Ubuntu)
- RedHat (CentOS)
See the Prometheus Docs http://prometheus.io/docs/operating/configuration/ https://github.com/prometheus/prometheus/blob/master/config/config.proto
- gotansible.runit
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: servers
roles:
- role: gotansible.prometheus
prometheus_global_labels:
key: value
prometheus_rule_files:
- monitor.rules
prometheus_sd_jobs:
- job:
name: 'api-server'
scrape_interval: '5s'
scrape_timeout: '10s'
sd_name: 'dns.resovl.name.prod'
sd_refresh_interval: '30s'
metrics_path: '/metrics'
prometheus_target_jobs:
- job:
name: api-server
scrape_interval: 5s
scrape_timeout: 10s
target_group:
- target: http://10.0.2.7:9090/metrics
- target: http://10.0.2.8:9090/metrics
labels:
role: web
cluster: west
MIT
Created by Franklin Wise in Santa Monica, CA.