{
  "GlobalSettings": {
    "type": "dynamic"
  },
  "vectors": [
    {
      "URL": "$BaseURL/api/v5/cluster",
      "urlId": 1,
      "replaceParams": [
        {
          "param": "ClusterName",
          "path": "$.name"
        },
        {
          "param": "NodeName",
          "path": "$.nodes[*]"
        }
      ]
    },
    {
      "URL": "$BaseURL/api/v5/nodes/NodeName#1/metrics#ClusterName#1",
      "urlId": 2,
      "depURLIds": [
        1
      ],
      "path": [
        {
          "isPartOfHierarchy": true,
          "defName": "ClusterName#1"
        },
        {
          "isPartOfHierarchy": true,
          "defName": "NodeName#1"
        }
      ],
      "metrics": [
        {
          "mPath": "$.",
          "attribute": [
            {
              "name": "['packets.received']",
              "index": 1
            },
            {
              "name": "['packets.sent']",
              "index": 2
            },
            {
              "name": "['packets.connect.received']",
              "index": 3
            },
            {
              "name": "['packets.connack.auth_error']",
              "index": 4
            },
            {
              "name": "['packets.connack.error']",
              "index": 5
            },
            {
              "name": "['packets.connack.sent']",
              "index": 6
            },
            {
              "name": "['packets.publish.received']",
              "index": 7
            },
            {
              "name": "['packets.publish.sent']",
              "index": 8
            },
            {
              "name": "['packets.publish.inuse']",
              "index": 9
            },
            {
              "name": "['packets.publish.auth_error']",
              "index": 10
            },
            {
              "name": "['packets.publish.error']",
              "index": 11
            },
            {
              "name": "['packets.publish.dropped']",
              "index": 12
            },
            {
              "name": "['packets.puback.received']",
              "index": 13
            },
            {
              "name": "['packets.puback.sent']",
              "index": 14
            },
            {
              "name": "['packets.puback.inuse']",
              "index": 15
            },
            {
              "name": "['packets.puback.missed']",
              "index": 16
            },
            {
              "name": "['packets.pubrec.received']",
              "index": 17
            },
            {
              "name": "['packets.pubrec.sent']",
              "index": 18
            },
            {
              "name": "['packets.pubrec.inuse']",
              "index": 19
            },
            {
              "name": "['packets.pubrec.missed']",
              "index": 20
            },
            {
              "name": "['packets.pubrel.received']",
              "index": 21
            },
            {
              "name": "['packets.pubrel.sent']",
              "index": 22
            },
            {
              "name": "['packets.pubrel.missed']",
              "index": 23
            },
            {
              "name": "['packets.pubcomp.received']",
              "index": 24
            },
            {
              "name": "['packets.pubcomp.sent']",
              "index": 25
            },
            {
              "name": "['packets.pubcomp.inuse']",
              "index": 26
            },
            {
              "name": "['packets.pubcomp.missed']",
              "index": 27
            },
            {
              "name": "['packets.subscribe.received']",
              "index": 28
            },
            {
              "name": "['packets.subscribe.error']",
              "index": 29
            },
            {
              "name": "['packets.subscribe.auth_error']",
              "index": 30
            },
            {
              "name": "['packets.suback.sent']",
              "index": 31
            },
            {
              "name": "['packets.unsubscribe.received']",
              "index": 32
            },
            {
              "name": "['packets.unsubscribe.error']",
              "index": 33
            },
            {
              "name": "['packets.unsuback.sent']",
              "index": 34
            },
            {
              "name": "['packets.pingreq.received']",
              "index": 35
            },
            {
              "name": "['packets.pingresp.sent']",
              "index": 36
            },
            {
              "name": "['packets.disconnect.received']",
              "index": 37
            },
            {
              "name": "['packets.disconnect.sent']",
              "index": 38
            },
            {
              "name": "['packets.auth.received']",
              "index": 39
            },
            {
              "name": "['packets.auth.sent']",
              "index": 40
            }
          ]
        }
      ]
    }
  ]
}
