{
  "GlobalSettings": {
    "type": "fixed"
  },
  "vectors": [
    {
      "URL": "$BaseURL/nifi-api/system-diagnostics",
      "urlId": 1,
      "metrics": [
        {
          "mPath": "$.systemDiagnostics.aggregateSnapshot.",
          "attribute": [
            {
              "name": "totalNonHeapBytes",
              "index": 1,
              "convertTo": "kb",
              "convertFrom": "bytes"
            },
            {
              "name": "usedNonHeapBytes",
              "index": 2,
              "convertTo": "kb",
              "convertFrom": "bytes"
            },
            {
              "name": "freeNonHeapBytes",
              "index": 3,
              "convertTo": "kb",
              "convertFrom": "bytes"
            },
            {
              "name": "maxNonHeapBytes",
              "index": 4,
              "convertTo": "kb",
              "convertFrom": "bytes"
            },
            {
              "name": "totalHeapBytes",
              "index": 5,
              "convertTo": "kb",
              "convertFrom": "bytes"
            },
            {
              "name": "usedHeapBytes",
              "index": 6,
              "convertTo": "kb",
              "convertFrom": "bytes"
            },
            {
              "name": "freeHeapBytes",
              "index": 7,
              "convertTo": "kb",
              "convertFrom": "bytes"
            },
            {
              "name": "maxHeapBytes",
              "index": 8,
              "convertTo": "kb",
              "convertFrom": "bytes"
            },
            {
              "name": "heapUtilization",
              "index": 9,
              "dataFromPattern": {
                "pattern": [
                  {
                    "useAsRegex": true,
                    "pValue": "([0-9.]+)",
                    "updatedValue": 0,
                    "pickIndex": 1
                  }
                ],
                "value": true
              }
            },
            {
              "name": "availableProcessors",
              "index": 10
            },
            {
              "name": "processorLoadAverage",
              "index": 11
            },
            {
              "name": "totalThreads",
              "index": 12
            },
            {
              "name": "daemonThreads",
              "index": 13
            }
          ]
        },
        {
          "mPath": "$.systemDiagnostics.aggregateSnapshot.flowFileRepositoryStorageUsage.",
          "attribute": [
            {
              "name": "totalSpaceBytes",
              "index": 14,
              "convertTo": "kb",
              "convertFrom": "bytes"
            },
            {
              "name": "usedSpaceBytes",
              "index": 15,
              "convertTo": "kb",
              "convertFrom": "bytes"
            },
            {
              "name": "freeSpaceBytes",
              "index": 16,
              "convertTo": "kb",
              "convertFrom": "bytes"
            },
            {
              "name": "utilization",
              "index": 17,
              "dataFromPattern": {
                "value": true,
                "pattern": [
                  {
                    "useAsRegex": true,
                    "pValue": "([0-9.]+)",
                    "updatedValue": 0,
                    "pickIndex": 1
                  }
                ]
              }
            }
          ]
        },
        {
          "mPath": "$.systemDiagnostics.aggregateSnapshot.contentRepositoryStorageUsage[*].",
          "attribute": [
            {
              "name": "totalSpaceBytes",
              "index": 18,
              "convertTo": "kb",
              "convertFrom": "bytes"
            },
            {
              "name": "usedSpaceBytes",
              "index": 19,
              "convertTo": "kb",
              "convertFrom": "bytes"
            },
            {
              "name": "freeSpaceBytes",
              "index": 20,
              "convertTo": "kb",
              "convertFrom": "bytes"
            },
            {
              "name": "utilization",
              "index": 21,
              "dataFromPattern": {
                "value": true,
                "pattern": [
                  {
                    "useAsRegex": false,
                    "pValue": "([0-9.]+)",
                    "updatedValue": 0,
                    "pickIndex": 1
                  }
                ]
              }
            }
          ]
        },
        {
          "mPath": "$.systemDiagnostics.aggregateSnapshot.provenanceRepositoryStorageUsage[*].",
          "attribute": [
            {
              "name": "totalSpaceBytes",
              "index": 22,
              "convertTo": "kb",
              "convertFrom": "bytes"
            },
            {
              "name": "usedSpaceBytes",
              "index": 23,
              "convertTo": "kb",
              "convertFrom": "bytes"
            },
            {
              "name": "freeSpaceBytes",
              "index": 24,
              "convertTo": "kb",
              "convertFrom": "bytes"
            },
            {
              "name": "utilization",
              "index": 25,
              "dataFromPattern": {
                "value": true,
                "pattern": [
                  {
                    "useAsRegex": false,
                    "pValue": "([0-9.]+)",
                    "updatedValue": 0,
                    "pickIndex": 1
                  }
                ]
              }
            }
          ]
        },
        {
          "mPath": "$.systemDiagnostics.aggregateSnapshot.garbageCollection[*][?(@.name=='G1 Young Generation')].",
          "attribute": [
            {
              "name": "collectionCount",
              "index": 26
            },
            {
              "name": "collectionMillis",
              "index": 27
            }
          ]
        },
        {
          "mPath": "$.systemDiagnostics.aggregateSnapshot.garbageCollection[*][?(@.name=='G1 Old Generation')].",
          "attribute": [
            {
              "name": "collectionCount",
              "index": 28
            },
            {
              "name": "collectionMillis",
              "index": 29
            }
          ]
        }
      ]
    }
  ]
}
