apiVersion: v1
kind: ConfigMap
metadata:
  name: grafana-dashboard-tekton
  labels:
    grafana_dashboard: "true"
data:
  tekton.json: |-
   {
     "annotations": {
       "list": [
         {
           "builtIn": 1,
           "datasource": {
             "type": "grafana",
             "uid": "-- 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": 2,
     "links": [],
     "liveNow": false,
     "panels": [
       {
         "datasource": {
           "type": "prometheus",
           "uid": "P1809F7CD0C75ACF3"
         },
         "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": "auto",
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": null
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             }
           },
           "overrides": []
         },
         "gridPos": {
           "h": 9,
           "w": 7,
           "x": 0,
           "y": 0
         },
         "id": 2,
         "options": {
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom"
           },
           "tooltip": {
             "mode": "single",
             "sort": "none"
           }
         },
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "P1809F7CD0C75ACF3"
             },
             "expr": "tekton_pipelines_controller_workqueue_adds_total",
             "refId": "A"
           }
         ],
         "title": "Panel Title",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "P1809F7CD0C75ACF3"
         },
         "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": "auto",
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": null
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             }
           },
           "overrides": []
         },
         "gridPos": {
           "h": 9,
           "w": 7,
           "x": 7,
           "y": 0
         },
         "id": 4,
         "options": {
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom"
           },
           "tooltip": {
             "mode": "single",
             "sort": "none"
           }
         },
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "P1809F7CD0C75ACF3"
             },
             "expr": "tekton_pipelines_controller_workqueue_adds_total",
             "refId": "A"
           }
         ],
         "title": "Panel Title",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "P1809F7CD0C75ACF3"
         },
         "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": "auto",
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": null
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             }
           },
           "overrides": []
         },
         "gridPos": {
           "h": 9,
           "w": 7,
           "x": 14,
           "y": 0
         },
         "id": 6,
         "options": {
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom"
           },
           "tooltip": {
             "mode": "single",
             "sort": "none"
           }
         },
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "P1809F7CD0C75ACF3"
             },
             "expr": "tekton_pipelines_controller_workqueue_queue_latency_seconds_count{name=\"github.com.tektoncd.pipeline.pkg.reconciler.taskrun.Reconciler-fast\"}",
             "refId": "A"
           }
         ],
         "title": "Panel Title",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "P1809F7CD0C75ACF3"
         },
         "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": "auto",
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": null
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             }
           },
           "overrides": []
         },
         "gridPos": {
           "h": 7,
           "w": 7,
           "x": 0,
           "y": 9
         },
         "id": 3,
         "options": {
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom"
           },
           "tooltip": {
             "mode": "single",
             "sort": "none"
           }
         },
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "P1809F7CD0C75ACF3"
             },
             "expr": "tekton_pipelines_controller_workqueue_retries_total{name=~\"github.com.tektoncd.pipeline.pkg.reconciler.taskrun.Reconciler-fast\"}",
             "refId": "A"
           }
         ],
         "title": "Workqueue  retries total (Taskrun)",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "P1809F7CD0C75ACF3"
         },
         "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": "auto",
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": null
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             }
           },
           "overrides": []
         },
         "gridPos": {
           "h": 7,
           "w": 7,
           "x": 7,
           "y": 9
         },
         "id": 10,
         "options": {
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom"
           },
           "tooltip": {
             "mode": "single",
             "sort": "none"
           }
         },
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "P1809F7CD0C75ACF3"
             },
             "expr": "tekton_pipelines_controller_workqueue_retries_total{name=~\"github.com.tektoncd.pipeline.pkg.reconciler.taskrun.Reconciler-fast\"}",
             "refId": "A"
           }
         ],
         "title": "Workqueue  retries total (Taskrun)",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "P1809F7CD0C75ACF3"
         },
         "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": "auto",
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": null
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             }
           },
           "overrides": []
         },
         "gridPos": {
           "h": 7,
           "w": 7,
           "x": 14,
           "y": 9
         },
         "id": 9,
         "options": {
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom"
           },
           "tooltip": {
             "mode": "single",
             "sort": "none"
           }
         },
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "P1809F7CD0C75ACF3"
             },
             "expr": "tekton_pipelines_controller_workqueue_retries_total{name=~\"github.com.tektoncd.pipeline.pkg.reconciler.pipelinerun.Reconciler-fast\"}",
             "refId": "A"
           }
         ],
         "title": "Workqueue  retries total (PipelineRun)",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "P1809F7CD0C75ACF3"
         },
         "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": "auto",
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": null
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             }
           },
           "overrides": []
         },
         "gridPos": {
           "h": 7,
           "w": 7,
           "x": 0,
           "y": 16
         },
         "id": 5,
         "options": {
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom"
           },
           "tooltip": {
             "mode": "single",
             "sort": "none"
           }
         },
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "P1809F7CD0C75ACF3"
             },
             "expr": "tekton_pipelines_controller_go_heap_alloc",
             "refId": "A"
           },
           {
             "datasource": {
               "type": "prometheus",
               "uid": "P1809F7CD0C75ACF3"
             },
             "expr": "tekton_pipelines_controller_go_heap_idle",
             "hide": false,
             "refId": "B"
           },
           {
             "datasource": {
               "type": "prometheus",
               "uid": "P1809F7CD0C75ACF3"
             },
             "expr": "tekton_pipelines_controller_go_heap_in_use",
             "hide": false,
             "refId": "C"
           },
           {
             "datasource": {
               "type": "prometheus",
               "uid": "P1809F7CD0C75ACF3"
             },
             "expr": "tekton_pipelines_controller_go_heap_sys",
             "hide": false,
             "refId": "D"
           }
         ],
         "title": "Workqueue  retries total (PipelineRun)",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "P1809F7CD0C75ACF3"
         },
         "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": "auto",
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": null
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             }
           },
           "overrides": []
         },
         "gridPos": {
           "h": 7,
           "w": 7,
           "x": 7,
           "y": 16
         },
         "id": 11,
         "options": {
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom"
           },
           "tooltip": {
             "mode": "single",
             "sort": "none"
           }
         },
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "P1809F7CD0C75ACF3"
             },
             "expr": "tekton_pipelines_controller_go_heap_alloc",
             "refId": "A"
           },
           {
             "datasource": {
               "type": "prometheus",
               "uid": "P1809F7CD0C75ACF3"
             },
             "expr": "tekton_pipelines_controller_go_heap_idle",
             "hide": false,
             "refId": "B"
           },
           {
             "datasource": {
               "type": "prometheus",
               "uid": "P1809F7CD0C75ACF3"
             },
             "expr": "tekton_pipelines_controller_go_heap_in_use",
             "hide": false,
             "refId": "C"
           },
           {
             "datasource": {
               "type": "prometheus",
               "uid": "P1809F7CD0C75ACF3"
             },
             "expr": "tekton_pipelines_controller_go_heap_sys",
             "hide": false,
             "refId": "D"
           }
         ],
         "title": "Workqueue  retries total (PipelineRun)",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "P1809F7CD0C75ACF3"
         },
         "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": "auto",
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": null
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             }
           },
           "overrides": []
         },
         "gridPos": {
           "h": 7,
           "w": 7,
           "x": 14,
           "y": 16
         },
         "id": 8,
         "options": {
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom"
           },
           "tooltip": {
             "mode": "single",
             "sort": "none"
           }
         },
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "P1809F7CD0C75ACF3"
             },
             "expr": "tekton_pipelines_controller_go_mcache_in_use",
             "hide": false,
             "refId": "A"
           },
           {
             "datasource": {
               "type": "prometheus",
               "uid": "P1809F7CD0C75ACF3"
             },
             "expr": "tekton_pipelines_controller_go_mcache_sys",
             "hide": false,
             "refId": "B"
           }
         ],
         "title": "Panel Title",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "P1809F7CD0C75ACF3"
         },
         "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": "auto",
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": null
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             }
           },
           "overrides": []
         },
         "gridPos": {
           "h": 7,
           "w": 7,
           "x": 0,
           "y": 23
         },
         "id": 7,
         "options": {
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom"
           },
           "tooltip": {
             "mode": "single",
             "sort": "none"
           }
         },
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "P1809F7CD0C75ACF3"
             },
             "expr": "tekton_pipelines_controller_client_latency_count",
             "hide": false,
             "refId": "A"
           }
         ],
         "title": "Client Latency",
         "type": "timeseries"
       },
       {
         "datasource": {
           "type": "prometheus",
           "uid": "P1809F7CD0C75ACF3"
         },
         "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": "auto",
               "spanNulls": false,
               "stacking": {
                 "group": "A",
                 "mode": "none"
               },
               "thresholdsStyle": {
                 "mode": "off"
               }
             },
             "mappings": [],
             "thresholds": {
               "mode": "absolute",
               "steps": [
                 {
                   "color": "green",
                   "value": null
                 },
                 {
                   "color": "red",
                   "value": 80
                 }
               ]
             }
           },
           "overrides": []
         },
         "gridPos": {
           "h": 7,
           "w": 7,
           "x": 7,
           "y": 23
         },
         "id": 12,
         "options": {
           "legend": {
             "calcs": [],
             "displayMode": "list",
             "placement": "bottom"
           },
           "tooltip": {
             "mode": "single",
             "sort": "none"
           }
         },
         "targets": [
           {
             "datasource": {
               "type": "prometheus",
               "uid": "P1809F7CD0C75ACF3"
             },
             "expr": "tekton_pipelines_controller_client_latency_count",
             "hide": false,
             "refId": "A"
           }
         ],
         "title": "Client Latency",
         "type": "timeseries"
       }
     ],
     "refresh": "5s",
     "schemaVersion": 36,
     "style": "dark",
     "tags": [],
     "templating": {
       "list": []
     },
     "time": {
       "from": "now-6h",
       "to": "now"
     },
     "timepicker": {},
     "timezone": "",
     "title": "tekton",
     "uid": "CdK8IX_nk",
     "version": 6,
     "weekStart": ""
   }