Commit eca9786b authored by tec's avatar tec

Update monitor_host.yml, 1/2 dashboards now working

parent 6d988377
......@@ -5,6 +5,7 @@
remote_user: root
roles:
- cloudalchemy.prometheus
- cloudalchemy.alertmanager
- cloudalchemy.node-exporter
- cloudalchemy.grafana
vars:
......@@ -12,8 +13,42 @@
node:
- targets:
- localhost:9100
labels:
env: demo
job: node
- targets:
- localhost:9093
labels:
env: demo
job: alertmanager
- targets:
- localhost:3000
labels:
env: demo
job: grafana
prometheus_web_external_url: 'http://{{ ansible_host }}:9090'
prometheus_alertmanager_config:
- scheme: http
static_configs:
- targets: ['127.0.0.1:9093']
alertmanager_external_url: 'http://{{ ansible_host }}:9093'
alertmanager_receivers:
- name: 'email-wheel'
email_configs:
- to: '[email protected]'
from: '[email protected]'
smarthost: 'smtp.ucc.com:587'
auth_username: '[email protected]'
auth_identity: '[email protected]'
auth_password: SomePasswordHere
alertmanager_route:
group_by: ['alertname', 'cluster', 'service']
group_wait: 30s
group_interval: 5m
repeat_interval: 3h
receiver: 'email-wheel'
grafana_datasources:
- name: prometheus
- name: Prometheus
type: prometheus
access: proxy
url: 'http://localhost:9090'
......@@ -27,3 +62,10 @@
anonymous:
org_name: 'UCC'
org_role: Admin
grafana_dashboards:
- dashboard_id: '1860'
revision_id: '8'
datasource: 'Prometheus'
- dashboard_id: '3662'
revision_id: '2'
datasource: 'Prometheus'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment