blob: 9085c9ebf2defdd0694f996df8b5500d92182584 [file] [log] [blame]
Ilya Chukhnakov87e86fc2017-08-09 02:01:44 +03001{%- from "octavia/map.jinja" import api, monitoring with context %}
2
3{%- if api.get('enabled', False) %}
4server:
5 alert:
Ilya Chukhnakov2e5b5922017-08-23 06:14:45 +03006{%- raw %}
Michal Kobus1eb2fba2018-06-08 14:11:48 +02007 OctaviaApiDown:
Ilya Chukhnakov2e5b5922017-08-23 06:14:45 +03008 if: >-
9 max(openstack_api_check_status{service="octavia-api"}) == 0
10 for: 2m
11 labels:
Michal Kobus1eb2fba2018-06-08 14:11:48 +020012 severity: critical
13 service: octavia
Ilya Chukhnakov2e5b5922017-08-23 06:14:45 +030014 annotations:
Michal Kobus1eb2fba2018-06-08 14:11:48 +020015 summary: "Octavia API outage"
Ilya Chukhnakov2e5b5922017-08-23 06:14:45 +030016 description: >-
Michal Kobus1eb2fba2018-06-08 14:11:48 +020017 Octavia API is not accessible for all available Octavia endpoints in the OpenStack service catalog for 2 minutes.
Ilya Chukhnakov2e5b5922017-08-23 06:14:45 +030018{%- endraw %}
Ilya Chukhnakov87e86fc2017-08-09 02:01:44 +030019 OctaviaErrorLogsTooHigh:
20 {%- set log_threshold = monitoring.error_log_rate|float %}
21 if: >-
22 sum(rate(log_messages{service="octavia",level=~"error|emergency|fatal"}[5m])) without (level) > {{ log_threshold }}
23{%- raw %}
24 labels:
25 severity: warning
Michal Kobus1eb2fba2018-06-08 14:11:48 +020026 service: octavia
Ilya Chukhnakov87e86fc2017-08-09 02:01:44 +030027 annotations:
Michal Kobus1eb2fba2018-06-08 14:11:48 +020028 summary: "High number of errors in Octavia logs"
29 description: "The average per-second rate of errors in Octavia logs on the {{ $labels.host }} node is {{ $value }} (as measured over the last 5 minutes)."
Ann Kamyshnikova74cc50d2018-10-15 14:58:52 +040030{%- endraw %}
Ilya Chukhnakov87e86fc2017-08-09 02:01:44 +030031{%- endif %}