summaryrefslogtreecommitdiff
path: root/roles/monitoring
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2022-03-06 00:31:22 +0100
committerChristian Pointner <equinox@spreadspace.org>2022-03-06 00:31:22 +0100
commit1bbe8582d9650eda816f9c596d8cd3b3fe9998e7 (patch)
treea62a8754913719f193ac70bb59f9bdcba2e547ba /roles/monitoring
parentinitial commit for alerta role (diff)
alerta: test alertmanager silence integration
Diffstat (limited to 'roles/monitoring')
-rw-r--r--roles/monitoring/alerta/tasks/main.yml6
-rw-r--r--roles/monitoring/prometheus/server/defaults/main/rules_node.yml2
2 files changed, 6 insertions, 2 deletions
diff --git a/roles/monitoring/alerta/tasks/main.yml b/roles/monitoring/alerta/tasks/main.yml
index af7530d8..a4fd3df9 100644
--- a/roles/monitoring/alerta/tasks/main.yml
+++ b/roles/monitoring/alerta/tasks/main.yml
@@ -12,10 +12,14 @@
content: |
DEBUG = {{ '{{' }} 'True' if env.DEBUG else 'False' {{ '}}' }}
SECRET = "{{ '{{' }} env.SECRET_KEY {{ '}}' }}"
- PLUGINS = ['reject', 'blackout', 'heartbeat']
+ PLUGINS = ['reject', 'blackout', 'heartbeat', 'prometheus']
DEFAULT_ENVIRONMENT = 'unknown'
ALLOWED_ENVIRONMENTS = ['unknown', 'chaos-at-.*']
HEARTBEAT_EVENTS = ['PrometheusAlertmanagerE2eDeadManSwitch']
+ ALERTMANAGER_USERNAME = 'alerta'
+ ALERTMANAGER_PASSWORD = 'alerta'
+ ALERTMANAGER_SILENCE_FROM_ACK = True
+ ALERTMANAGER_USE_EXTERNALURL_FOR_SILENCES = True
dest: "{{ alerta_base_path }}/config/alertad.conf.j2"
- name: install pod manifest
diff --git a/roles/monitoring/prometheus/server/defaults/main/rules_node.yml b/roles/monitoring/prometheus/server/defaults/main/rules_node.yml
index 525355d5..75e96bca 100644
--- a/roles/monitoring/prometheus/server/defaults/main/rules_node.yml
+++ b/roles/monitoring/prometheus/server/defaults/main/rules_node.yml
@@ -206,7 +206,7 @@ prometheus_server_rules_node:
severity: warning
annotations:
summary: Host Network Interface Saturated (instance {{ '{{' }} $labels.instance {{ '}}' }})
- description: "The network interface \"{{ '{{' }} $labels.interface {{ '}}' }}\" on \"{{ '{{' }} $labels.instance {{ '}}' }}\" is getting overloaded.\n VALUE = {{ '{{' }} $value {{ '}}' }}\n LABELS = {{ '{{' }} $labels {{ '}}' }}"
+ description: "The network interface \"{{ '{{' }} $labels.device {{ '}}' }}\" on \"{{ '{{' }} $labels.instance {{ '}}' }}\" is getting overloaded.\n VALUE = {{ '{{' }} $value {{ '}}' }}\n LABELS = {{ '{{' }} $labels {{ '}}' }}"
- alert: HostConntrackLimit
expr: node_nf_conntrack_entries / node_nf_conntrack_entries_limit > 0.8