{
  "GlobalSettings": {
    "type": "dynamic",
    "separator": "_"
  },
  "vectors": [
    {
      "URL": "${Protocol}://${Host}:${Port}/apis/apps/v1/replicasets",
      "URLSetting": {
        "requestType": "get"
      },
      "metrics": [
        {
          "mPath": "$.items[*][?(@.metadata.namespace == 'nameSpaceKey' && @.metadata.name == 'nameKey')].status.",
          "attribute": [
            {
              "name": "replicas",
              "index": 1,
              "type": 1,
              "operation": "none"
            },
            {
              "name": "fullyLabeledReplicas",
              "index": 2,
              "type": 1,
              "operation": "none"
            },
			{
              "name": "readyReplicas",
              "index": 3,
              "type": 1,
              "operation": "none"
            },
			{
              "name": "availableReplicas",
              "index": 4,
              "type": 1,
              "operation": "none"
            },
			{
              "name": "observedGeneration",
              "index": 5,
              "type": 1,
              "operation": "none"
            }
          ],
          "operation": "none"
        },
		{
          "mPath": "$.items[*][?(@.metadata.namespace == 'nameSpaceKey' && @.metadata.name == 'nameKey')].metadata.annotations.",
          "attribute": [
            {
              "name": "['deployment.kubernetes.io/desired-replicas']",
              "index": 6,
              "type": 1,
              "operation": "none"
            },
            {
              "name": "['deployment.kubernetes.io/max-replicas']",
              "index": 7,
              "type": 1,
              "operation": "none"
            }
          ],
          "operation": "none"
        }
      ],
      "path": [
        {
          "isPartOfHierarchy": true,
          "query": "$.items[*].metadata.namespace",
          "replaceVectorKey": "nameSpaceKey"
        },
        {
          "isPartOfHierarchy": true,
          "query": "$.items[*].metadata[?(@.namespace == 'nameSpaceKey')].name",
          "replaceVectorKey": "nameKey"
        }
      ]
    }
  ]
}
