This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
groups: | |
- name: example | |
rules: | |
# Alert for any cluster that has average CPU idle < 50% | |
- alert: HighUsage | |
expr: avg(irate(node_cpu_seconds_total{mode="idle"}[1m]) * 100) < 50 | |
for: 1m | |
annotations: | |
summary: "High usage on {{ $labels.instance }}" | |
description: "{{ $labels.instance }} has a average CPU idle (current value: {{ $value }}s)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: lacework_servers | |
become: yes | |
tasks: | |
- name: add apt signing key | |
apt_key: | |
keyserver: hkp://keyserver.ubuntu.com:80 | |
id: EE0CC692 | |
state: present | |
- name: add lacework repository into source list | |
apt_repository: |