Loading deploy/rules/swarm_service.rules.yml +8 −0 Original line number Diff line number Diff line Loading @@ -10,3 +10,11 @@ groups: description: The service '{{ $labels.label }}' has restarted more 3 times in last hour. summary: The service '{{ $labels.label }}' has restarted more 3 times in last hour. - alert: service_down expr: up == 0 for: 5m labels: severity: severity annotations: description: Instance {{ $labels.instance }} down. summary: "{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 5 minutes." No newline at end of file Loading
deploy/rules/swarm_service.rules.yml +8 −0 Original line number Diff line number Diff line Loading @@ -10,3 +10,11 @@ groups: description: The service '{{ $labels.label }}' has restarted more 3 times in last hour. summary: The service '{{ $labels.label }}' has restarted more 3 times in last hour. - alert: service_down expr: up == 0 for: 5m labels: severity: severity annotations: description: Instance {{ $labels.instance }} down. summary: "{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 5 minutes." No newline at end of file