Update KPI1 dashboard

Change-Id: I5c08581a665b7a04e22379c1bdd27ba4d62c1adf
Related-bug: PROD-27906 (PROD:27906)
diff --git a/grafana/files/dashboards/prometheus/provisioning_kpi_prometheus.json b/grafana/files/dashboards/prometheus/kpi_provisioning_prometheus.json
similarity index 96%
rename from grafana/files/dashboards/prometheus/provisioning_kpi_prometheus.json
rename to grafana/files/dashboards/prometheus/kpi_provisioning_prometheus.json
index bf70c7c..ad7733e 100644
--- a/grafana/files/dashboards/prometheus/provisioning_kpi_prometheus.json
+++ b/grafana/files/dashboards/prometheus/kpi_provisioning_prometheus.json
@@ -33,6 +33,89 @@
     },
     {
       "cacheTimeout": null,
+      "colorBackground": true,
+      "colorValue": false,
+      "colors": [
+        "#d44a3a",
+        "rgba(237, 129, 40, 0.89)",
+        "#299c46"
+      ],
+      "datasource": null,
+      "format": "percentunit",
+      "gauge": {
+        "maxValue": 100,
+        "minValue": 0,
+        "show": false,
+        "thresholdLabels": false,
+        "thresholdMarkers": true
+      },
+      "gridPos": {
+        "h": 3,
+        "w": 4,
+        "x": 0,
+        "y": 1
+      },
+      "hideTimeOverride": true,
+      "id": 13,
+      "interval": null,
+      "links": [],
+      "mappingType": 1,
+      "mappingTypes": [
+        {
+          "name": "value to text",
+          "value": 1
+        },
+        {
+          "name": "range to text",
+          "value": 2
+        }
+      ],
+      "maxDataPoints": 100,
+      "nullPointMode": "connected",
+      "nullText": null,
+      "postfix": "",
+      "postfixFontSize": "50%",
+      "prefix": "",
+      "prefixFontSize": "50%",
+      "rangeMaps": [
+        {
+          "from": "null",
+          "text": "N/A",
+          "to": "null"
+        }
+      ],
+      "sparkline": {
+        "fillColor": "rgba(31, 118, 189, 0.18)",
+        "full": false,
+        "lineColor": "rgb(31, 120, 193)",
+        "show": false
+      },
+      "tableColumn": "",
+      "targets": [
+        {
+          "expr": "1 - sum(compute_instance_create_error_host_doc_count{environment=\"$environment\"}) / sum(compute_instance_create_start_host_doc_count{environment=\"$environment\"})",
+          "format": "time_series",
+          "intervalFactor": 1,
+          "legendFormat": "",
+          "refId": "A"
+        }
+      ],
+      "thresholds": "0.9,0.98",
+      "timeFrom": "30s",
+      "title": "KPI 1 - VM provisioning %",
+      "type": "singlestat",
+      "valueFontSize": "80%",
+      "valueMaps": [
+        {
+          "op": "=",
+          "text": "100%",
+          "value": "null"
+        }
+      ],
+      "valueName": "current"
+    },
+    {
+      "cacheTimeout": null,
       "colorBackground": false,
       "colorValue": false,
       "colors": [
@@ -50,9 +133,9 @@
         "thresholdMarkers": true
       },
       "gridPos": {
-        "h": 6,
+        "h": 3,
         "w": 3,
-        "x": 0,
+        "x": 4,
         "y": 1
       },
       "hideTimeOverride": true,
@@ -134,9 +217,9 @@
         "thresholdMarkers": true
       },
       "gridPos": {
-        "h": 6,
+        "h": 3,
         "w": 3,
-        "x": 3,
+        "x": 7,
         "y": 1
       },
       "hideTimeOverride": true,
@@ -194,7 +277,7 @@
       "valueMaps": [
         {
           "op": "=",
-          "text": "N/A",
+          "text": "0",
           "value": "null"
         }
       ],
@@ -219,9 +302,9 @@
         "thresholdMarkers": true
       },
       "gridPos": {
-        "h": 6,
+        "h": 3,
         "w": 3,
-        "x": 6,
+        "x": 10,
         "y": 1
       },
       "hideTimeOverride": true,
@@ -286,99 +369,16 @@
       "valueName": "current"
     },
     {
-      "cacheTimeout": null,
-      "colorBackground": true,
-      "colorValue": false,
-      "colors": [
-        "#d44a3a",
-        "rgba(237, 129, 40, 0.89)",
-        "#299c46"
-      ],
-      "datasource": null,
-      "format": "percentunit",
-      "gauge": {
-        "maxValue": 100,
-        "minValue": 0,
-        "show": false,
-        "thresholdLabels": false,
-        "thresholdMarkers": true
-      },
-      "gridPos": {
-        "h": 6,
-        "w": 3,
-        "x": 9,
-        "y": 1
-      },
-      "hideTimeOverride": true,
-      "id": 13,
-      "interval": null,
-      "links": [],
-      "mappingType": 1,
-      "mappingTypes": [
-        {
-          "name": "value to text",
-          "value": 1
-        },
-        {
-          "name": "range to text",
-          "value": 2
-        }
-      ],
-      "maxDataPoints": 100,
-      "nullPointMode": "connected",
-      "nullText": null,
-      "postfix": "",
-      "postfixFontSize": "50%",
-      "prefix": "",
-      "prefixFontSize": "50%",
-      "rangeMaps": [
-        {
-          "from": "null",
-          "text": "N/A",
-          "to": "null"
-        }
-      ],
-      "sparkline": {
-        "fillColor": "rgba(31, 118, 189, 0.18)",
-        "full": false,
-        "lineColor": "rgb(31, 120, 193)",
-        "show": false
-      },
-      "tableColumn": "",
-      "targets": [
-        {
-          "expr": "1 - sum(compute_instance_create_error_host_doc_count{environment=\"$environment\"}) / sum(compute_instance_create_start_host_doc_count{environment=\"$environment\"})",
-          "format": "time_series",
-          "intervalFactor": 1,
-          "legendFormat": "",
-          "refId": "A"
-        }
-      ],
-      "thresholds": "0.5,0.8",
-      "timeFrom": "30s",
-      "title": "VM creation success",
-      "type": "singlestat",
-      "valueFontSize": "80%",
-      "valueMaps": [
-        {
-          "op": "=",
-          "text": "100%",
-          "value": "null"
-        }
-      ],
-      "valueName": "current"
-    },
-    {
       "collapsed": false,
       "gridPos": {
         "h": 1,
         "w": 24,
         "x": 0,
-        "y": 7
+        "y": 4
       },
       "id": 15,
       "panels": [],
-      "title": "Daily (measured over the last 24h)",
+      "title": "Daily instance provisioning (24h)",
       "type": "row"
     },
     {
@@ -392,7 +392,7 @@
         "h": 8,
         "w": 24,
         "x": 0,
-        "y": 8
+        "y": 5
       },
       "id": 8,
       "legend": {
@@ -532,7 +532,7 @@
       "thresholds": [],
       "timeFrom": null,
       "timeShift": null,
-      "title": "VM instances",
+      "title": "Number of created VMs",
       "tooltip": {
         "shared": true,
         "sort": 0,
@@ -552,7 +552,7 @@
           "label": null,
           "logBase": 1,
           "max": null,
-          "min": null,
+          "min": "0",
           "show": true
         },
         {
@@ -580,7 +580,7 @@
         "h": 8,
         "w": 24,
         "x": 0,
-        "y": 16
+        "y": 13
       },
       "id": 3,
       "legend": {
@@ -656,7 +656,7 @@
       "thresholds": [],
       "timeFrom": null,
       "timeShift": null,
-      "title": "VM creation success",
+      "title": "KPI 1 - VM provisioning %",
       "tooltip": {
         "shared": true,
         "sort": 0,
@@ -672,11 +672,12 @@
       },
       "yaxes": [
         {
+          "decimals": 1,
           "format": "percentunit",
           "label": null,
           "logBase": 1,
-          "max": null,
-          "min": null,
+          "max": "1",
+          "min": "0",
           "show": true
         },
         {
@@ -752,7 +753,7 @@
     ]
   },
   "timezone": "",
-  "title": "Provisioning KPI",
-  "version": 1
+  "title": "KPI - Provisioning",
+  "version": 2
 }
 {%- endraw %}
diff --git a/metadata/service/client/dashboards/all.yml b/metadata/service/client/dashboards/all.yml
index 28b2271..885fcab 100644
--- a/metadata/service/client/dashboards/all.yml
+++ b/metadata/service/client/dashboards/all.yml
@@ -37,8 +37,8 @@
 - service.grafana.client.dashboards.stacklight.influxdb
 - service.grafana.client.dashboards.stacklight.kibana
 - service.grafana.client.dashboards.stacklight.kpi_downtime
+- service.grafana.client.dashboards.stacklight.kpi_provisioning
 - service.grafana.client.dashboards.stacklight.prometheus
 - service.grafana.client.dashboards.stacklight.prometheus_relay
-- service.grafana.client.dashboards.stacklight.provisioning_kpi
 - service.grafana.client.dashboards.stacklight.pushgateway
 - service.grafana.client.dashboards.stacklight.remote_storage_adapter
diff --git a/metadata/service/client/dashboards/stacklight/kpi_provisioning.yml b/metadata/service/client/dashboards/stacklight/kpi_provisioning.yml
new file mode 100644
index 0000000..8d85b8c
--- /dev/null
+++ b/metadata/service/client/dashboards/stacklight/kpi_provisioning.yml
@@ -0,0 +1,8 @@
+parameters:
+  grafana:
+    client:
+      dashboard:
+        kpi_provisioning_prometheus:
+          datasource: prometheus
+          format: json
+          template: grafana/files/dashboards/prometheus/kpi_provisioning_prometheus.json
diff --git a/metadata/service/client/dashboards/stacklight/provisioning_kpi.yml b/metadata/service/client/dashboards/stacklight/provisioning_kpi.yml
deleted file mode 100644
index b71f38b..0000000
--- a/metadata/service/client/dashboards/stacklight/provisioning_kpi.yml
+++ /dev/null
@@ -1,8 +0,0 @@
-parameters:
-  grafana:
-    client:
-      dashboard:
-        provisioning_kpi_prometheus:
-          datasource: prometheus
-          format: json
-          template: grafana/files/dashboards/prometheus/provisioning_kpi_prometheus.json