{
  "GlobalSettings": {
    "type": "dynamic",
    "separator": "_"
  },
  "vectors": [
    {
      "URL": "${Protocol}://${Host}:${Port}/api/v1/pods",
      "URLSetting": {
        "requestType": "get"
      },
      "metrics": [
		{
          "mPath": "$.items[*][?(@.status.conditions.length()==4 && @.metadata.namespace == 'nameSpaceKey' && @.metadata.name == 'nameKey)].status.",
          "attribute": [
            {
              "name": "phase",
              "index": 1,
              "type": 1,
              "operation": "none",
              "dataFromPattern": {
                "value": true,
                "pattern": [
                  {
                    "pValue": "Running",
                    "updatedValue": 1,
                    "useAsRegex": false
                  },
                  {
                    "pValue": "Pending",
                    "updatedValue": 2,
                    "useAsRegex": false
                  },
                  {
                    "pValue": "Failed",
                    "updatedValue": 3,
                    "useAsRegex": false
                  },
                  {
                    "pValue": "Unknown",
                    "updatedValue": 4,
                    "useAsRegex": false
                  }
                ]
              }
            }
          ],
          "operation": "none"
        },
		{
          "mPath": "$.items[*][?(@.status.conditions.length()==4 && @.metadata.namespace == 'nameSpaceKey' && @.metadata.name == 'nameKey)].status.conditions[*][?(@.type == 'Initialized')].",
          "attribute": [
            {
              "name": "status",
              "index": 2,
              "type": 1,
              "operation": "none",
              "dataFromPattern": {
                "value": true,
                "pattern": [
                  {
                    "pValue": "False",
                    "updatedValue": 0,
                    "useAsRegex": false
                  },
                  {
                    "pValue": "True",
                    "updatedValue": 1,
                    "useAsRegex": false
                  }
                ]
              }
            }
          ],
          "operation": "none"
        },
		{
          "mPath": "$.items[*][?(@.status.conditions.length()==4 && @.metadata.namespace == 'nameSpaceKey' && @.metadata.name == 'nameKey)].status.conditions[*][?(@.type == 'Ready')].",
          "attribute": [
            {
              "name": "status",
              "index": 3,
              "type": 1,
              "operation": "none",
              "dataFromPattern": {
                "value": true,
                "pattern": [
                  {
                    "pValue": "False",
                    "updatedValue": 0,
                    "useAsRegex": false
                  },
                  {
                    "pValue": "True",
                    "updatedValue": 1,
                    "useAsRegex": false
                  }
                ]
              }
            }
          ],
          "operation": "none"
        },
		{
          "mPath": "$.items[*][?(@.status.conditions.length()==4 && @.metadata.namespace == 'nameSpaceKey' && @.metadata.name == 'nameKey)].status.conditions[*][?(@.type == 'ContainersReady')].",
          "attribute": [
            {
              "name": "status",
              "index": 4,
              "type": 1,
              "operation": "none",
              "dataFromPattern": {
                "value": true,
                "pattern": [
                  {
                    "pValue": "False",
                    "updatedValue": 0,
                    "useAsRegex": false
                  },
                  {
                    "pValue": "True",
                    "updatedValue": 1,
                    "useAsRegex": false
                  }
                ]
              }
            }
          ],
          "operation": "none"
        },
		{
          "mPath": "$.items[*][?(@.status.conditions.length()==4 && @.metadata.namespace == 'nameSpaceKey' && @.metadata.name == 'nameKey)].status.conditions[*][?(@.type == 'PodScheduled')].",
          "attribute": [
            {
              "name": "status",
              "index": 5,
              "type": 1,
              "operation": "none",
              "dataFromPattern": {
                "value": true,
                "pattern": [
                  {
                    "pValue": "False",
                    "updatedValue": 0,
                    "useAsRegex": false
                  },
                  {
                    "pValue": "True",
                    "updatedValue": 1,
                    "useAsRegex": false
                  }
                ]
              }
            }
          ],
          "operation": "none"
        }
      ],
      "path": [
        {
          "isPartOfHierarchy": true,
          "query": "$.items[*][?(@.status.conditions.length()==4)].metadata.namespace",
          "replaceVectorKey": "nameSpaceKey"
        },
        {
          "isPartOfHierarchy": true,
          "query": "$.items[*][?(@.status.conditions.length()==4)].metadata[?(@.namespace == 'nameSpaceKey')].name",
          "replaceVectorKey": "nameKey"
        }
      ]
    }
  ]
}
