Tekton Overview
This is a dashboard for Tekton.

This is a dashboard for Tekton.
Requirement:
- set `- --metric-labels-allowlist=pods=[*]` for kube-state-metrics
{
  "__inputs": [
    {
      "name": "DS_KCICD-PROD",
      "label": "database",
      "description": "",
      "type": "datasource",
      "pluginId": "prometheus",
      "pluginName": "Prometheus"
    }
  ],
  "__elements": [],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "8.3.1"
    },
    {
      "type": "datasource",
      "id": "prometheus",
      "name": "Prometheus",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "stat",
      "name": "Stat",
      "version": ""
    },
    {
      "type": "panel",
      "id": "table",
      "name": "Table",
      "version": ""
    },
    {
      "type": "panel",
      "id": "timeseries",
      "name": "Time series",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "target": {
          "limit": 100,
          "matchAny": false,
          "tags": [],
          "type": "dashboard"
        },
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "fiscalYearStartMonth": 0,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1657268584290,
  "links": [],
  "liveNow": false,
  "panels": [
    {
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 38,
      "panels": [],
      "title": "Now",
      "type": "row"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_KCICD-PROD}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "short"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 6,
        "x": 0,
        "y": 1
      },
      "id": 10,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "8.3.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_KCICD-PROD}"
          },
          "exemplar": true,
          "expr": "max(tekton_pipelines_controller_running_pipelineruns_count)",
          "hide": false,
          "interval": "",
          "intervalFactor": 1,
          "legendFormat": "",
          "refId": "C"
        }
      ],
      "title": "Running PipelineRun",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_KCICD-PROD}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "short"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 6,
        "x": 6,
        "y": 1
      },
      "id": 46,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "8.3.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_KCICD-PROD}"
          },
          "exemplar": true,
          "expr": "max(tekton_pipelines_controller_running_taskruns_count)",
          "hide": false,
          "interval": "",
          "intervalFactor": 1,
          "legendFormat": "Running",
          "refId": "C"
        }
      ],
      "title": "Running Taskrun",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_KCICD-PROD}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "mappings": [],
          "noValue": "-",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "red",
                "value": null
              }
            ]
          },
          "unit": "none"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 6,
        "x": 12,
        "y": 1
      },
      "id": 43,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "8.3.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_KCICD-PROD}"
          },
          "exemplar": true,
          "expr": "count(kube_pod_status_phase{phase=\"Running\", namespace=~\"^$namespace$\"}>0)",
          "hide": false,
          "interval": "",
          "legendFormat": "Success",
          "refId": "A"
        }
      ],
      "title": "Running Pod",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_KCICD-PROD}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "mappings": [],
          "noValue": "-",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "red",
                "value": null
              }
            ]
          },
          "unit": "none"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 6,
        "x": 18,
        "y": 1
      },
      "id": 48,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "8.3.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_KCICD-PROD}"
          },
          "exemplar": true,
          "expr": "count(sum by (label_tekton_dev_pipeline_run) (kube_pod_labels{namespace=~\"^$namespace$\", label_tekton_dev_pipeline_run!=\"\"}  and on (pod) kube_pod_container_status_running{namespace=~\"^$namespace$\"} > 0) == 1)",
          "hide": false,
          "interval": "",
          "legendFormat": "Success",
          "refId": "A"
        }
      ],
      "title": "Pending Pipelinerun",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_KCICD-PROD}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "continuous-GrYlRd"
          },
          "custom": {
            "align": "left",
            "displayMode": "auto"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Time"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 166
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "namespace"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 203
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Namespace"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 94
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Pipeline"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 241
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Pipelinerun"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 265
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Taskrun"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 309
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "label_tekton_dev_cluster_task"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 244
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Clustertask"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 155
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Memory"
            },
            "properties": [
              {
                "id": "unit",
                "value": "bytes"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Pod"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 358
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 11,
        "w": 24,
        "x": 0,
        "y": 6
      },
      "id": 12,
      "options": {
        "footer": {
          "fields": "",
          "reducer": [
            "sum"
          ],
          "show": false
        },
        "showHeader": true,
        "sortBy": [
          {
            "desc": false,
            "displayName": "Pipelinerun"
          }
        ]
      },
      "pluginVersion": "8.3.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_KCICD-PROD}"
          },
          "exemplar": false,
          "expr": "sum by (namespace, label_tekton_dev_pipeline, label_tekton_dev_pipeline_run, label_tekton_dev_task_run, label_tekton_dev_cluster_task, kubernetes_node, pod) (kube_pod_labels{label_tekton_dev_task_run!=\"\", namespace=~\"^$namespace$\"}  and on (pod) kube_pod_container_status_running > 0)",
          "format": "table",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_KCICD-PROD}"
          },
          "exemplar": false,
          "expr": "sum by (namespace, pod) (rate(container_cpu_usage_seconds_total{image!=\"\", namespace=~\"^$namespace$\"}[5m])) and on (pod) (kube_pod_labels{label_tekton_dev_task_run!=\"\", namespace=~\"^$namespace$\"}) and on (pod) kube_pod_container_status_running > 0",
          "format": "table",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "B"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_KCICD-PROD}"
          },
          "exemplar": false,
          "expr": "sum by (namespace, pod)(container_memory_working_set_bytes{image!=\"\", namespace=~\"^$namespace$\"}) and on (pod) (kube_pod_labels{label_tekton_dev_task_run!=\"\", namespace=~\"^$namespace$\"}) and on (pod) kube_pod_container_status_running > 0",
          "format": "table",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "C"
        }
      ],
      "title": "Runing Pipelinerun",
      "transformations": [
        {
          "id": "merge",
          "options": {}
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "Time": true,
              "Value #A": true
            },
            "indexByName": {
              "Time": 0,
              "Value #A": 8,
              "Value #B": 9,
              "Value #C": 10,
              "kubernetes_node": 7,
              "label_tekton_dev_cluster_task": 5,
              "label_tekton_dev_pipeline": 2,
              "label_tekton_dev_pipeline_run": 3,
              "label_tekton_dev_task_run": 4,
              "namespace": 1,
              "pod": 6
            },
            "renameByName": {
              "Value #A": "",
              "Value #B": "CPU",
              "Value #C": "Memory",
              "kubernetes_node": "Node",
              "label_tekton_dev_cluster_task": "Clustertask",
              "label_tekton_dev_pipeline": "Pipeline",
              "label_tekton_dev_pipeline_run": "Pipelinerun",
              "label_tekton_dev_task_run": "Taskrun",
              "namespace": "Namespace",
              "pod": "Pod"
            }
          }
        }
      ],
      "type": "table"
    },
    {
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 17
      },
      "id": 40,
      "panels": [],
      "title": "Overview",
      "type": "row"
    },
    {
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "percentage",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 6,
        "x": 0,
        "y": 18
      },
      "id": 47,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "8.3.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_KCICD-PROD}"
          },
          "exemplar": true,
          "expr": "count(count by (label_tekton_dev_cluster_task) (kube_pod_labels{label_tekton_dev_cluster_task!=\"\"}))",
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "title": "Active Clustertask",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_KCICD-PROD}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 6,
        "x": 6,
        "y": 18
      },
      "id": 26,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "8.3.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_KCICD-PROD}"
          },
          "exemplar": true,
          "expr": "count(count by (pipeline) (tekton_pipelines_controller_pipelinerun_duration_seconds_sum{}))",
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "title": "Active Pipeline",
      "type": "stat"
    },
    {
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "percentage",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 6,
        "x": 12,
        "y": 18
      },
      "id": 27,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "8.3.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_KCICD-PROD}"
          },
          "exemplar": true,
          "expr": "count(count by (pipelinerun) (tekton_pipelines_controller_pipelinerun_duration_seconds_sum{}))",
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "title": "Active Pipelinerun",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_KCICD-PROD}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "red",
                "value": null
              }
            ]
          },
          "unit": "none"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 6,
        "x": 18,
        "y": 18
      },
      "id": 41,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "8.3.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_KCICD-PROD}"
          },
          "exemplar": true,
          "expr": "sum(increase(tekton_pipelines_controller_pipelinerun_count{}[5m]))",
          "hide": false,
          "instant": false,
          "interval": "",
          "legendFormat": "Failed",
          "refId": "A"
        }
      ],
      "title": "Pipelinerun Increase(5m)",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_KCICD-PROD}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "never",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "bytes"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 12,
        "x": 0,
        "y": 23
      },
      "id": 33,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "single"
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_KCICD-PROD}"
          },
          "exemplar": true,
          "expr": "sum(rate(node_network_receive_bytes_total{device!~\"lo|nodelocaldns|dummy0|cali.*|docker.*|tunl.*|kube.*|veth.*|br.*\"}[5m]))",
          "interval": "",
          "intervalFactor": 1,
          "legendFormat": "Receive",
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_KCICD-PROD}"
          },
          "exemplar": true,
          "expr": "sum(rate(node_network_transmit_bytes_total{device!~\"lo|nodelocaldns|dummy0|cali.*|docker.*|tunl.*|kube.*|veth.*|br.*\"}[5m]))",
          "hide": false,
          "interval": "",
          "legendFormat": "Send",
          "refId": "B"
        }
      ],
      "title": "All Nodes Network I/O",
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_KCICD-PROD}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "never",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "bytes"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "io time"
            },
            "properties": [
              {
                "id": "unit",
                "value": "s"
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 6,
        "w": 12,
        "x": 12,
        "y": 23
      },
      "id": 34,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "single"
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_KCICD-PROD}"
          },
          "exemplar": true,
          "expr": "sum(rate(node_disk_read_bytes_total{device!=\"\"}[5m]))",
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "Read",
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_KCICD-PROD}"
          },
          "exemplar": true,
          "expr": "sum(rate(node_disk_written_bytes_total{device!=\"\"}[5m]))",
          "hide": false,
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "Written",
          "refId": "B"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_KCICD-PROD}"
          },
          "exemplar": true,
          "expr": "sum(rate(node_disk_io_time_seconds_total{device!=\"\"}[5m]))",
          "hide": false,
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "io time",
          "refId": "C"
        }
      ],
      "title": "All Nodes Disk I/O",
      "type": "timeseries"
    },
    {
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": "left",
            "displayMode": "auto"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Cluster Task"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 339
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 29
      },
      "id": 36,
      "options": {
        "footer": {
          "fields": "",
          "reducer": [
            "sum"
          ],
          "show": false
        },
        "showHeader": true,
        "sortBy": [
          {
            "desc": true,
            "displayName": "Total Count"
          }
        ]
      },
      "pluginVersion": "8.3.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_KCICD-PROD}"
          },
          "exemplar": false,
          "expr": "sum by (label_tekton_dev_cluster_task) (kube_pod_labels{label_tekton_dev_cluster_task!=\"\"})",
          "format": "table",
          "instant": true,
          "interval": "",
          "legendFormat": "Totals",
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_KCICD-PROD}"
          },
          "exemplar": false,
          "expr": " sum by (label_tekton_dev_cluster_task) (sum by (label_tekton_dev_cluster_task, pod) (kube_pod_labels{label_tekton_dev_cluster_task!=\"\"}) and on(pod) kube_pod_status_phase{phase=\"Failed\"}>0)",
          "format": "table",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "Failed",
          "refId": "B"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_KCICD-PROD}"
          },
          "exemplar": false,
          "expr": " sum by (label_tekton_dev_cluster_task) (sum by (label_tekton_dev_cluster_task, pod) (kube_pod_labels{label_tekton_dev_cluster_task!=\"\"}) and on(pod) kube_pod_container_status_running>0)",
          "format": "table",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "Running",
          "refId": "C"
        }
      ],
      "title": "Active Cluster Task",
      "transformations": [
        {
          "id": "merge",
          "options": {}
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "Time": true
            },
            "indexByName": {},
            "renameByName": {
              "Time": "",
              "Value #A": "Total Count",
              "Value #B": "Failed Count",
              "Value #C": "Running Count",
              "label_tekton_dev_cluster_task": "Cluster Task"
            }
          }
        }
      ],
      "type": "table"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_KCICD-PROD}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "continuous-GrYlRd"
          },
          "custom": {
            "align": "left",
            "displayMode": "auto"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Time"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 166
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "namespace"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 203
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Pipeline"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 373
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Namespace"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 297
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
        "y": 29
      },
      "id": 28,
      "options": {
        "footer": {
          "fields": "",
          "reducer": [
            "sum"
          ],
          "show": false
        },
        "showHeader": true,
        "sortBy": []
      },
      "pluginVersion": "8.3.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_KCICD-PROD}"
          },
          "exemplar": false,
          "expr": "sum by (namespace, label_tekton_dev_pipeline, label_tekton_dev_pipeline_run) (kube_pod_labels{label_tekton_dev_pipeline_run!=\"\", namespace=~\"^$namespace$\"}  and on (pod) kube_pod_status_phase{phase=\"Failed\"} > 0)",
          "format": "table",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "title": "Failed Pipelinerun Recently",
      "transformations": [
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "Time": true,
              "Value": true,
              "Value #A": true
            },
            "indexByName": {
              "Time": 0,
              "Value #A": 4,
              "label_tekton_dev_pipeline": 2,
              "label_tekton_dev_pipeline_run": 3,
              "namespace": 1
            },
            "renameByName": {
              "Value": "Pod",
              "Value #A": "Pod",
              "label_tekton_dev_pipeline": "Pipeline",
              "label_tekton_dev_pipeline_run": "Pipelinerun",
              "namespace": "Namespace"
            }
          }
        }
      ],
      "type": "table"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_KCICD-PROD}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": "left",
            "displayMode": "auto"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Namesapce"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 172
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Duration"
            },
            "properties": [
              {
                "id": "unit",
                "value": "dtdurations"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Pipeline"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 307
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Pipelinerun"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 343
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 15,
        "w": 12,
        "x": 0,
        "y": 37
      },
      "id": 24,
      "options": {
        "footer": {
          "fields": "",
          "reducer": [
            "sum"
          ],
          "show": false
        },
        "frameIndex": 2,
        "showHeader": true,
        "sortBy": []
      },
      "pluginVersion": "8.3.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_KCICD-PROD}"
          },
          "exemplar": false,
          "expr": "topk(15, sum by (namespace, pipeline, pipelinerun) (tekton_pipelines_controller_pipelinerun_duration_seconds_sum{namespace=~\"^$namespace$\"}) )",
          "format": "table",
          "instant": true,
          "interval": "",
          "legendFormat": "Duration",
          "refId": "A"
        }
      ],
      "title": "TopK  Pipelinerun Duration",
      "transformations": [
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "Time": true
            },
            "indexByName": {},
            "renameByName": {
              "Value #A": "Duration",
              "namespace": "Namesapce",
              "pipeline": "Pipeline",
              "pipelinerun": "Pipelinerun"
            }
          }
        }
      ],
      "type": "table"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_KCICD-PROD}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": "left",
            "displayMode": "auto"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Namesapce"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 297
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Pipeline"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 371
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 15,
        "w": 12,
        "x": 12,
        "y": 37
      },
      "id": 22,
      "options": {
        "footer": {
          "fields": "",
          "reducer": [
            "sum"
          ],
          "show": false
        },
        "frameIndex": 2,
        "showHeader": true,
        "sortBy": []
      },
      "pluginVersion": "8.3.1",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_KCICD-PROD}"
          },
          "exemplar": false,
          "expr": "topk(15, count by (namespace, pipeline) (tekton_pipelines_controller_pipelinerun_duration_seconds_sum{namespace=~\"^$namespace$\"}) )",
          "format": "table",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "title": "TopK Pipelinerun Count",
      "transformations": [
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "Time": true
            },
            "indexByName": {},
            "renameByName": {
              "Value #A": "Pipelinerun Count",
              "namespace": "Namesapce",
              "pipeline": "Pipeline"
            }
          }
        }
      ],
      "type": "table"
    }
  ],
  "refresh": "5s",
  "schemaVersion": 33,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "current": {
          "selected": false,
          "text": "KCICD-PROD",
          "value": "KCICD-PROD"
        },
        "hide": 0,
        "includeAll": false,
        "label": "database",
        "multi": false,
        "name": "database",
        "options": [],
        "query": "prometheus",
        "queryValue": "",
        "refresh": 1,
        "regex": "KCICD-PROD",
        "skipUrlSync": false,
        "type": "datasource"
      },
      {
        "current": {},
        "datasource": {
          "type": "prometheus",
          "uid": "${DS_KCICD-PROD}"
        },
        "definition": "label_values(kube_pod_labels, namespace)",
        "hide": 0,
        "includeAll": true,
        "label": "namespace",
        "multi": false,
        "name": "namespace",
        "options": [],
        "query": {
          "query": "label_values(kube_pod_labels, namespace)",
          "refId": "StandardVariableQuery"
        },
        "refresh": 1,
        "regex": "^(?!default|monitor|kube-system|openebs|kcicd-system|tekton-pipelines|longhorn-system)(\\S+)",
        "skipUrlSync": false,
        "sort": 0,
        "type": "query"
      }
    ]
  },
  "time": {
    "from": "now-5m",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "",
  "title": "Tekton Overview",
  "uid": "Ieunmkunz",
  "version": 133,
  "weekStart": "",
  "gnetId": 16559,
  "description": "This is a dashboard for Tekton.\r\n"
}