From 32b80c1b2060c013f5b514d830c2df79c4fd9e24 Mon Sep 17 00:00:00 2001 From: F2256342 Daniel de Oliveira Carvalho Date: Wed, 20 Apr 2022 13:31:32 -0300 Subject: [PATCH] update --- alert.rules.yml | 28 ++++++++++------------------ 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/alert.rules.yml b/alert.rules.yml index 85fff9c..61c0740 100644 --- a/alert.rules.yml +++ b/alert.rules.yml @@ -1,19 +1,11 @@ groups: -- name: alert.rules - rules: - - alert: InstanceDown - expr: up == 0 - for: 1m - labels: - severity: "critical" - annotations: - summary: "Endpoint {{ $labels.instance }} down" - description: "{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 1 minutes." - -- name: test.rules - webhook_configs: - -# - name: 'admins' -# webhook_configs: -# - send_resolved: True -# url: http://localhost:9087/alert/65498889 \ No newline at end of file + - name: alert.rules + rules: + - alert: InstanceDown + expr: up == 0 + for: 1m + labels: + severity: "critical" + annotations: + summary: "Endpoint {{ $labels.instance }} down" + description: "{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 1 minutes."