Skip to content

Commit

Permalink
Add alertmanager playbook
Browse files Browse the repository at this point in the history
Signed-off-by: Youngho Lee <[email protected]>
  • Loading branch information
0leaf committed Jul 8, 2022
1 parent 8888b4e commit 5391467
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
6 changes: 5 additions & 1 deletion playbooks/slurm-cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,11 @@
vars:
hostlist: "{{ slurm_monitoring_group | default('slurm-metric') }}"
when: slurm_enable_monitoring

- include: slurm-cluster/alertmanager.yml
vars:
hostlist: "{{ slurm_monitoring_group | default('slurm-metric') }}"
when: slurm_enable_monitoring

# Install monitoring exporters
- include: slurm-cluster/prometheus-slurm-exporter.yml
vars:
Expand Down
10 changes: 10 additions & 0 deletions playbooks/slurm-cluster/alertmanager.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
- include: ../container/docker.yml

- hosts: "{{ hostlist | default('all') }}"
become: yes
tasks:
- name: configure alertmanager
include_role:
name: alertmanager

0 comments on commit 5391467

Please sign in to comment.