{
  "__inputs": [
    {
      "name": "DS_YESOREYERAM-INFINITY-DATASOURCE",
      "label": "yesoreyeram-infinity-datasource",
      "description": "",
      "type": "datasource",
      "pluginId": "yesoreyeram-infinity-datasource",
      "pluginName": "Infinity"
    }
  ],
  "__elements": {},
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "12.0.1"
    },
    {
      "type": "panel",
      "id": "table",
      "name": "Table",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "yesoreyeram-infinity-datasource",
      "name": "Infinity",
      "version": "3.3.0"
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": {
          "type": "grafana",
          "uid": "-- Grafana --"
        },
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "fiscalYearStartMonth": 0,
  "graphTooltip": 0,
  "id": null,
  "links": [],
  "panels": [
    {
      "datasource": {
        "type": "yesoreyeram-infinity-datasource",
        "uid": "${DS_YESOREYERAM-INFINITY-DATASOURCE}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": "auto",
            "cellOptions": {
              "type": "auto"
            },
            "inspect": false
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green"
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "metadata"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 535
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "positionInClusterQueue"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 264
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "positionInLocalQueue"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 248
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Owner Job"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 171
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Cluster Queue Position"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 160
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Local Queue"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 110
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Local Queue Position"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 159
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 9,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 1,
      "options": {
        "cellHeight": "sm",
        "footer": {
          "countRows": false,
          "fields": "",
          "reducer": [
            "sum"
          ],
          "show": false
        },
        "showHeader": true,
        "sortBy": [
          {
            "desc": false,
            "displayName": "Cluster Queue Position"
          }
        ]
      },
      "pluginVersion": "12.0.1",
      "targets": [
        {
          "columns": [
            {
              "selector": "metadata.name",
              "text": "Name",
              "type": "string"
            },
            {
              "selector": "metadata.namespace",
              "text": "Namespace",
              "type": "string"
            },
            {
              "selector": "metadata.creationTimestamp",
              "text": "Creation Timestamp",
              "timestampFormat": "",
              "type": "timestamp"
            },
            {
              "selector": "metadata.ownerReferences.0.name",
              "text": "Owner Job",
              "type": "string"
            },
            {
              "selector": "priority",
              "text": "Priority",
              "type": "string"
            },
            {
              "selector": "localQueueName",
              "text": "Local Queue",
              "type": "string"
            },
            {
              "selector": "positionInClusterQueue",
              "text": "Cluster Queue Position",
              "type": "number"
            },
            {
              "selector": "positionInLocalQueue",
              "text": "Local Queue Position",
              "type": "number"
            }
          ],
          "datasource": {
            "type": "yesoreyeram-infinity-datasource",
            "uid": "${DS_YESOREYERAM-INFINITY-DATASOURCE}"
          },
          "filters": [],
          "format": "table",
          "global_query_id": "",
          "parser": "backend",
          "refId": "A",
          "root_selector": "items",
          "source": "url",
          "type": "json",
          "url": "https://kubernetes.default.svc/apis/visibility.kueue.x-k8s.io/v1beta2/clusterqueues/$cluster_queue/pendingworkloads",
          "url_options": {
            "data": "",
            "method": "GET"
          }
        }
      ],
      "title": "Pending Workloads",
      "type": "table"
    }
  ],
  "schemaVersion": 41,
  "tags": [],
  "templating": {
    "list": [
      {
        "current": {},
        "datasource": {
          "type": "yesoreyeram-infinity-datasource",
          "uid": "${DS_YESOREYERAM-INFINITY-DATASOURCE}"
        },
        "definition": "",
        "label": "Cluster Queue",
        "name": "cluster_queue",
        "options": [],
        "query": {
          "infinityQuery": {
            "columns": [
              {
                "selector": "metadata.name",
                "text": "Name",
                "type": "string"
              }
            ],
            "computed_columns": [],
            "filters": [],
            "format": "table",
            "parser": "backend",
            "refId": "variable",
            "root_selector": "items",
            "source": "url",
            "type": "json",
            "url": "https://kubernetes.default.svc/apis/kueue.x-k8s.io/v1beta2/clusterqueues",
            "url_options": {
              "data": "",
              "method": "GET"
            }
          },
          "query": "",
          "queryType": "infinity"
        },
        "refresh": 1,
        "regex": "",
        "type": "query"
      }
    ]
  },
  "time": {
    "from": "now-6h",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "UTC",
  "title": "Pending Workloads for ClusterQueue visibility",
  "uid": "db3ada95-0a15-4459-8bc2-ee87f2f04a02",
  "version": 1,
  "weekStart": ""
}
