Openstack API check improvements
- show public endpoint on the dasboard;
- switch from "name" to "service_name" label;
- replace component alerts by generic OpenstackServiceEndpointDown.
Related-PROD: PROD-35549
Change-Id: I307abea273c862c7d4884cb32d3f21ec9230dffd
diff --git a/octavia/files/grafana_dashboards/octavia_prometheus.json b/octavia/files/grafana_dashboards/octavia_prometheus.json
index 4915794..8e7cf3a 100644
--- a/octavia/files/grafana_dashboards/octavia_prometheus.json
+++ b/octavia/files/grafana_dashboards/octavia_prometheus.json
@@ -72,16 +72,15 @@
"tableColumn": "",
"targets": [
{
- "expr": "min(openstack_api_check_status{service=~\"octavia.*\"})",
+ "expr": "openstack_api_check_status{interface=\"public\",service_name=~\"octavia.*\"}",
"format": "time_series",
"intervalFactor": 2,
- "legendFormat": "{{ service }}",
"refId": "A",
"step": 60
}
],
"thresholds": "1,0",
- "title": "API Availability",
+ "title": "Public VIP API Availability",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
@@ -859,4 +858,3 @@
"version": 1
}
{%- endraw -%}
-
diff --git a/octavia/meta/prometheus.yml b/octavia/meta/prometheus.yml
index 9085c9e..f7b60c2 100644
--- a/octavia/meta/prometheus.yml
+++ b/octavia/meta/prometheus.yml
@@ -3,19 +3,6 @@
{%- if api.get('enabled', False) %}
server:
alert:
-{%- raw %}
- OctaviaApiDown:
- if: >-
- max(openstack_api_check_status{service="octavia-api"}) == 0
- for: 2m
- labels:
- severity: critical
- service: octavia
- annotations:
- summary: "Octavia API outage"
- description: >-
- Octavia API is not accessible for all available Octavia endpoints in the OpenStack service catalog for 2 minutes.
-{%- endraw %}
OctaviaErrorLogsTooHigh:
{%- set log_threshold = monitoring.error_log_rate|float %}
if: >-