{
  "displayName": "prowjob-resource-usage",
  "gridLayout": {
    "columns": "2",
    "widgets": [
      {
        "title": "Presubmit Container CPU Usage: job - org/repo#pull",
        "xyChart": {
          "chartOptions": {
            "mode": "COLOR"
          },
          "dataSets": [
            {
              "legendTemplate": "${metadata.user_labels\\.prow\\.k8s\\.io/job} - ${metadata.user_labels\\.prow\\.k8s\\.io/refs\\.org}/${metadata.user_labels\\.prow\\.k8s\\.io/refs\\.repo}#${metadata.user_labels\\.prow\\.k8s\\.io/refs\\.pull}",
              "minAlignmentPeriod": "60s",
              "plotType": "LINE",
              "targetAxis": "Y1",
              "timeSeriesQuery": {
                "timeSeriesFilter": {
                  "aggregation": {
                    "crossSeriesReducer": "REDUCE_SUM",
                    "groupByFields": [
                      "metadata.user_labels.\"prow.k8s.io/job\"",
                      "metadata.user_labels.\"prow.k8s.io/refs.org\"",
                      "metadata.user_labels.\"prow.k8s.io/refs.pull\"",
                      "metadata.user_labels.\"prow.k8s.io/refs.repo\""
                    ],
                    "perSeriesAligner": "ALIGN_RATE"
                  },
                  "filter": "metric.type=\"kubernetes.io/container/cpu/core_usage_time\" resource.type=\"k8s_container\" metadata.user_labels.\"prow.k8s.io/type\"=\"presubmit\"",
                  "secondaryAggregation": {}
                }
              }
            }
          ],
          "timeshiftDuration": "0s",
          "yAxis": {
            "label": "y1Axis",
            "scale": "LINEAR"
          }
        }
      },
      {
        "title": "Not-Presubmit Container CPU Usage: job",
        "xyChart": {
          "chartOptions": {
            "mode": "COLOR"
          },
          "dataSets": [
            {
              "legendTemplate": "${metadata.user_labels\\.prow\\.k8s\\.io/job}",
              "minAlignmentPeriod": "60s",
              "plotType": "LINE",
              "targetAxis": "Y1",
              "timeSeriesQuery": {
                "timeSeriesFilter": {
                  "aggregation": {
                    "crossSeriesReducer": "REDUCE_SUM",
                    "groupByFields": [
                      "metadata.user_labels.\"prow.k8s.io/job\""
                    ],
                    "perSeriesAligner": "ALIGN_RATE"
                  },
                  "filter": "metric.type=\"kubernetes.io/container/cpu/core_usage_time\" resource.type=\"k8s_container\" metadata.user_labels.\"prow.k8s.io/type\"!=\"presubmit\"",
                  "secondaryAggregation": {}
                }
              }
            }
          ],
          "timeshiftDuration": "0s",
          "yAxis": {
            "label": "y1Axis",
            "scale": "LINEAR"
          }
        }
      },
      {
        "title": "Presubmit Container Memory Usage: job - org/repo#pull",
        "xyChart": {
          "chartOptions": {
            "mode": "COLOR"
          },
          "dataSets": [
            {
              "legendTemplate": "${metadata.user_labels\\.prow\\.k8s\\.io/job} - ${metadata.user_labels\\.prow\\.k8s\\.io/refs\\.org}/${metadata.user_labels\\.prow\\.k8s\\.io/refs\\.repo}#${metadata.user_labels\\.prow\\.k8s\\.io/refs\\.pull}",
              "minAlignmentPeriod": "60s",
              "plotType": "LINE",
              "targetAxis": "Y1",
              "timeSeriesQuery": {
                "timeSeriesFilter": {
                  "aggregation": {
                    "crossSeriesReducer": "REDUCE_SUM",
                    "groupByFields": [
                      "metadata.user_labels.\"prow.k8s.io/job\"",
                      "metadata.user_labels.\"prow.k8s.io/refs.org\"",
                      "metadata.user_labels.\"prow.k8s.io/refs.pull\"",
                      "metadata.user_labels.\"prow.k8s.io/refs.repo\""
                    ],
                    "perSeriesAligner": "ALIGN_MEAN"
                  },
                  "filter": "metric.type=\"kubernetes.io/container/memory/used_bytes\" resource.type=\"k8s_container\" metadata.user_labels.\"prow.k8s.io/type\"=\"presubmit\"",
                  "secondaryAggregation": {}
                },
                "unitOverride": "By"
              }
            }
          ],
          "timeshiftDuration": "0s",
          "yAxis": {
            "label": "y1Axis",
            "scale": "LINEAR"
          }
        }
      },
      {
        "title": "Not-Presubmit Container Memory Usage: job",
        "xyChart": {
          "chartOptions": {
            "mode": "COLOR"
          },
          "dataSets": [
            {
              "legendTemplate": "${metadata.user_labels\\.prow\\.k8s\\.io/job}",
              "minAlignmentPeriod": "60s",
              "plotType": "LINE",
              "targetAxis": "Y1",
              "timeSeriesQuery": {
                "timeSeriesFilter": {
                  "aggregation": {
                    "crossSeriesReducer": "REDUCE_SUM",
                    "groupByFields": [
                      "metadata.user_labels.\"prow.k8s.io/job\""
                    ],
                    "perSeriesAligner": "ALIGN_MEAN"
                  },
                  "filter": "metric.type=\"kubernetes.io/container/memory/used_bytes\" resource.type=\"k8s_container\" metadata.user_labels.\"prow.k8s.io/type\"!=\"presubmit\"",
                  "secondaryAggregation": {}
                }
              }
            }
          ],
          "timeshiftDuration": "0s",
          "yAxis": {
            "label": "y1Axis",
            "scale": "LINEAR"
          }
        }
      },
      {
        "title": "Presubmit Container CPU Limit Utilization: job - org/repo#pull",
        "xyChart": {
          "chartOptions": {
            "mode": "COLOR"
          },
          "dataSets": [
            {
              "legendTemplate": "${metadata.user_labels\\.prow\\.k8s\\.io/job} - ${metadata.user_labels\\.prow\\.k8s\\.io/refs\\.org}/${metadata.user_labels\\.prow\\.k8s\\.io/refs\\.repo}#${metadata.user_labels\\.prow\\.k8s\\.io/refs\\.pull}",
              "minAlignmentPeriod": "60s",
              "plotType": "LINE",
              "targetAxis": "Y1",
              "timeSeriesQuery": {
                "timeSeriesFilter": {
                  "aggregation": {
                    "crossSeriesReducer": "REDUCE_SUM",
                    "groupByFields": [
                      "metadata.user_labels.\"prow.k8s.io/job\"",
                      "metadata.user_labels.\"prow.k8s.io/refs.org\"",
                      "metadata.user_labels.\"prow.k8s.io/refs.pull\"",
                      "metadata.user_labels.\"prow.k8s.io/refs.repo\""
                    ],
                    "perSeriesAligner": "ALIGN_MEAN"
                  },
                  "filter": "metric.type=\"kubernetes.io/container/cpu/limit_utilization\" resource.type=\"k8s_container\" metadata.user_labels.\"prow.k8s.io/type\"=\"presubmit\"",
                  "secondaryAggregation": {}
                }
              }
            }
          ],
          "thresholds": [
            {
              "label": "label",
              "targetAxis": "Y1",
              "value": 1
            }
          ],
          "timeshiftDuration": "0s",
          "yAxis": {
            "label": "y1Axis",
            "scale": "LINEAR"
          }
        }
      },
      {
        "title": "Not-Presubmit Container CPU Limit Utilization: job",
        "xyChart": {
          "chartOptions": {
            "mode": "COLOR"
          },
          "dataSets": [
            {
              "legendTemplate": "${metadata.user_labels\\.prow\\.k8s\\.io/job}",
              "minAlignmentPeriod": "60s",
              "plotType": "LINE",
              "targetAxis": "Y1",
              "timeSeriesQuery": {
                "timeSeriesFilter": {
                  "aggregation": {
                    "crossSeriesReducer": "REDUCE_SUM",
                    "groupByFields": [
                      "metadata.user_labels.\"prow.k8s.io/job\""
                    ],
                    "perSeriesAligner": "ALIGN_MEAN"
                  },
                  "filter": "metric.type=\"kubernetes.io/container/cpu/limit_utilization\" resource.type=\"k8s_container\" metadata.user_labels.\"prow.k8s.io/type\"!=\"presubmit\"",
                  "secondaryAggregation": {}
                }
              }
            }
          ],
          "thresholds": [
            {
              "label": "label",
              "targetAxis": "Y1",
              "value": 1
            }
          ],
          "timeshiftDuration": "0s",
          "yAxis": {
            "label": "y1Axis",
            "scale": "LINEAR"
          }
        }
      },
      {
        "title": "Presubmit Container Memory Limit Utilization: job - org/repo#pull",
        "xyChart": {
          "chartOptions": {
            "mode": "COLOR"
          },
          "dataSets": [
            {
              "legendTemplate": "${metadata.user_labels\\.prow\\.k8s\\.io/job} - ${metadata.user_labels\\.prow\\.k8s\\.io/refs\\.org}/${metadata.user_labels\\.prow\\.k8s\\.io/refs\\.repo}#${metadata.user_labels\\.prow\\.k8s\\.io/refs\\.pull}",
              "minAlignmentPeriod": "60s",
              "plotType": "LINE",
              "targetAxis": "Y1",
              "timeSeriesQuery": {
                "timeSeriesFilter": {
                  "aggregation": {
                    "crossSeriesReducer": "REDUCE_SUM",
                    "groupByFields": [
                      "metadata.user_labels.\"prow.k8s.io/job\"",
                      "metadata.user_labels.\"prow.k8s.io/refs.org\"",
                      "metadata.user_labels.\"prow.k8s.io/refs.pull\"",
                      "metadata.user_labels.\"prow.k8s.io/refs.repo\""
                    ],
                    "perSeriesAligner": "ALIGN_MEAN"
                  },
                  "filter": "metric.type=\"kubernetes.io/container/memory/limit_utilization\" resource.type=\"k8s_container\" metadata.user_labels.\"prow.k8s.io/type\"=\"presubmit\"",
                  "secondaryAggregation": {}
                },
                "unitOverride": "1"
              }
            }
          ],
          "thresholds": [
            {
              "label": "label",
              "targetAxis": "Y1",
              "value": 1
            }
          ],
          "timeshiftDuration": "0s",
          "yAxis": {
            "label": "y1Axis",
            "scale": "LINEAR"
          }
        }
      },
      {
        "title": "Not-Presubmit Container Memory Limit Utilization: job",
        "xyChart": {
          "chartOptions": {
            "mode": "COLOR"
          },
          "dataSets": [
            {
              "legendTemplate": "${metadata.user_labels\\.prow\\.k8s\\.io/job}",
              "minAlignmentPeriod": "60s",
              "plotType": "LINE",
              "targetAxis": "Y1",
              "timeSeriesQuery": {
                "timeSeriesFilter": {
                  "aggregation": {
                    "crossSeriesReducer": "REDUCE_SUM",
                    "groupByFields": [
                      "metadata.user_labels.\"prow.k8s.io/job\""
                    ],
                    "perSeriesAligner": "ALIGN_MEAN"
                  },
                  "filter": "metric.type=\"kubernetes.io/container/memory/limit_utilization\" resource.type=\"k8s_container\" metadata.user_labels.\"prow.k8s.io/type\"!=\"presubmit\"",
                  "secondaryAggregation": {}
                },
                "unitOverride": "percent"
              }
            }
          ],
          "thresholds": [
            {
              "label": "label",
              "targetAxis": "Y1",
              "value": 1
            }
          ],
          "timeshiftDuration": "0s",
          "yAxis": {
            "label": "y1Axis",
            "scale": "LINEAR"
          }
        }
      }
    ]
  },
  "name": "projects/773781448124/dashboards/10510319052103514664"
}
