{
  "GlobalSettings": {
    "type": "dynamic",
    "separator": "_",
    "commonReplaceChars": "/"
  },
  "vectors": [
    {
      "URL": "$BaseURL/timeSeries?aggregation.crossSeriesReducer=REDUCE_NONE&filter=metric.type=\"kubernetes.io/pod/network/received_bytes_count\"&aggregation.perSeriesAligner=ALIGN_RATE&interval.startTime={$start_time}&interval.endTime={$end_time}&aggregation.alignmentPeriod=60s",
      "URLSetting": {
        "requestType": "get"
      },
      "metrics": [
        {
          "mPath": "$.timeSeries[*][?(@.resource.labels.location == 'locationID' && @.resource.labels.cluster_name == 'ClusterName' && @.resource.labels.namespace_name == 'NamespaceName' && @.resource.labels.pod_name == 'PodName')].points[0].value.",
          "attribute": [
            {
              "name": "doubleValue",
              "index": 1,
              "type": 1,
              "operation": "none"
            }
          ],
          "operation": "none"
        }
      ],
      "path": [
        {
          "isPartOfHierarchy": true,
          "query": "$.timeSeries[*].resource.labels.project_id"
        },
        {
          "isPartOfHierarchy": true,
          "query": "$.timeSeries[*].resource.labels.location",
          "replaceVectorKey": "locationID"
        },
        {
          "isPartOfHierarchy": true,
          "query": "$.timeSeries[*].resource.labels[?(@.location=='locationID' )].cluster_name",
          "replaceVectorKey": "ClusterName"
        },
        {
          "isPartOfHierarchy": true,
          "query": "$.timeSeries[*].resource.labels[?(@.location=='locationID'  && @.cluster_name=='ClusterName')].namespace_name",
          "replaceVectorKey": "NamespaceName"
        },
        {
          "isPartOfHierarchy": true,
          "query": "$.timeSeries[*].resource.labels[?(@.location=='locationID'  && @.cluster_name=='ClusterName' && @.namespace_name=='NamespaceName')].pod_name",
          "replaceVectorKey": "PodName"
        }
      ]
    },
    {
      "URL": "$BaseURL/timeSeries?aggregation.crossSeriesReducer=REDUCE_NONE&filter=metric.type=\"kubernetes.io/pod/network/sent_bytes_count\"&aggregation.perSeriesAligner=ALIGN_RATE&interval.startTime={$start_time}&interval.endTime={$end_time}&aggregation.alignmentPeriod=60s",
      "URLSetting": {
        "requestType": "get"
      },
      "metrics": [
        {
          "mPath": "$.timeSeries[*][?(@.resource.labels.location == 'locationID' && @.resource.labels.cluster_name == 'ClusterName' && @.resource.labels.namespace_name == 'NamespaceName' && @.resource.labels.pod_name == 'PodName')].points[0].value.",
          "attribute": [
            {
              "name": "doubleValue",
              "index": 2,
              "type": 1,
              "operation": "none"
            }
          ],
          "operation": "none"
        }
      ],
      "path": [
         {
          "isPartOfHierarchy": true,
          "query": "$.timeSeries[*].resource.labels.project_id"
        },
        {
          "isPartOfHierarchy": true,
          "query": "$.timeSeries[*].resource.labels.location",
          "replaceVectorKey": "locationID"
        },
        {
          "isPartOfHierarchy": true,
          "query": "$.timeSeries[*].resource.labels[?(@.location=='locationID' )].cluster_name",
          "replaceVectorKey": "ClusterName"
        },
        {
          "isPartOfHierarchy": true,
          "query": "$.timeSeries[*].resource.labels[?(@.location=='locationID'  && @.cluster_name=='ClusterName')].namespace_name",
          "replaceVectorKey": "NamespaceName"
        },
        {
          "isPartOfHierarchy": true,
          "query": "$.timeSeries[*].resource.labels[?(@.location=='locationID'  && @.cluster_name=='ClusterName' && @.namespace_name=='NamespaceName')].pod_name",
          "replaceVectorKey": "PodName"
        }
      ]
    }
    ]
}
