EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit 39a50506 authored by Karl Grube's avatar Karl Grube
Browse files

alert work

parent 7255c3a6
No related branches found
No related tags found
No related merge requests found
......@@ -5,11 +5,10 @@
name:
- prometheus
- nginx
- name: prometheus started and enabled
service:
name: prometheus
state: started
enabled: yes
- name: alerts directory
file:
state: directory
path: /etc/prometheus/alerts
- name: prometheus template
template:
src: prometheus.yml.j2
......@@ -35,3 +34,9 @@
force: no
dest: /etc/prometheus/lxc.yml
content: '- targets:'
- name: prometheus started and enabled
service:
name: prometheus
state: started
enabled: yes
......@@ -29,8 +29,7 @@ alerting:
key_file: '/etc/ssl/prometheus_client/{{fqdn}}.key'
# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
rule_files:
# - "first_rules.yml"
# - "second_rules.yml"
- 'alerts/*.yml'
scrape_configs:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment