9 - "{{ ansible_fqdn }}:9100"
10 prometheus_scrape_configs:
11 - job_name: "prometheus"
12 metrics_path: "{{ prometheus_metrics_path }}"
15 - "{{ ansible_fqdn }}:9090"
19 password_file: /etc/prometheus-pass
23 - "{{ prometheus_config_dir }}/file_sd/node.yml"
24 # added because of warning in log
25 prometheus_alertmanager_config:
28 - "{{ ansible_fqdn }}:9093"
33 # node_exporter_tls_server_config:
34 # cert_file: /etc/node_exporter/fullchain.pem
35 # key_file: /etc/node_exporter/privkey.pem
36 node_exporter_web_listen_address: "127.0.1.1:9100"
37 node_exporter_basic_auth_users:
38 prom: incarnadine.bloodied.maker
42 smarthost: 'mx.iankelling.org:587'
43 from: "alerts@iankelling.org"
45 hello: 'defaultnn.b8.nz'
47 receiver: defaultreceiver
49 alertmanager_receivers:
50 - name: defaultreceiver
52 - to: alerts@iankelling.org
54 # the html was a bit ugly and just a huge waste of text,
55 # https://github.com/prometheus/alertmanager/issues/2232
56 # lead me to find a convenient text option to use
58 text: '{% raw -%}{{ template "opsgenie.default.description" . }}{% endraw -%}'
59 alertmanager_web_listen_address: '127.0.1.1:9093'
62 grafana_address: "127.0.1.1"
63 # iank: playbook will halt if no password is set. this is only
64 # available to localhost, so i dont really care, but might as well
65 # generate a pass isntead of putting in pw123 etc.
66 grafana_security: { admin_user: admin, admin_password: spheroid.recantation.shank }
71 url: 'http://{{ prometheus_web_listen_address }}'
74 # This is based on looking at highly downloaded dashboards here
75 # https://grafana.com/dashboards?dataSource=prometheus&collector=nodeExporter
76 # Which is where you are lead to from
77 # https://prometheus.io/docs/visualization/grafana/
81 datasource: prometheus
84 datasource: prometheus