Host-agnostic compute queries
Cherry-picked from: I8f219c824ee153fe6527896149fbc16d038e981a
Related-bug: PROD-30600 (PROD:30600)
Change-Id: Icc8672cbb5aa850ecfb97cdd000c76856a3a283f
diff --git a/grafana/files/dashboards/prometheus/kpi_provisioning_prometheus.json b/grafana/files/dashboards/prometheus/kpi_provisioning_prometheus.json
index ad7733e..85a7276 100644
--- a/grafana/files/dashboards/prometheus/kpi_provisioning_prometheus.json
+++ b/grafana/files/dashboards/prometheus/kpi_provisioning_prometheus.json
@@ -93,7 +93,7 @@
"tableColumn": "",
"targets": [
{
- "expr": "1 - sum(compute_instance_create_error_host_doc_count{environment=\"$environment\"}) / sum(compute_instance_create_start_host_doc_count{environment=\"$environment\"})",
+ "expr": "1 - sum(compute_instance_create_error_event_doc_count{environment=\"$environment\"}) / sum(compute_instance_create_start_event_doc_count{environment=\"$environment\"})",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "",
@@ -176,7 +176,7 @@
"tableColumn": "",
"targets": [
{
- "expr": "sum(compute_instance_create_start_host_doc_count{environment=\"$environment\"})",
+ "expr": "sum(compute_instance_create_start_event_doc_count{environment=\"$environment\"})",
"format": "time_series",
"interval": "30s",
"intervalFactor": 1,
@@ -260,7 +260,7 @@
"tableColumn": "",
"targets": [
{
- "expr": "sum(compute_instance_create_end_host_doc_count{environment=\"$environment\"})",
+ "expr": "sum(compute_instance_create_end_event_doc_count{environment=\"$environment\"})",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
@@ -345,7 +345,7 @@
"tableColumn": "",
"targets": [
{
- "expr": "sum(compute_instance_create_error_host_doc_count{environment=\"$environment\"})",
+ "expr": "sum(compute_instance_create_error_event_doc_count{environment=\"$environment\"})",
"format": "time_series",
"hide": false,
"intervalFactor": 1,
@@ -449,7 +449,7 @@
}
],
"dsType": "elasticsearch",
- "expr": "sum(compute_instance_create_start_host_doc_count{environment=\"$environment\"})",
+ "expr": "sum(compute_instance_create_start_event_doc_count{environment=\"$environment\"})",
"format": "time_series",
"interval": "1d",
"intervalFactor": 2,
@@ -480,7 +480,7 @@
}
],
"dsType": "elasticsearch",
- "expr": "sum(compute_instance_create_end_host_doc_count{environment=\"$environment\"})",
+ "expr": "sum(compute_instance_create_end_event_doc_count{environment=\"$environment\"})",
"format": "time_series",
"interval": "1d",
"intervalFactor": 2,
@@ -511,7 +511,7 @@
}
],
"dsType": "elasticsearch",
- "expr": "sum(compute_instance_create_error_host_doc_count{environment=\"$environment\"})",
+ "expr": "sum(compute_instance_create_error_event_doc_count{environment=\"$environment\"})",
"format": "time_series",
"instant": false,
"interval": "1d",
@@ -635,7 +635,7 @@
}
],
"dsType": "elasticsearch",
- "expr": "1 - sum(compute_instance_create_error_host_doc_count{environment=\"$environment\"}) / (sum(compute_instance_create_start_host_doc_count{environment=\"$environment\"} > 0) or count(compute_instance_create_start_host_doc_count{environment=\"$environment\"} == 0))",
+ "expr": "1 - sum(compute_instance_create_error_event_doc_count{environment=\"$environment\"}) / (sum(compute_instance_create_start_event_doc_count{environment=\"$environment\"} > 0) or count(compute_instance_create_start_event_doc_count{environment=\"$environment\"} == 0))",
"format": "time_series",
"instant": false,
"interval": "1d",