Add KPI2 queries to Gainsight
Change-Id: If59a3232b36e114f97256424d543d10778b178c8
Related-PROD: PROD-29191
diff --git a/prometheus/gainsight/query/openstack.yml b/prometheus/gainsight/query/openstack.yml
index ad43d36..9ebf282 100644
--- a/prometheus/gainsight/query/openstack.yml
+++ b/prometheus/gainsight/query/openstack.yml
@@ -19,3 +19,6 @@
compute_instance_create_start: "'VM creation start','sum(compute_instance_create_start_host_doc_count)'"
compute_instance_create_end: "'VM creation end','sum(compute_instance_create_end_host_doc_count)'"
compute_instance_create_error: "'VM creation error','sum(compute_instance_create_error_host_doc_count)'"
+ nova_vm_all: "'Total VM number','avg_over_time(total:openstack_nova_instance_all[1d])'"
+ nova_vm_failed: "'Failed VM number','avg_over_time(total:openstack_nova_instance_failed[1d])'"
+ kpi_downtime: "'KPI Downtime','1 - avg_over_time(total:openstack_nova_instance_failed[1d]) / avg_over_time(total:openstack_nova_instance_all[1d])'"