apiVersion: v1
data:
  assisted-installer.json: |-
    {
      "annotations": {
        "list": [
          {
            "builtIn": 1,
            "datasource": "-- Grafana --",
            "enable": true,
            "hide": true,
            "iconColor": "rgba(0, 211, 255, 1)",
            "name": "Annotations & Alerts",
            "type": "dashboard"
          }
        ]
      },
      "editable": true,
      "gnetId": null,
      "graphTooltip": 0,
      "iteration": 1609836796310,
      "links": [],
      "panels": [
        {
          "collapsed": false,
          "datasource": null,
          "gridPos": {
            "h": 1,
            "w": 24,
            "x": 0,
            "y": 0
          },
          "id": 30,
          "panels": [],
          "title": "All Clusters & Hosts",
          "type": "row"
        },
        {
          "aliasColors": {
            "Created clusters": "blue",
            "Installation canceled": "yellow",
            "Installation completed successfully": "green",
            "Installation error": "red",
            "Installation started": "orange"
          },
          "bars": true,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "links": []
            },
            "overrides": []
          },
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 10,
            "w": 10,
            "x": 0,
            "y": 1
          },
          "hiddenSeries": false,
          "id": 14,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": true,
            "max": false,
            "min": false,
            "rightSide": true,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": false,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "7.2.1",
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "increase(sum(service_assisted_installer_cluster_creations{clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\"})[$__range:$__rate_interval])",
              "hide": false,
              "interval": "",
              "legendFormat": "Created clusters",
              "refId": "A"
            },
            {
              "expr": "increase(count(http_request_duration_seconds_count{endpoint=\"assisted-svc\",handler=\"/api/assisted-install/v1/clusters/{cluster_id}/downloads/image\",method=\"POST\"} * on(clusterId) group_left() count by (clusterId)(service_assisted_installer_cluster_creations{clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\",emailDomain=~\".+\"}))[$__range:$__rate_interval])",
              "interval": "",
              "legendFormat": "ISO generated",
              "refId": "F"
            },
            {
              "expr": "increase(sum(service_assisted_installer_cluster_installation_started{clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\"})[$__range:$__rate_interval])",
              "hide": false,
              "interval": "",
              "legendFormat": "Installation started",
              "refId": "B"
            },
            {
              "expr": "increase(sum(service_assisted_installer_cluster_installation_seconds_count{clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\", result=\"installed\"})[$__range:$__rate_interval])",
              "hide": false,
              "instant": true,
              "interval": "",
              "legendFormat": "Installation completed successfully",
              "refId": "C"
            },
            {
              "expr": "increase(sum(service_assisted_installer_cluster_installation_seconds_count{clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\", result=\"error\"})[$__range:$__rate_interval])",
              "interval": "",
              "legendFormat": "Installation error",
              "refId": "D"
            },
            {
              "expr": "increase(sum(service_assisted_installer_cluster_installation_seconds_count{clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\", result=\"canceled\"})[$__range:$__rate_interval])",
              "hide": false,
              "interval": "",
              "legendFormat": "Installation canceled",
              "refId": "E"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Installations results",
          "tooltip": {
            "shared": false,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "series",
            "name": null,
            "show": false,
            "values": [
              "current"
            ]
          },
          "yaxes": [
            {
              "format": "short",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "short",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "datasource": "$datasource",
          "description": "* _Clusters_: We measure clusters count only for those ever started an install process at least once.\n\n* _Hosts_: We measure hosts count only if those belong to the clusters we measure as described above.",
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  }
                ]
              }
            },
            "overrides": []
          },
          "gridPos": {
            "h": 4,
            "w": 8,
            "x": 10,
            "y": 1
          },
          "id": 25,
          "options": {
            "colorMode": "value",
            "graphMode": "none",
            "justifyMode": "center",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "auto"
          },
          "pluginVersion": "7.2.1",
          "targets": [
            {
              "expr": "increase(sum(service_assisted_installer_cluster_hosts{clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\"} * on(clusterId) group_left() count by (clusterId)(service_assisted_installer_cluster_installation_started{clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\"}))[$__range:$__rate_interval])",
              "interval": "",
              "legendFormat": "Hosts",
              "refId": "C"
            },
            {
              "expr": "increase(count(count by (clusterId)(service_assisted_installer_cluster_installation_started{openshiftVersion=~\"$OpenShift_Version\"}))[$__range:$__rate_interval])",
              "hide": false,
              "interval": "",
              "legendFormat": "Clusters",
              "refId": "E"
            },
            {
              "expr": "(increase(sum(service_assisted_installer_cluster_hosts{clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\"} * on(clusterId) group_left() count by (clusterId)(service_assisted_installer_cluster_installation_started{clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\"}))[$__range:$__rate_interval]) + 1) / (increase(count(count by (clusterId)(service_assisted_installer_cluster_installation_started{openshiftVersion=~\"$OpenShift_Version\"}))[$__range:$__rate_interval]))",
              "hide": false,
              "instant": false,
              "interval": "",
              "legendFormat": "Average",
              "refId": "F"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Average Hosts Per Cluster",
          "type": "stat"
        },
        {
          "aliasColors": {
            "canceled": "#FADE2A",
            "error": "#F2495C",
            "installed": "#73BF69"
          },
          "breakPoint": "50%",
          "cacheTimeout": null,
          "combine": {
            "label": "Others",
            "threshold": 0
          },
          "datasource": "$datasource",
          "fieldConfig": {
            "defaults": {
              "custom": {}
            },
            "overrides": []
          },
          "fontSize": "80%",
          "format": "short",
          "gridPos": {
            "h": 10,
            "w": 6,
            "x": 18,
            "y": 1
          },
          "id": 39,
          "interval": null,
          "legend": {
            "percentage": true,
            "show": true,
            "sideWidth": null,
            "sort": "current",
            "sortDesc": false,
            "values": true
          },
          "legendType": "Under graph",
          "links": [],
          "nullPointMode": "connected",
          "pieType": "pie",
          "pluginVersion": "6.6.2",
          "strokeWidth": 1,
          "targets": [
            {
              "expr": "increase(sum by (result)(service_assisted_installer_cluster_installation_seconds_count{clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\"})[$__range:$__rate_interval])",
              "hide": false,
              "interval": "",
              "legendFormat": "{{result}}",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Installations success rate",
          "type": "grafana-piechart-panel",
          "valueName": "current"
        },
        {
          "datasource": null,
          "fieldConfig": {
            "defaults": {
              "custom": {}
            },
            "overrides": []
          },
          "gridPos": {
            "h": 3,
            "w": 8,
            "x": 10,
            "y": 5
          },
          "id": 38,
          "options": {
            "content": "* _Clusters_: We measure clusters count only for those ever started an install process at least once.\n\n* _Hosts_: We measure hosts count only if those belong to the clusters we measure as described above.",
            "mode": "markdown"
          },
          "pluginVersion": "7.1.0",
          "timeFrom": null,
          "timeShift": null,
          "title": "",
          "type": "text"
        },
        {
          "datasource": "$datasource",
          "description": "",
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "decimals": 3,
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  }
                ]
              },
              "unit": "none"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 3,
            "w": 4,
            "x": 10,
            "y": 8
          },
          "id": 40,
          "options": {
            "colorMode": "value",
            "graphMode": "none",
            "justifyMode": "center",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "value"
          },
          "pluginVersion": "7.2.1",
          "targets": [
            {
              "expr": "increase(count(count by (clusterId)(service_assisted_installer_cluster_installation_started{openshiftVersion=~\"$OpenShift_Version\"}))[$__range:$__rate_interval])",
              "hide": true,
              "interval": "",
              "legendFormat": "Clusters",
              "refId": "E"
            },
            {
              "expr": "increase(sum(service_assisted_installer_cluster_installation_started{clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\"})[$__range:$__rate_interval])",
              "hide": true,
              "interval": "",
              "legendFormat": "attempts",
              "refId": "A"
            },
            {
              "expr": "increase(sum(service_assisted_installer_cluster_installation_started{clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\"})[$__range:$__rate_interval]) / increase(count(count by (clusterId)(service_assisted_installer_cluster_installation_started{openshiftVersion=~\"$OpenShift_Version\"}))[$__range:$__rate_interval])",
              "hide": false,
              "interval": "",
              "legendFormat": "avg",
              "refId": "B"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Average Install Attempts Per  Cluster",
          "type": "stat"
        },
        {
          "datasource": "$datasource",
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "displayName": "",
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "percentunit"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 3,
            "w": 4,
            "x": 14,
            "y": 8
          },
          "id": 41,
          "options": {
            "colorMode": "value",
            "graphMode": "none",
            "justifyMode": "auto",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "last"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "auto"
          },
          "pluginVersion": "7.2.1",
          "targets": [
            {
              "expr": "increase(count(count by (clusterId)(service_assisted_installer_cluster_installation_started{openshiftVersion=~\"$OpenShift_Version\"}))[$__range:$__rate_interval]) / increase(sum(service_assisted_installer_cluster_creations{clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\"})[$__range:$__rate_interval])",
              "interval": "",
              "legendFormat": "",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Creation vs Installation rate",
          "type": "stat"
        },
        {
          "aliasColors": {},
          "bars": true,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "links": []
            },
            "overrides": []
          },
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 5,
            "w": 10,
            "x": 0,
            "y": 11
          },
          "hiddenSeries": false,
          "id": 2,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": true,
            "max": false,
            "min": false,
            "rightSide": true,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": false,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "7.2.1",
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "increase(sum by (phase)(service_assisted_installer_host_installation_phase_seconds_sum{clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\",result=\"Done\"})[$__range:$__rate_interval]) / increase(sum by (phase)(service_assisted_installer_host_installation_phase_seconds_count{clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\",result=\"Done\"})[$__range:$__rate_interval])",
              "hide": false,
              "interval": "",
              "legendFormat": "{{phase}}",
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Average Phases duration (successful)",
          "tooltip": {
            "shared": false,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "max": null,
            "min": null,
            "mode": "series",
            "name": null,
            "show": false,
            "values": [
              "current"
            ]
          },
          "yaxes": [
            {
              "format": "s",
              "label": "Count",
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": true,
          "cacheTimeout": null,
          "dashLength": 10,
          "dashes": false,
          "datasource": "app-sre-prod-04-prometheus",
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              }
            },
            "overrides": []
          },
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 5,
            "w": 14,
            "x": 10,
            "y": 11
          },
          "hiddenSeries": false,
          "id": 61,
          "interval": null,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": true,
            "max": false,
            "min": false,
            "rightSide": true,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": false,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "7.2.1",
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "increase(count by (emailDomain)(service_assisted_installer_cluster_installation_started{openshiftVersion=~\"$OpenShift_Version\",emailDomain=~\".+\"})[$__range:$__rate_interval]) + 1",
              "interval": "",
              "legendFormat": "{{emailDomain}}",
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Cluster Count by emailDomain",
          "tooltip": {
            "shared": false,
            "sort": 2,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "series",
            "name": null,
            "show": true,
            "values": [
              "current"
            ]
          },
          "yaxes": [
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": true,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "links": []
            },
            "overrides": []
          },
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 5,
            "w": 10,
            "x": 0,
            "y": 16
          },
          "hiddenSeries": false,
          "id": 15,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": true,
            "max": false,
            "min": false,
            "rightSide": true,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": false,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "7.2.1",
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "increase(sum by (role)(service_assisted_installer_cluster_hosts{clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\", result=\"Failed\"})[$__range:$__rate_interval])",
              "interval": "",
              "legendFormat": "{{role}}",
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Hosts failures by role",
          "tooltip": {
            "shared": false,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "max": null,
            "min": null,
            "mode": "series",
            "name": null,
            "show": true,
            "values": [
              "current"
            ]
          },
          "yaxes": [
            {
              "format": "failues",
              "label": "Count",
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "breakPoint": "50%",
          "cacheTimeout": null,
          "combine": {
            "label": "Others",
            "threshold": 0
          },
          "datasource": "$datasource",
          "fieldConfig": {
            "defaults": {
              "custom": {}
            },
            "overrides": []
          },
          "fontSize": "80%",
          "format": "short",
          "gridPos": {
            "h": 5,
            "w": 14,
            "x": 10,
            "y": 16
          },
          "id": 31,
          "interval": null,
          "legend": {
            "percentage": true,
            "show": true,
            "sideWidth": null,
            "sort": "current",
            "sortDesc": false,
            "values": true
          },
          "legendType": "Right side",
          "links": [],
          "nullPointMode": "connected",
          "pieType": "pie",
          "pluginVersion": "6.6.2",
          "strokeWidth": 1,
          "targets": [
            {
              "expr": "increase(sum by (vendor,product)(service_assisted_installer_cluster_hosts{clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\"} * on(clusterId) group_left() count by (clusterId)(service_assisted_installer_cluster_installation_started{clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\"}))[$__range:$__rate_interval])",
              "hide": false,
              "interval": "",
              "legendFormat": "{{vendor}} {{product}}",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Hosts By Vendor",
          "type": "grafana-piechart-panel",
          "valueName": "current"
        },
        {
          "collapsed": false,
          "datasource": null,
          "gridPos": {
            "h": 1,
            "w": 24,
            "x": 0,
            "y": 21
          },
          "id": 35,
          "panels": [],
          "title": "Internal Clusters & Hosts",
          "type": "row"
        },
        {
          "aliasColors": {
            "Created clusters": "blue",
            "Installation canceled": "yellow",
            "Installation completed successfully": "green",
            "Installation error": "red",
            "Installation started": "orange"
          },
          "bars": true,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "links": []
            },
            "overrides": []
          },
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 10,
            "w": 10,
            "x": 0,
            "y": 22
          },
          "hiddenSeries": false,
          "id": 36,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": true,
            "max": false,
            "min": false,
            "rightSide": true,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": false,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "7.2.1",
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "increase(sum(service_assisted_installer_cluster_creations{emailDomain=~\".*redhat.com.*|.*ibm.com.*\",clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\"})[$__range:$__rate_interval])",
              "hide": false,
              "interval": "",
              "legendFormat": "Created clusters",
              "refId": "A"
            },
            {
              "expr": "increase(count(http_request_duration_seconds_count{endpoint=\"assisted-svc\",handler=\"/api/assisted-install/v1/clusters/{cluster_id}/downloads/image\",method=\"POST\"} * on(clusterId) group_left() count by (clusterId)(service_assisted_installer_cluster_creations{clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\",emailDomain=~\".*redhat.com.*|.*ibm.com.*\",emailDomain=~\".+\"}))[$__range:$__rate_interval])",
              "interval": "",
              "legendFormat": "ISO generated",
              "refId": "F"
            },
            {
              "expr": "increase(sum(service_assisted_installer_cluster_installation_started{emailDomain=~\".*redhat.com.*|.*ibm.com.*\",clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\"})[$__range:$__rate_interval])",
              "hide": false,
              "interval": "",
              "legendFormat": "Installation started",
              "refId": "B"
            },
            {
              "expr": "increase(sum(service_assisted_installer_cluster_installation_seconds_count{emailDomain=~\".*redhat.com.*|.*ibm.com.*\",clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\", result=\"installed\"})[$__range:$__rate_interval])",
              "hide": false,
              "instant": true,
              "interval": "",
              "legendFormat": "Installation completed successfully",
              "refId": "C"
            },
            {
              "expr": "increase(sum(service_assisted_installer_cluster_installation_seconds_count{emailDomain=~\".*redhat.com.*|.*ibm.com.*\",clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\", result=\"error\"})[$__range:$__rate_interval])",
              "interval": "",
              "legendFormat": "Installation error",
              "refId": "D"
            },
            {
              "expr": "increase(sum(service_assisted_installer_cluster_installation_seconds_count{emailDomain=~\".*redhat.com.*|.*ibm.com.*\",clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\", result=\"canceled\"})[$__range:$__rate_interval])",
              "hide": false,
              "interval": "",
              "legendFormat": "Installation canceled",
              "refId": "E"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Installations results",
          "tooltip": {
            "shared": false,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "series",
            "name": null,
            "show": false,
            "values": [
              "current"
            ]
          },
          "yaxes": [
            {
              "format": "short",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "short",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "datasource": "$datasource",
          "description": "* _Clusters_: We measure clusters count only for those ever started an install process at least once.\n\n* _Hosts_: We measure hosts count only if those belong to the clusters we measure as described above.",
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  }
                ]
              }
            },
            "overrides": []
          },
          "gridPos": {
            "h": 4,
            "w": 8,
            "x": 10,
            "y": 22
          },
          "id": 37,
          "options": {
            "colorMode": "value",
            "graphMode": "none",
            "justifyMode": "center",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "auto"
          },
          "pluginVersion": "7.2.1",
          "targets": [
            {
              "expr": "increase(sum(service_assisted_installer_cluster_hosts{emailDomain=~\".*redhat.com.*|.*ibm.com.*\",clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\"} * on(clusterId) group_left() count by (clusterId)(service_assisted_installer_cluster_installation_started{emailDomain=~\".*redhat.com.*|.*ibm.com.*\",clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\"}))[$__range:$__rate_interval])",
              "interval": "",
              "legendFormat": "Hosts",
              "refId": "C"
            },
            {
              "expr": "increase(count(count by (clusterId)(service_assisted_installer_cluster_installation_started{openshiftVersion=~\"$OpenShift_Version\",emailDomain=~\".*redhat.com.*|.*ibm.com.*\"}))[$__range:$__rate_interval])",
              "hide": false,
              "interval": "",
              "legendFormat": "Clusters",
              "refId": "E"
            },
            {
              "expr": "(increase(sum(service_assisted_installer_cluster_hosts{emailDomain=~\".*redhat.com.*|.*ibm.com.*\",clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\"} * on(clusterId) group_left() count by (clusterId)(service_assisted_installer_cluster_installation_started{emailDomain=~\".*redhat.com.*|.*ibm.com.*\",clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\"}))[$__range:$__rate_interval]) + 1) / (increase(count(count by (clusterId)(service_assisted_installer_cluster_installation_started{openshiftVersion=~\"$OpenShift_Version\",emailDomain=~\".*redhat.com.*|.*ibm.com.*\",}))[$__range:$__rate_interval]))",
              "hide": false,
              "instant": false,
              "interval": "",
              "legendFormat": "Average",
              "refId": "F"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Average Hosts Per Cluster",
          "type": "stat"
        },
        {
          "aliasColors": {
            "canceled": "#FADE2A",
            "error": "#F2495C",
            "installed": "#73BF69"
          },
          "breakPoint": "50%",
          "cacheTimeout": null,
          "combine": {
            "label": "Others",
            "threshold": 0
          },
          "datasource": "$datasource",
          "fieldConfig": {
            "defaults": {
              "custom": {}
            },
            "overrides": []
          },
          "fontSize": "80%",
          "format": "short",
          "gridPos": {
            "h": 10,
            "w": 6,
            "x": 18,
            "y": 22
          },
          "id": 18,
          "interval": null,
          "legend": {
            "percentage": true,
            "show": true,
            "sideWidth": null,
            "sort": "current",
            "sortDesc": false,
            "values": true
          },
          "legendType": "Under graph",
          "links": [],
          "nullPointMode": "connected",
          "pieType": "pie",
          "pluginVersion": "6.6.2",
          "strokeWidth": 1,
          "targets": [
            {
              "expr": "increase(sum by (result)(service_assisted_installer_cluster_installation_seconds_count{emailDomain=~\".*redhat.com.*|.*ibm.com.*\",clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\"})[$__range:$__rate_interval])",
              "hide": false,
              "interval": "",
              "legendFormat": "{{result}}",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Installations success rate",
          "type": "grafana-piechart-panel",
          "valueName": "current"
        },
        {
          "datasource": null,
          "fieldConfig": {
            "defaults": {
              "custom": {}
            },
            "overrides": []
          },
          "gridPos": {
            "h": 3,
            "w": 8,
            "x": 10,
            "y": 26
          },
          "id": 56,
          "options": {
            "content": "* _Clusters_: We measure clusters count only for those ever started an install process at least once.\n\n* _Hosts_: We measure hosts count only if those belong to the clusters we measure as described above.",
            "mode": "markdown"
          },
          "pluginVersion": "7.1.0",
          "timeFrom": null,
          "timeShift": null,
          "title": "",
          "type": "text"
        },
        {
          "datasource": "$datasource",
          "description": "",
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "decimals": 3,
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  }
                ]
              },
              "unit": "none"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 3,
            "w": 4,
            "x": 10,
            "y": 29
          },
          "id": 26,
          "options": {
            "colorMode": "value",
            "graphMode": "none",
            "justifyMode": "center",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "value"
          },
          "pluginVersion": "7.2.1",
          "targets": [
            {
              "expr": "increase(count(count by (clusterId)(service_assisted_installer_cluster_installation_started{openshiftVersion=~\"$OpenShift_Version\",emailDomain=~\".*redhat.com.*|.*ibm.com.*\"}))[$__range:$__rate_interval])",
              "hide": true,
              "interval": "",
              "legendFormat": "Clusters",
              "refId": "E"
            },
            {
              "expr": "increase(sum(service_assisted_installer_cluster_installation_started{emailDomain=~\".*redhat.com.*|.*ibm.com.*\",clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\"})[$__range:$__rate_interval])",
              "hide": true,
              "interval": "",
              "legendFormat": "attempts",
              "refId": "A"
            },
            {
              "expr": "increase(sum(service_assisted_installer_cluster_installation_started{emailDomain=~\".*redhat.com.*|.*ibm.com.*\",clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\"})[$__range:$__rate_interval]) / increase(count(count by (clusterId)(service_assisted_installer_cluster_installation_started{openshiftVersion=~\"$OpenShift_Version\",emailDomain=~\".*redhat.com.*|.*ibm.com.*\"}))[$__range:$__rate_interval])",
              "hide": false,
              "interval": "",
              "legendFormat": "avg",
              "refId": "B"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Average Install Attempts Per  Cluster",
          "type": "stat"
        },
        {
          "datasource": "$datasource",
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "displayName": "",
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "percentunit"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 3,
            "w": 4,
            "x": 14,
            "y": 29
          },
          "id": 17,
          "options": {
            "colorMode": "value",
            "graphMode": "none",
            "justifyMode": "auto",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "last"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "auto"
          },
          "pluginVersion": "7.2.1",
          "targets": [
            {
              "expr": "increase(count(count by (clusterId)(service_assisted_installer_cluster_installation_started{openshiftVersion=~\"$OpenShift_Version\",emailDomain=~\".*redhat.com.*|.*ibm.com.*\"}))[$__range:$__rate_interval]) / increase(sum(service_assisted_installer_cluster_creations{emailDomain=~\".*redhat.com.*|.*ibm.com.*\",clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\"})[$__range:$__rate_interval])",
              "interval": "",
              "legendFormat": "",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Creation vs Installation rate",
          "type": "stat"
        },
        {
          "aliasColors": {},
          "bars": true,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "links": []
            },
            "overrides": []
          },
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 5,
            "w": 10,
            "x": 0,
            "y": 32
          },
          "hiddenSeries": false,
          "id": 44,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": true,
            "max": false,
            "min": false,
            "rightSide": true,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": false,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "7.2.1",
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "increase(sum by (phase)(service_assisted_installer_host_installation_phase_seconds_sum{clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\",emailDomain=~\".*redhat.com.*|.*ibm.com.*\",result=\"Done\"})[$__range:$__rate_interval]) / increase(sum by (phase)(service_assisted_installer_host_installation_phase_seconds_count{clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\",emailDomain=~\".*redhat.com.*|.*ibm.com.*\",result=\"Done\"})[$__range:$__rate_interval])",
              "hide": false,
              "interval": "",
              "legendFormat": "{{phase}}",
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Average Phases duration (successful)",
          "tooltip": {
            "shared": false,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "max": null,
            "min": null,
            "mode": "series",
            "name": null,
            "show": false,
            "values": [
              "current"
            ]
          },
          "yaxes": [
            {
              "format": "s",
              "label": "Count",
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "breakPoint": "50%",
          "cacheTimeout": null,
          "combine": {
            "label": "Others",
            "threshold": 0
          },
          "datasource": "$datasource",
          "fieldConfig": {
            "defaults": {
              "custom": {}
            },
            "overrides": []
          },
          "fontSize": "80%",
          "format": "short",
          "gridPos": {
            "h": 10,
            "w": 14,
            "x": 10,
            "y": 32
          },
          "id": 53,
          "interval": null,
          "legend": {
            "percentage": true,
            "show": true,
            "sideWidth": null,
            "sort": "current",
            "sortDesc": false,
            "values": true
          },
          "legendType": "Right side",
          "links": [],
          "nullPointMode": "connected",
          "pieType": "pie",
          "pluginVersion": "6.6.2",
          "strokeWidth": 1,
          "targets": [
            {
              "expr": "increase(sum by (vendor,product)(service_assisted_installer_cluster_hosts{emailDomain=~\".*redhat.com.*|.*ibm.com.*\",clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\"} * on(clusterId) group_left() count by (clusterId)(service_assisted_installer_cluster_installation_started{emailDomain=~\".*redhat.com.*|.*ibm.com.*\",clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\"}))[$__range:$__rate_interval])",
              "hide": false,
              "interval": "",
              "legendFormat": "{{vendor}} {{product}}",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Hosts By Vendor",
          "type": "grafana-piechart-panel",
          "valueName": "current"
        },
        {
          "aliasColors": {},
          "bars": true,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "links": []
            },
            "overrides": []
          },
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 5,
            "w": 10,
            "x": 0,
            "y": 37
          },
          "hiddenSeries": false,
          "id": 45,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": true,
            "max": false,
            "min": false,
            "rightSide": true,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": false,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "7.2.1",
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "increase(sum by (role)(service_assisted_installer_cluster_hosts{clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\",emailDomain=~\".*redhat.com.*|.*ibm.com.*\", result=\"Failed\"})[$__range:$__rate_interval])",
              "interval": "",
              "legendFormat": "{{role}}",
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Hosts failures by role",
          "tooltip": {
            "shared": false,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "max": null,
            "min": null,
            "mode": "series",
            "name": null,
            "show": true,
            "values": [
              "current"
            ]
          },
          "yaxes": [
            {
              "format": "failues",
              "label": "Count",
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "collapsed": false,
          "datasource": null,
          "gridPos": {
            "h": 1,
            "w": 24,
            "x": 0,
            "y": 42
          },
          "id": 50,
          "panels": [],
          "title": "External Clusters & Hosts",
          "type": "row"
        },
        {
          "aliasColors": {
            "Created clusters": "blue",
            "Installation canceled": "yellow",
            "Installation completed successfully": "green",
            "Installation error": "red",
            "Installation started": "orange"
          },
          "bars": true,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "links": []
            },
            "overrides": []
          },
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 10,
            "w": 10,
            "x": 0,
            "y": 43
          },
          "hiddenSeries": false,
          "id": 54,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": true,
            "max": false,
            "min": false,
            "rightSide": true,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": false,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "7.2.1",
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "increase(sum(service_assisted_installer_cluster_creations{emailDomain!~\".*redhat.com.*|.*ibm.com.*\",emailDomain=~\".+\",clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\"})[$__range:$__rate_interval])",
              "hide": false,
              "interval": "",
              "legendFormat": "Created clusters",
              "refId": "A"
            },
            {
              "expr": "increase(count(http_request_duration_seconds_count{endpoint=\"assisted-svc\",handler=\"/api/assisted-install/v1/clusters/{cluster_id}/downloads/image\",method=\"POST\"} * on(clusterId) group_left() count by (clusterId)(service_assisted_installer_cluster_creations{clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\",emailDomain!~\".*redhat.com.*|.*ibm.com.*\",emailDomain=~\".+\"}))[$__range:$__rate_interval])",
              "interval": "",
              "legendFormat": "ISO generated",
              "refId": "F"
            },
            {
              "expr": "increase(sum(service_assisted_installer_cluster_installation_started{emailDomain!~\".*redhat.com.*|.*ibm.com.*\",emailDomain=~\".+\",clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\"})[$__range:$__rate_interval])",
              "hide": false,
              "interval": "",
              "legendFormat": "Installation started",
              "refId": "B"
            },
            {
              "expr": "increase(sum(service_assisted_installer_cluster_installation_seconds_count{emailDomain!~\".*redhat.com.*|.*ibm.com.*\",emailDomain=~\".+\",clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\", result=\"installed\"})[$__range:$__rate_interval])",
              "hide": false,
              "instant": true,
              "interval": "",
              "legendFormat": "Installation completed successfully",
              "refId": "C"
            },
            {
              "expr": "increase(sum(service_assisted_installer_cluster_installation_seconds_count{emailDomain!~\".*redhat.com.*|.*ibm.com.*\",emailDomain=~\".+\",clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\", result=\"error\"})[$__range:$__rate_interval])",
              "interval": "",
              "legendFormat": "Installation error",
              "refId": "D"
            },
            {
              "expr": "increase(sum(service_assisted_installer_cluster_installation_seconds_count{emailDomain!~\".*redhat.com.*|.*ibm.com.*\",emailDomain=~\".+\",clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\", result=\"canceled\"})[$__range:$__rate_interval])",
              "hide": false,
              "interval": "",
              "legendFormat": "Installation canceled",
              "refId": "E"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Installations results",
          "tooltip": {
            "shared": false,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "series",
            "name": null,
            "show": false,
            "values": [
              "current"
            ]
          },
          "yaxes": [
            {
              "format": "short",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "short",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "datasource": "$datasource",
          "description": "* _Clusters_: We measure clusters count only for those ever started an install process at least once.\n\n* _Hosts_: We measure hosts count only if those belong to the clusters we measure as described above.",
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  }
                ]
              }
            },
            "overrides": []
          },
          "gridPos": {
            "h": 4,
            "w": 8,
            "x": 10,
            "y": 43
          },
          "id": 55,
          "options": {
            "colorMode": "value",
            "graphMode": "none",
            "justifyMode": "center",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "auto"
          },
          "pluginVersion": "7.2.1",
          "targets": [
            {
              "expr": "increase(sum(service_assisted_installer_cluster_hosts{emailDomain!~\".*redhat.com.*|.*ibm.com.*\",emailDomain=~\".+\",clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\"} * on(clusterId) group_left() count by (clusterId)(service_assisted_installer_cluster_installation_started{emailDomain!~\".*redhat.com.*|.*ibm.com.*\",emailDomain=~\".+\",clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\"}))[$__range:$__rate_interval])",
              "interval": "",
              "legendFormat": "Hosts",
              "refId": "C"
            },
            {
              "expr": "increase(count(count by (clusterId)(service_assisted_installer_cluster_installation_started{openshiftVersion=~\"$OpenShift_Version\",emailDomain!~\".*redhat.com.*|.*ibm.com.*\",emailDomain=~\".+\",}))[$__range:$__rate_interval])",
              "hide": false,
              "interval": "",
              "legendFormat": "Clusters",
              "refId": "E"
            },
            {
              "expr": "(increase(sum(service_assisted_installer_cluster_hosts{emailDomain!~\".*redhat.com.*|.*ibm.com.*\",emailDomain=~\".+\",clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\"} * on(clusterId) group_left() count by (clusterId)(service_assisted_installer_cluster_installation_started{emailDomain!~\".*redhat.com.*|.*ibm.com.*\",emailDomain=~\".+\",clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\"}))[$__range:$__rate_interval]) + 1) / (increase(count(count by (clusterId)(service_assisted_installer_cluster_installation_started{openshiftVersion=~\"$OpenShift_Version\",emailDomain!~\".*redhat.com.*|.*ibm.com.*\",emailDomain=~\".+\",}))[$__range:$__rate_interval]))",
              "hide": false,
              "instant": false,
              "interval": "",
              "legendFormat": "Average",
              "refId": "F"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Average Hosts Per Cluster",
          "type": "stat"
        },
        {
          "aliasColors": {
            "canceled": "#FADE2A",
            "error": "#F2495C",
            "installed": "#73BF69"
          },
          "breakPoint": "50%",
          "cacheTimeout": null,
          "combine": {
            "label": "Others",
            "threshold": 0
          },
          "datasource": "$datasource",
          "fieldConfig": {
            "defaults": {
              "custom": {}
            },
            "overrides": []
          },
          "fontSize": "80%",
          "format": "short",
          "gridPos": {
            "h": 10,
            "w": 6,
            "x": 18,
            "y": 43
          },
          "id": 59,
          "interval": null,
          "legend": {
            "percentage": true,
            "show": true,
            "sideWidth": null,
            "sort": "current",
            "sortDesc": false,
            "values": true
          },
          "legendType": "Under graph",
          "links": [],
          "nullPointMode": "connected",
          "pieType": "pie",
          "pluginVersion": "6.6.2",
          "strokeWidth": 1,
          "targets": [
            {
              "expr": "increase(sum by (result)(service_assisted_installer_cluster_installation_seconds_count{emailDomain!~\".*redhat.com.*|.*ibm.com.*\",emailDomain=~\".+\",clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\"})[$__range:$__rate_interval])",
              "hide": false,
              "interval": "",
              "legendFormat": "{{result}}",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Installations success rate",
          "type": "grafana-piechart-panel",
          "valueName": "current"
        },
        {
          "datasource": null,
          "fieldConfig": {
            "defaults": {
              "custom": {}
            },
            "overrides": []
          },
          "gridPos": {
            "h": 3,
            "w": 8,
            "x": 10,
            "y": 47
          },
          "id": 33,
          "options": {
            "content": "* _Clusters_: We measure clusters count only for those ever started an install process at least once.\n\n* _Hosts_: We measure hosts count only if those belong to the clusters we measure as described above.",
            "mode": "markdown"
          },
          "pluginVersion": "7.1.0",
          "timeFrom": null,
          "timeShift": null,
          "title": "",
          "type": "text"
        },
        {
          "datasource": "$datasource",
          "description": "",
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "decimals": 3,
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  }
                ]
              },
              "unit": "none"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 3,
            "w": 4,
            "x": 10,
            "y": 50
          },
          "id": 57,
          "options": {
            "colorMode": "value",
            "graphMode": "none",
            "justifyMode": "center",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "value"
          },
          "pluginVersion": "7.2.1",
          "targets": [
            {
              "expr": "increase(count(count by (clusterId)(service_assisted_installer_cluster_installation_started{emailDomain!~\".*redhat.com.*|.*ibm.com.*\",emailDomain=~\".+\",}))[$__range:$__rate_interval])",
              "hide": true,
              "interval": "",
              "legendFormat": "Clusters",
              "refId": "E"
            },
            {
              "expr": "increase(sum(service_assisted_installer_cluster_installation_started{emailDomain!~\".*redhat.com.*|.*ibm.com.*\",emailDomain=~\".+\",clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\"})[$__range:$__rate_interval])",
              "hide": true,
              "interval": "",
              "legendFormat": "attempts",
              "refId": "A"
            },
            {
              "expr": "increase(sum(service_assisted_installer_cluster_installation_started{emailDomain!~\".*redhat.com.*|.*ibm.com.*\",emailDomain=~\".+\",clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\"})[$__range:$__rate_interval]) / increase(count(count by (clusterId)(service_assisted_installer_cluster_installation_started{openshiftVersion=~\"$OpenShift_Version\",emailDomain!~\".*redhat.com.*|.*ibm.com.*\",emailDomain=~\".+\",}))[$__range:$__rate_interval])",
              "hide": false,
              "interval": "",
              "legendFormat": "avg",
              "refId": "B"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Average Install Attempts Per  Cluster",
          "type": "stat"
        },
        {
          "datasource": "$datasource",
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "displayName": "",
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "percentunit"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 3,
            "w": 4,
            "x": 14,
            "y": 50
          },
          "id": 58,
          "options": {
            "colorMode": "value",
            "graphMode": "none",
            "justifyMode": "auto",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "last"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "auto"
          },
          "pluginVersion": "7.2.1",
          "targets": [
            {
              "expr": "increase(count(count by (clusterId)(service_assisted_installer_cluster_installation_started{openshiftVersion=~\"$OpenShift_Version\",emailDomain!~\".*redhat.com.*|.*ibm.com.*\",emailDomain=~\".+\",}))[$__range:$__rate_interval]) / increase(sum(service_assisted_installer_cluster_creations{emailDomain!~\".*redhat.com.*|.*ibm.com.*\",clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\",emailDomain=~\".+\",})[$__range:$__rate_interval])",
              "interval": "",
              "legendFormat": "",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Creation vs Installation rate",
          "type": "stat"
        },
        {
          "aliasColors": {},
          "bars": true,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "links": []
            },
            "overrides": []
          },
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 5,
            "w": 10,
            "x": 0,
            "y": 53
          },
          "hiddenSeries": false,
          "id": 51,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": true,
            "max": false,
            "min": false,
            "rightSide": true,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": false,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "7.2.1",
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "increase(sum by (phase)(service_assisted_installer_host_installation_phase_seconds_sum{clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\",emailDomain!~\".*redhat.com.*|.*ibm.com.*\",emailDomain=~\".+\",result=\"Done\"})[$__range:$__rate_interval]) / increase(sum by (phase)(service_assisted_installer_host_installation_phase_seconds_count{clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\",emailDomain!~\".*redhat.com.*|.*ibm.com.*\",emailDomain=~\".+\",result=\"Done\"})[$__range:$__rate_interval])",
              "hide": false,
              "interval": "",
              "legendFormat": "{{phase}}",
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Average Phases duration (successful)",
          "tooltip": {
            "shared": false,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "max": null,
            "min": null,
            "mode": "series",
            "name": null,
            "show": false,
            "values": [
              "current"
            ]
          },
          "yaxes": [
            {
              "format": "s",
              "label": "Count",
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "breakPoint": "50%",
          "cacheTimeout": null,
          "combine": {
            "label": "Others",
            "threshold": 0
          },
          "datasource": "$datasource",
          "fieldConfig": {
            "defaults": {
              "custom": {}
            },
            "overrides": []
          },
          "fontSize": "80%",
          "format": "short",
          "gridPos": {
            "h": 10,
            "w": 14,
            "x": 10,
            "y": 53
          },
          "id": 46,
          "interval": null,
          "legend": {
            "percentage": true,
            "show": true,
            "sideWidth": null,
            "sort": "current",
            "sortDesc": false,
            "values": true
          },
          "legendType": "Right side",
          "links": [],
          "nullPointMode": "connected",
          "pieType": "pie",
          "pluginVersion": "6.6.2",
          "strokeWidth": 1,
          "targets": [
            {
              "expr": "increase(sum by (vendor,product)(service_assisted_installer_cluster_hosts{emailDomain!~\".*redhat.com.*|.*ibm.com.*\",emailDomain=~\".+\",clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\"} * on(clusterId) group_left() count by (clusterId)(service_assisted_installer_cluster_installation_started{emailDomain!~\".*redhat.com.*|.*ibm.com.*\",emailDomain=~\".+\",clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\"}))[$__range:$__rate_interval])",
              "hide": false,
              "interval": "",
              "legendFormat": "{{vendor}} {{product}}",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Hosts By Vendor",
          "type": "grafana-piechart-panel",
          "valueName": "current"
        },
        {
          "aliasColors": {},
          "bars": true,
          "dashLength": 10,
          "dashes": false,
          "datasource": "$datasource",
          "fieldConfig": {
            "defaults": {
              "custom": {},
              "links": []
            },
            "overrides": []
          },
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 5,
            "w": 10,
            "x": 0,
            "y": 58
          },
          "hiddenSeries": false,
          "id": 52,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": true,
            "max": false,
            "min": false,
            "rightSide": true,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": false,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "alertThreshold": true
          },
          "percentage": false,
          "pluginVersion": "7.2.1",
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "increase(sum by (role)(service_assisted_installer_cluster_hosts{clusterId=~\".+\", openshiftVersion=~\"$OpenShift_Version\",emailDomain!~\".*redhat.com.*|.*ibm.com.*\",emailDomain=~\".+\", result=\"Failed\"})[$__range:$__rate_interval])",
              "interval": "",
              "legendFormat": "{{role}}",
              "refId": "A"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Hosts failures by role",
          "tooltip": {
            "shared": false,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "max": null,
            "min": null,
            "mode": "series",
            "name": null,
            "show": true,
            "values": [
              "current"
            ]
          },
          "yaxes": [
            {
              "format": "failues",
              "label": "Count",
              "logBase": 1,
              "max": null,
              "min": "0",
              "show": true
            },
            {
              "format": "short",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        }
      ],
      "refresh": false,
      "schemaVersion": 26,
      "style": "dark",
      "tags": [],
      "templating": {
        "list": [
          {
            "current": {
              "selected": false,
              "text": "app-sre-prod-04-prometheus",
              "value": "app-sre-prod-04-prometheus"
            },
            "hide": 0,
            "includeAll": false,
            "label": null,
            "multi": false,
            "name": "datasource",
            "options": [],
            "query": "prometheus",
            "queryValue": "",
            "refresh": 1,
            "regex": "",
            "skipUrlSync": false,
            "type": "datasource"
          },
          {
            "current": {
              "selected": false,
              "text": ".*",
              "value": ".*"
            },
            "hide": 0,
            "label": "OpenShift_Version",
            "name": "OpenShift_Version",
            "options": [
              {
                "selected": true,
                "text": ".*",
                "value": ".*"
              }
            ],
            "query": ".*",
            "skipUrlSync": false,
            "type": "textbox"
          }
        ]
      },
      "time": {
        "from": "now-7d",
        "to": "now"
      },
      "timepicker": {
        "refresh_intervals": [
          "5s",
          "10s",
          "30s",
          "1m",
          "5m",
          "15m",
          "30m",
          "1h",
          "2h",
          "1d"
        ]
      },
      "timezone": "",
      "title": "General Overview",
      "uid": "assisted-installer-overview",
      "version": 1
    }
kind: ConfigMap
metadata:
  name: assisted-installer-general-overview
  labels:
    grafana_dashboard: "true"
  annotations:
    grafana-folder: /grafana-dashboard-definitions/AssistedInstaller
