apiVersion: v1
data:
  ocp4-powervs-scale.json: |-
    {
      "annotations": {
        "list": [
          {
            "builtIn": 1,
            "datasource": "-- Grafana --",
            "enable": true,
            "hide": true,
            "iconColor": "rgba(0, 211, 255, 1)",
            "name": "Annotations & Alerts",
            "type": "dashboard"
          }
        ]
      },
      "description": "Provides build health stats for each project_name in an org",
      "editable": true,
      "gnetId": 5786,
      "graphTooltip": 0,
      "iteration": 1618979835349,
      "links": [],
      "panels": [
        {
          "content": "",
          "datasource": null,
          "fieldConfig": {
            "defaults": {
              "custom": {}
            },
            "overrides": []
          },
          "gridPos": {
            "h": 3,
            "w": 9,
            "x": 0,
            "y": 0
          },
          "id": 163,
          "mode": "html",
          "options": {
            "content": "",
            "mode": "html"
          },
          "pluginVersion": "7.1.0",
          "timeFrom": null,
          "timeShift": null,
          "title": "Notice Board",
          "type": "text"
        },
        {
          "content": "<font color=\"#2AB608\" size=\"3\">NS</font>  <font size=\"3\"> --> Number of Namespaces created </font> <br />\n<font color=\"#2AB608\" size=\"3\">NS.R.Time</font>  <font size=\"3\"> --> Real time taken for creating Namespaces </font><br />\n<font color=\"#2AB608\" size=\"3\">DS</font>  <font size=\"3\"> --> Number of Deployments created </font><br />\n<font color=\"#2AB608\" size=\"3\">DS.R.Time</font>  <font size=\"3\"> --> Real time taken for creating Deploymnets </font> <br />\n",
          "datasource": null,
          "fieldConfig": {
            "defaults": {
              "custom": {}
            },
            "overrides": []
          },
          "gridPos": {
            "h": 3,
            "w": 9,
            "x": 15,
            "y": 0
          },
          "id": 95,
          "links": [],
          "mode": "html",
          "options": {
            "content": "<font color=\"#2AB608\" size=\"3\">NS</font>  <font size=\"3\"> --> Number of Namespaces created </font> <br />\n<font color=\"#2AB608\" size=\"3\">NS.R.Time</font>  <font size=\"3\"> --> Real time taken for creating Namespaces </font><br />\n<font color=\"#2AB608\" size=\"3\">DS</font>  <font size=\"3\"> --> Number of Deployments created </font><br />\n<font color=\"#2AB608\" size=\"3\">DS.R.Time</font>  <font size=\"3\"> --> Real time taken for creating Deploymnets </font> <br />\n",
            "mode": "html"
          },
          "pluginVersion": "7.1.0",
          "timeFrom": null,
          "timeShift": null,
          "title": "Note",
          "type": "text"
        },
        {
          "collapsed": false,
          "datasource": null,
          "gridPos": {
            "h": 1,
            "w": 24,
            "x": 0,
            "y": 3
          },
          "id": 6,
          "panels": [],
          "repeat": "project_name",
          "title": "JOB: $project_name",
          "type": "row"
        },
        {
          "cacheTimeout": null,
          "colorBackground": true,
          "colorPostfix": false,
          "colorPrefix": false,
          "colorValue": false,
          "colors": [
            "#32ac2d",
            "rgb(195, 182, 9)",
            "#f53636"
          ],
          "datasource": "influxdb-scale-powervs",
          "fieldConfig": {
            "defaults": {
              "custom": {}
            },
            "overrides": []
          },
          "format": "none",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "gridPos": {
            "h": 3,
            "w": 4,
            "x": 0,
            "y": 4
          },
          "id": 2,
          "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"
            }
          ],
          "repeatDirection": "h",
          "sparkline": {
            "fillColor": "rgba(31, 118, 189, 0.18)",
            "full": false,
            "lineColor": "rgb(31, 120, 193)",
            "show": false
          },
          "tableColumn": "",
          "targets": [
            {
              "groupBy": [],
              "measurement": "jenkins_data",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "build_result_ordinal"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "last"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "project_name",
                  "operator": "=~",
                  "value": "/^$project_name$/"
                }
              ]
            }
          ],
          "thresholds": "0.5,2",
          "title": "Latest Build",
          "type": "singlestat",
          "valueFontSize": "80%",
          "valueMaps": [
            {
              "op": "=",
              "text": "N/A",
              "value": "null"
            },
            {
              "op": "=",
              "text": "FAILED",
              "value": "2"
            },
            {
              "op": "=",
              "text": "PASSED",
              "value": "0"
            },
            {
              "op": "=",
              "text": "UNSTABLE",
              "value": "1"
            },
            {
              "op": "=",
              "text": "ABORTED",
              "value": "4"
            }
          ],
          "valueName": "current"
        },
        {
          "cacheTimeout": null,
          "colorBackground": false,
          "colorValue": false,
          "colors": [
            "#299c46",
            "rgba(237, 129, 40, 0.89)",
            "#d44a3a"
          ],
          "datasource": "influxdb-scale-powervs",
          "fieldConfig": {
            "defaults": {
              "custom": {}
            },
            "overrides": []
          },
          "format": "none",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "gridPos": {
            "h": 3,
            "w": 8,
            "x": 4,
            "y": 4
          },
          "id": 4,
          "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": "20%",
          "prefix": "",
          "prefixFontSize": "20%",
          "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": [
            {
              "groupBy": [],
              "measurement": "clusterinfo",
              "orderByTime": "ASC",
              "policy": "autogen",
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "ocp_build"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "last"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "project_name",
                  "operator": "=~",
                  "value": "/^$project_name$/"
                }
              ]
            }
          ],
          "thresholds": "",
          "title": "Latest Openshift Build",
          "type": "singlestat",
          "valueFontSize": "30%",
          "valueMaps": [
            {
              "op": "=",
              "text": "N/A",
              "value": "null"
            }
          ],
          "valueName": "current"
        },
        {
          "cacheTimeout": null,
          "colorBackground": false,
          "colorValue": false,
          "colors": [
            "#299c46",
            "rgba(237, 129, 40, 0.89)",
            "#d44a3a"
          ],
          "datasource": "influxdb-scale-powervs",
          "fieldConfig": {
            "defaults": {
              "custom": {}
            },
            "overrides": []
          },
          "format": "short",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "gridPos": {
            "h": 3,
            "w": 8,
            "x": 12,
            "y": 4
          },
          "id": 42,
          "interval": null,
          "links": [
            {
            "targetBlank": true,
            "title": "Click to Open Jenkins",
            "url": "https://jenkins.ppc64le-cloud.org/job/powervs/"
            }
          ],
          "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"
            }
          ],
          "repeat": null,
          "repeatDirection": "h",
          "sparkline": {
            "fillColor": "rgba(31, 118, 189, 0.18)",
            "full": false,
            "lineColor": "rgb(31, 120, 193)",
            "show": false
          },
          "tableColumn": "",
          "targets": [
            {
              "groupBy": [],
              "measurement": "jenkins_data",
              "orderByTime": "ASC",
              "policy": "autogen",
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "build_time"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "count"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "project_name",
                  "operator": "=~",
                  "value": "/^$project_name$/"
                }
              ]
            }
          ],
          "thresholds": "",
          "title": "Total Build",
          "type": "singlestat",
          "valueFontSize": "80%",
          "valueMaps": [
            {
              "op": "=",
              "text": "N/A",
              "value": "null"
            }
          ],
          "valueName": "avg"
        },
        {
          "aliasColors": {
            "Aborted": "rgb(91, 87, 87)",
            "Failed": "#f53636",
            "Passed": "#32ac2d",
            "Unstable": "rgb(195, 182, 9)"
          },
          "breakPoint": "50%",
          "cacheTimeout": null,
          "combine": {
            "label": "Others",
            "threshold": 0
          },
          "datasource": "influxdb-scale-powervs",
          "fieldConfig": {
            "defaults": {
              "custom": {}
            },
            "overrides": []
          },
          "fontSize": "80%",
          "format": "short",
          "gridPos": {
            "h": 10,
            "w": 4,
            "x": 20,
            "y": 4
          },
          "id": 30,
          "interval": null,
          "legend": {
            "percentage": true,
            "show": true,
            "sort": null,
            "sortDesc": null,
            "values": true
          },
          "legendType": "Under graph",
          "links": [],
          "maxDataPoints": 3,
          "nullPointMode": "connected",
          "pieType": "donut",
          "strokeWidth": 1,
          "targets": [
            {
              "alias": "Passed",
              "groupBy": [],
              "measurement": "jenkins_data",
              "orderByTime": "ASC",
              "policy": "autogen",
              "query": "SELECT count(\"jobtime\") FROM \"job\" WHERE (\"project_name\" =~ /^$project_name$/ AND \"result\" = 'CompletedSuccess') AND $timeFilter",
              "rawQuery": false,
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "build_time"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "count"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "project_name",
                  "operator": "=~",
                  "value": "/^$project_name$/"
                },
                {
                  "condition": "AND",
                  "key": "build_result",
                  "operator": "=",
                  "value": "SUCCESS"
                }
              ]
            },
            {
              "alias": "Failed",
              "groupBy": [],
              "measurement": "jenkins_data",
              "orderByTime": "ASC",
              "policy": "autogen",
              "query": "SELECT count(\"build_time\") FROM \"autogen\".\"jenkins_data\" WHERE (\"project_name\" =~ /^$project_name$/ AND \"build_result\" = 'FAILURE') AND $timeFilter",
              "rawQuery": false,
              "refId": "B",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "build_time"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "count"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "project_name",
                  "operator": "=~",
                  "value": "/^$project_name$/"
                },
                {
                  "condition": "AND",
                  "key": "build_result",
                  "operator": "=",
                  "value": "FAILURE"
                }
              ]
            },
            {
              "alias": "Unstable",
              "groupBy": [
                {
                  "params": [
                    "$__interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "orderByTime": "ASC",
              "policy": "default",
              "query": "SELECT count(\"build_time\") FROM \"autogen\".\"jenkins_data\" WHERE (\"project_name\" =~ /^$project_name$/ AND \"build_result\" = 'UNSTABLE') AND $timeFilter",
              "rawQuery": true,
              "refId": "C",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "Aborted",
              "groupBy": [
                {
                  "params": [
                    "$__interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "hide": false,
              "orderByTime": "ASC",
              "policy": "default",
              "query": "SELECT count(\"build_time\") FROM \"autogen\".\"jenkins_data\" WHERE (\"project_name\" =~ /^$project_name$/ AND \"build_result\" = 'ABORTED') AND $timeFilter",
              "rawQuery": true,
              "refId": "D",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": []
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Overall Build Status",
          "type": "grafana-piechart-panel",
          "valueName": "total"
        },
        {
          "columns": [],
          "datasource": "influxdb-scale-powervs",
          "fieldConfig": {
            "defaults": {
              "custom": {}
            },
            "overrides": []
          },
          "fontSize": "100%",
          "gridPos": {
            "h": 7,
            "w": 20,
            "x": 0,
            "y": 7
          },
          "id": 74,
          "links": [],
          "pageSize": 3,
          "scroll": true,
          "showHeader": true,
          "sort": {
            "col": 0,
            "desc": true
          },
          "styles": [
            {
              "$$hashKey": "object:517",
              "alias": "Time",
              "align": "auto",
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "pattern": "Time",
              "type": "date"
            },
            {
              "$$hashKey": "object:518",
              "alias": "Project",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "decimals": 2,
              "link": false,
              "mappingType": 1,
              "pattern": "clusterinfo.project_name",
              "thresholds": [],
              "type": "hidden",
              "unit": "short"
            },
            {
              "$$hashKey": "object:519",
              "alias": "Masters",
              "align": "auto",
              "colorMode": "row",
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "clusterinfo.cluster_masters",
              "thresholds": [
                "0.5",
                "1"
              ],
              "type": "string",
              "unit": "short",
              "valueMaps": [
                {
                  "$$hashKey": "object:630",
                  "text": "Passed",
                  "value": "1"
                },
                {
                  "$$hashKey": "object:631",
                  "text": "Failed",
                  "value": "0"
                }
              ]
            },
            {
              "$$hashKey": "object:520",
              "alias": "Workers",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "clusterinfo.cluster_workers",
              "thresholds": [],
              "type": "string",
              "unit": "none"
            },
            {
              "$$hashKey": "object:521",
              "alias": "CoreOS",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "clusterinfo.coreos_build",
              "thresholds": [],
              "type": "string",
              "unit": "short"
            },
            {
              "$$hashKey": "object:522",
              "alias": "OCP Build",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "link": false,
              "mappingType": 1,
              "pattern": "clusterinfo.ocp_build",
              "preserveFormat": false,
              "sanitize": false,
              "thresholds": [],
              "type": "string",
              "unit": "short"
            },
            {
              "$$hashKey": "object:523",
              "alias": "Job",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 0,
              "link": true,
              "linkTooltip": "Open Jenkins",
              "linkTargetBlank": true,
              "linkUrl": "https://jenkins.ppc64le-cloud.org/job/powervs/",
              "mappingType": 1,
              "pattern": "clusterinfo.build_number",
              "preserveFormat": false,
              "sanitize": false,
              "thresholds": [],
              "type": "string",
              "unit": "short"
            },
            {
              "$$hashKey": "object:524",
              "alias": "Server",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "clusterinfo.server_type",
              "thresholds": [],
              "type": "string",
              "unit": "short"
            },
            {
              "$$hashKey": "object:525",
              "alias": "M.CPU",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "clusterinfo.master_node_cpu",
              "thresholds": [],
              "type": "string",
              "unit": "short"
            },
            {
              "$$hashKey": "object:526",
              "alias": "M.MEM",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "clusterinfo.master_node_mem",
              "thresholds": [],
              "type": "string",
              "unit": "short"
            },
            {
              "$$hashKey": "object:527",
              "alias": "W.CPU",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "clusterinfo.worker_node_cpu",
              "thresholds": [],
              "type": "string",
              "unit": "short"
            },
            {
              "$$hashKey": "object:528",
              "alias": "W.MEM",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "clusterinfo.worker_node_mem",
              "thresholds": [],
              "type": "string",
              "unit": "short"
            },
            {
              "$$hashKey": "object:529",
              "alias": "NS",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "clusterinfo.namespaces",
              "thresholds": [],
              "type": "number",
              "unit": "short"
            },
            {
              "$$hashKey": "object:530",
              "alias": "NS.R.Time",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "clusterinfo.real_time_namespace",
              "thresholds": [],
              "type": "number",
              "unit": "short"
            },
            {
              "$$hashKey": "object:531",
              "alias": "NS.U.Time",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "clusterinfo.user_time_namespace",
              "thresholds": [],
              "type": "hidden",
              "unit": "short"
            },
            {
              "$$hashKey": "object:532",
              "alias": "NS.S.Time",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "clusterinfo.system_time_namespace",
              "thresholds": [],
              "type": "hidden",
              "unit": "short"
            },
            {
              "$$hashKey": "object:533",
              "alias": "DS",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "clusterinfo.deployments",
              "thresholds": [],
              "type": "number",
              "unit": "short"
            },
            {
              "$$hashKey": "object:534",
              "alias": "DS.R.Time",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "clusterinfo.real_time_deployments",
              "thresholds": [],
              "type": "number",
              "unit": "short"
            },
            {
              "$$hashKey": "object:535",
              "alias": "D.U.Time",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "clusterinfo.user_time_deployments",
              "thresholds": [],
              "type": "hidden",
              "unit": "short"
            },
            {
              "$$hashKey": "object:536",
              "alias": "D.S.Time",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "clusterinfo.system_time_deployments",
              "thresholds": [],
              "type": "hidden",
              "unit": "short"
            },
            {
              "$$hashKey": "object:537",
              "alias": "Build",
              "align": "auto",
              "colorMode": "cell",
              "colors": [
                "rgba(50, 172, 45, 0.97)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(245, 54, 54, 0.9)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "link": false,
              "mappingType": 1,
              "pattern": "jenkins_data.build_result_ordinal",
              "thresholds": [
                "1",
                "2"
              ],
              "type": "string",
              "unit": "short",
              "valueMaps": [
                {
                  "$$hashKey": "object:830",
                  "text": "PASSED",
                  "value": "0"
                },
                {
                  "$$hashKey": "object:831",
                  "text": "UNSTABLE",
                  "value": "1"
                },
                {
                  "$$hashKey": "object:832",
                  "text": "FAILED",
                  "value": "2"
                },
                {
                  "$$hashKey": "object:833",
                  "text": "FAILED",
                  "value": "4"
                }
              ]
            },
            {
              "$$hashKey": "object:838",
              "alias": "Job Path",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "jenkins_data.project_path",
              "thresholds": [],
              "type": "number",
              "unit": "short"
            }
          ],
          "targets": [
            {
              "groupBy": [
                {
                  "params": [
                    "$__interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "orderByTime": "ASC",
              "policy": "default",
              "query": "SELECT \"time\", \"project_name\",  \"coreos_build\", \"ocp_build\", \"build_number\", \"server_type\", \"master_node_cpu\", \"master_node_mem\", \"worker_node_cpu\", \"worker_node_mem\", \"namespaces\", \"real_time_namespace\", \"user_time_namespace\", \"system_time_namespace\",  \"deployments\", \"real_time_deployments\", \"user_time_deployments\", \"system_time_deployments\"  FROM \"clusterinfo\" WHERE (\"project_name\" =~ /^$project_name$/) AND $timeFilter",
              "rawQuery": true,
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": []
            },
            {
              "groupBy": [],
              "measurement": "jenkins_data",
              "orderByTime": "ASC",
              "policy": "autogen",
              "query": "SELECT  \"build_result_ordinal\", \"project_path\"   FROM \"autogen\".\"jenkins_data\"  WHERE (\"project_name\" =~ /^$project_name$/) AND $timeFilter",
              "rawQuery": true,
              "refId": "B",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "tests_failed"
                    ],
                    "type": "field"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "project_name",
                  "operator": "=~",
                  "value": "/^$project_name$/"
                }
              ]
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Build Details",
          "transform": "timeseries_to_columns",
          "type": "table-old"
        }
      ],
      "refresh": "30s",
      "schemaVersion": 26,
      "style": "dark",
      "tags": [],
      "templating": {
        "list": [
          {
            "allValue": null,
            "current": {
              "selected": false,
              "text": "All",
              "value": "$__all"
            },
            "datasource": "influxdb-scale-powervs",
            "definition": "",
            "hide": 0,
            "includeAll": true,
            "label": null,
            "multi": true,
            "name": "project_name",
            "options": [],
            "query": "SHOW TAG VALUES FROM jenkins_data WITH KEY = \"project_name\"",
            "refresh": 1,
            "regex": "",
            "skipUrlSync": false,
            "sort": 0,
            "tagValuesQuery": "",
            "tags": [],
            "tagsQuery": "",
            "type": "query",
            "useTags": false
          }
        ]
      },
      "time": {
        "from": "now-1y",
        "to": "now"
      },
      "timepicker": {
        "refresh_intervals": [
          "5s",
          "10s",
          "30s",
          "1m",
          "5m",
          "15m",
          "30m",
          "1h",
          "2h",
          "1d"
        ],
        "time_options": [
          "5m",
          "15m",
          "1h",
          "6h",
          "12h",
          "24h",
          "2d",
          "7d",
          "30d"
        ]
      },
      "timezone": "",
      "title": "PowerVS OCP4 Scale Job Status",
      "uid": "2",
      "version": 1
    }
kind: ConfigMap
metadata:
  name: ocp4-powervs-scale
  namespace: grafana-dashboard