{
  "GlobalSettings": {
    "type": "dynamic",
    "separator": "_"
  },
  "vectors": [
    {
      "URL": "${Protocol}://${Host}:${Port}/api/v1/pods",
      "URLSetting": {
        "requestType": "get"
      },
      "metrics": [
        {
          "mPath": "$.items[*][?(@.metadata.namespace == 'nameSpaceKey' && @.metadata.name == 'podKey')].status.containerStatuses[*].",
          "attribute": [
            {
              "name": "restartCount",
              "index": 1,
              "type": 1,
              "operation": "none"
            },
			{
              "name": "ready",
              "index": 2,
              "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[*].metadata.namespace",
          "replaceVectorKey": "nameSpaceKey"
        },
        {
          "isPartOfHierarchy": true,
          "query": "$.items[*].metadata[?(@.namespace == 'nameSpaceKey')].name",
		  "replaceVectorKey": "podKey"
        },
		    {
          "isPartOfHierarchy": true,
          "query": "$.items[*][?(@.metadata.namespace == 'nameSpaceKey' && @.metadata.name == 'podKey')].status.containerStatuses[*].name",
          "replaceVectorKey": "nameKey"
        }
      ]
    }
  ]
}
