You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by mc...@apache.org on 2018/03/15 19:12:00 UTC

[3/3] nifi git commit: NIFI-4849: Implemented REST Endpoint and associated backend code to generate a Diagnostics Report for a Processor Implemented review feedback. Refactored data model to make the API cleaner and delineate more along the lines of what

NIFI-4849: Implemented REST Endpoint and associated backend code to generate a Diagnostics Report for a Processor
Implemented review feedback. Refactored data model to make the API cleaner and delineate more along the lines of what permissions are required in order to see which details
Implementing review feedback
Removed sensitive information from the diagnostics reports
Fixed bug in merging logic for GCDiagnosticsSnapshots
This closes #2468


Project: http://git-wip-us.apache.org/repos/asf/nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/844da063
Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/844da063
Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/844da063

Branch: refs/heads/master
Commit: 844da063442c1819457108ff872881277c0e8e54
Parents: 867ffdb
Author: Mark Payne <ma...@hotmail.com>
Authored: Fri Feb 2 12:16:36 2018 -0500
Committer: Matt Gilman <ma...@gmail.com>
Committed: Thu Mar 15 15:10:41 2018 -0400

----------------------------------------------------------------------
 .../nifi/controller/queue/FlowFileQueue.java    |  10 +
 .../repository/ContentRepository.java           |   9 +
 .../repository/FlowFileRepository.java          |   8 +
 .../history/ComponentStatusRepository.java      |  13 +-
 .../history/GarbageCollectionHistory.java       |  27 ++
 .../status/history/GarbageCollectionStatus.java |  42 +++
 .../nifi/provenance/ProvenanceRepository.java   |   9 +
 .../provenance/MockProvenanceRepository.java    |   7 +-
 .../diagnostics/ClassLoaderDiagnosticsDTO.java  |  48 +++
 .../diagnostics/ConnectionDiagnosticsDTO.java   | 148 +++++++++
 .../ControllerServiceDiagnosticsDTO.java        |  48 +++
 .../diagnostics/GCDiagnosticsSnapshotDTO.java   |  67 ++++
 .../GarbageCollectionDiagnosticsDTO.java        |  61 ++++
 .../JVMControllerDiagnosticsSnapshotDTO.java    |  77 +++++
 .../api/dto/diagnostics/JVMDiagnosticsDTO.java  |  68 ++++
 .../diagnostics/JVMDiagnosticsSnapshotDTO.java  | 157 +++++++++
 .../JVMFlowDiagnosticsSnapshotDTO.java          |  94 ++++++
 .../JVMSystemDiagnosticsSnapshotDTO.java        | 189 +++++++++++
 .../NodeGCDiagnosticsSnapshotDTO.java           |  67 ++++
 .../NodeJVMDiagnosticsSnapshotDTO.java          |  68 ++++
 .../diagnostics/ProcessorDiagnosticsDTO.java    | 113 +++++++
 .../api/dto/diagnostics/RepositoryUsageDTO.java | 113 +++++++
 .../web/api/dto/diagnostics/ThreadDumpDTO.java  |  86 +++++
 .../api/entity/ProcessorDiagnosticsEntity.java  |  40 +++
 .../http/StandardHttpResponseMapper.java        |   2 +
 .../ProcessorDiagnosticsEndpointMerger.java     |  65 ++++
 .../ProcessorDiagnosticsEntityMerger.java       | 119 +++++++
 .../nifi/cluster/manager/StatusMerger.java      | 175 +++++++++-
 .../nifi/controller/ActiveThreadInfo.java       |  42 +++
 .../apache/nifi/controller/ProcessorNode.java   |   3 +
 .../apache/nifi/controller/FlowController.java  |  51 ++-
 .../nifi/controller/StandardFlowFileQueue.java  |  47 ++-
 .../nifi/controller/StandardProcessorNode.java  |  72 ++++-
 .../repository/FileSystemRepository.java        |  10 +
 .../repository/VolatileContentRepository.java   |   5 +
 .../repository/VolatileFlowFileRepository.java  |   5 +
 .../WriteAheadFlowFileRepository.java           |  11 +
 .../StandardGarbageCollectionHistory.java       |  50 +++
 .../StandardGarbageCollectionStatus.java        |  54 ++++
 .../VolatileComponentStatusRepository.java      |  52 ++-
 .../nifi/diagnostics/SystemDiagnostics.java     |  31 ++
 .../diagnostics/SystemDiagnosticsFactory.java   |  25 ++
 .../java/org/apache/nifi/util/ThreadUtils.java  |  90 ++++++
 .../repository/TestStandardProcessSession.java  |  10 +
 .../TestWriteAheadFlowFileRepository.java       |  25 ++
 .../org/apache/nifi/nar/ExtensionManager.java   |   6 +
 .../org/apache/nifi/web/NiFiServiceFacade.java  |   9 +
 .../nifi/web/StandardNiFiServiceFacade.java     | 109 ++++++-
 .../apache/nifi/web/api/ProcessorResource.java  |  54 ++++
 .../org/apache/nifi/web/api/dto/DtoFactory.java | 320 ++++++++++++++++++-
 .../apache/nifi/web/api/dto/EntityFactory.java  |  19 ++
 .../nifi/web/controller/ControllerFacade.java   |  17 +-
 .../PersistentProvenanceRepository.java         |  17 +-
 .../WriteAheadProvenanceRepository.java         |  16 +
 .../VolatileProvenanceRepository.java           |   5 +
 55 files changed, 3048 insertions(+), 37 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/nifi/blob/844da063/nifi-framework-api/src/main/java/org/apache/nifi/controller/queue/FlowFileQueue.java
----------------------------------------------------------------------
diff --git a/nifi-framework-api/src/main/java/org/apache/nifi/controller/queue/FlowFileQueue.java b/nifi-framework-api/src/main/java/org/apache/nifi/controller/queue/FlowFileQueue.java
index 7948ecb..9e637b0 100644
--- a/nifi-framework-api/src/main/java/org/apache/nifi/controller/queue/FlowFileQueue.java
+++ b/nifi-framework-api/src/main/java/org/apache/nifi/controller/queue/FlowFileQueue.java
@@ -59,6 +59,8 @@ public interface FlowFileQueue {
      */
     void purgeSwapFiles();
 
+    int getSwapFileCount();
+
     /**
      * Resets the comparator used by this queue to maintain order.
      *
@@ -115,6 +117,10 @@ public interface FlowFileQueue {
      */
     QueueSize getUnacknowledgedQueueSize();
 
+    QueueSize getActiveQueueSize();
+
+    QueueSize getSwapQueueSize();
+
     void acknowledge(FlowFileRecord flowFile);
 
     void acknowledge(Collection<FlowFileRecord> flowFiles);
@@ -125,6 +131,10 @@ public interface FlowFileQueue {
      */
     boolean isFull();
 
+    boolean isAnyActiveFlowFilePenalized();
+
+    boolean isAllActiveFlowFilesPenalized();
+
     /**
      * places the given file into the queue
      *

http://git-wip-us.apache.org/repos/asf/nifi/blob/844da063/nifi-framework-api/src/main/java/org/apache/nifi/controller/repository/ContentRepository.java
----------------------------------------------------------------------
diff --git a/nifi-framework-api/src/main/java/org/apache/nifi/controller/repository/ContentRepository.java b/nifi-framework-api/src/main/java/org/apache/nifi/controller/repository/ContentRepository.java
index b1ea87c..d749482 100644
--- a/nifi-framework-api/src/main/java/org/apache/nifi/controller/repository/ContentRepository.java
+++ b/nifi-framework-api/src/main/java/org/apache/nifi/controller/repository/ContentRepository.java
@@ -77,6 +77,15 @@ public interface ContentRepository {
     long getContainerUsableSpace(String containerName) throws IOException;
 
     /**
+     * Returns the name of the FileStore that the given container is stored on, or <code>null</code>
+     * if not applicable or unable to determine the file store name
+     *
+     * @param containerName the name of the container
+     * @return the name of the FileStore
+     */
+    String getContainerFileStoreName(String containerName);
+
+    /**
      * Creates a new content claim
      *
      * @param lossTolerant indicates whether the content for the new claim is

http://git-wip-us.apache.org/repos/asf/nifi/blob/844da063/nifi-framework-api/src/main/java/org/apache/nifi/controller/repository/FlowFileRepository.java
----------------------------------------------------------------------
diff --git a/nifi-framework-api/src/main/java/org/apache/nifi/controller/repository/FlowFileRepository.java b/nifi-framework-api/src/main/java/org/apache/nifi/controller/repository/FlowFileRepository.java
index 276d3b7..6560c0a 100644
--- a/nifi-framework-api/src/main/java/org/apache/nifi/controller/repository/FlowFileRepository.java
+++ b/nifi-framework-api/src/main/java/org/apache/nifi/controller/repository/FlowFileRepository.java
@@ -57,6 +57,14 @@ public interface FlowFileRepository extends Closeable {
     long getUsableStorageSpace() throws IOException;
 
     /**
+     * Returns the name of the FileStore that the repository is stored on, or <code>null</code>
+     * if not applicable or unable to determine the file store name
+     *
+     * @return the name of the FileStore
+     */
+    String getFileStoreName();
+
+    /**
      * Updates the repository with the given RepositoryRecords.
      *
      * @param records the records to update the repository with

http://git-wip-us.apache.org/repos/asf/nifi/blob/844da063/nifi-framework-api/src/main/java/org/apache/nifi/controller/status/history/ComponentStatusRepository.java
----------------------------------------------------------------------
diff --git a/nifi-framework-api/src/main/java/org/apache/nifi/controller/status/history/ComponentStatusRepository.java b/nifi-framework-api/src/main/java/org/apache/nifi/controller/status/history/ComponentStatusRepository.java
index 553903f..98d4863 100644
--- a/nifi-framework-api/src/main/java/org/apache/nifi/controller/status/history/ComponentStatusRepository.java
+++ b/nifi-framework-api/src/main/java/org/apache/nifi/controller/status/history/ComponentStatusRepository.java
@@ -16,9 +16,10 @@
  */
 package org.apache.nifi.controller.status.history;
 
-import org.apache.nifi.controller.status.ProcessGroupStatus;
-
 import java.util.Date;
+import java.util.List;
+
+import org.apache.nifi.controller.status.ProcessGroupStatus;
 
 /**
  * A repository for storing and retrieving components' historical status
@@ -38,8 +39,9 @@ public interface ComponentStatusRepository {
      * Captures the status information provided in the given report
      *
      * @param rootGroupStatus status of root group
+     * @param garbageCollectionStatus status of garbage collection
      */
-    void capture(ProcessGroupStatus rootGroupStatus);
+    void capture(ProcessGroupStatus rootGroupStatus, List<GarbageCollectionStatus> garbageCollectionStatus);
 
     /**
      * Captures the status information provided in the given report, providing a
@@ -48,8 +50,9 @@ public interface ComponentStatusRepository {
      *
      * @param rootGroupStatus status
      * @param timestamp timestamp of capture
+     * @param garbageCollectionStatus status of garbage collection
      */
-    void capture(ProcessGroupStatus rootGroupStatus, Date timestamp);
+    void capture(ProcessGroupStatus rootGroupStatus, List<GarbageCollectionStatus> garbageCollectionStatus, Date timestamp);
 
     /**
      * @return the Date at which the latest capture was performed
@@ -127,4 +130,6 @@ public interface ComponentStatusRepository {
      * period
      */
     StatusHistory getRemoteProcessGroupStatusHistory(String remoteGroupId, Date start, Date end, int preferredDataPoints);
+
+    GarbageCollectionHistory getGarbageCollectionHistory(Date start, Date end);
 }

http://git-wip-us.apache.org/repos/asf/nifi/blob/844da063/nifi-framework-api/src/main/java/org/apache/nifi/controller/status/history/GarbageCollectionHistory.java
----------------------------------------------------------------------
diff --git a/nifi-framework-api/src/main/java/org/apache/nifi/controller/status/history/GarbageCollectionHistory.java b/nifi-framework-api/src/main/java/org/apache/nifi/controller/status/history/GarbageCollectionHistory.java
new file mode 100644
index 0000000..3f64b09
--- /dev/null
+++ b/nifi-framework-api/src/main/java/org/apache/nifi/controller/status/history/GarbageCollectionHistory.java
@@ -0,0 +1,27 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.nifi.controller.status.history;
+
+import java.util.List;
+import java.util.Set;
+
+public interface GarbageCollectionHistory {
+    Set<String> getMemoryManagerNames();
+
+    List<GarbageCollectionStatus> getGarbageCollectionStatuses(String memoryManagerName);
+}

http://git-wip-us.apache.org/repos/asf/nifi/blob/844da063/nifi-framework-api/src/main/java/org/apache/nifi/controller/status/history/GarbageCollectionStatus.java
----------------------------------------------------------------------
diff --git a/nifi-framework-api/src/main/java/org/apache/nifi/controller/status/history/GarbageCollectionStatus.java b/nifi-framework-api/src/main/java/org/apache/nifi/controller/status/history/GarbageCollectionStatus.java
new file mode 100644
index 0000000..8ee6506
--- /dev/null
+++ b/nifi-framework-api/src/main/java/org/apache/nifi/controller/status/history/GarbageCollectionStatus.java
@@ -0,0 +1,42 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.nifi.controller.status.history;
+
+import java.util.Date;
+
+public interface GarbageCollectionStatus {
+    /**
+     * @return the name of the JVM memory manager that this status pertains to
+     */
+    String getMemoryManagerName();
+
+    /**
+     * @return timestamp of when the status was created
+     */
+    Date getTimestamp();
+
+    /**
+     * @return the number of times that garbage collection has occurred
+     */
+    long getCollectionCount();
+
+    /**
+     * @return the number of milliseconds spent performing garbage collection
+     */
+    long getCollectionMillis();
+}

http://git-wip-us.apache.org/repos/asf/nifi/blob/844da063/nifi-framework-api/src/main/java/org/apache/nifi/provenance/ProvenanceRepository.java
----------------------------------------------------------------------
diff --git a/nifi-framework-api/src/main/java/org/apache/nifi/provenance/ProvenanceRepository.java b/nifi-framework-api/src/main/java/org/apache/nifi/provenance/ProvenanceRepository.java
index 6d15d85..73d207e 100644
--- a/nifi-framework-api/src/main/java/org/apache/nifi/provenance/ProvenanceRepository.java
+++ b/nifi-framework-api/src/main/java/org/apache/nifi/provenance/ProvenanceRepository.java
@@ -200,6 +200,15 @@ public interface ProvenanceRepository extends ProvenanceEventRepository {
     long getContainerCapacity(String containerName) throws IOException;
 
     /**
+     * Returns the name of the FileStore that the given container is stored on, or <code>null</code>
+     * if not applicable or unable to determine the file store name
+     *
+     * @param containerName the name of the container
+     * @return the name of the FileStore
+     */
+    String getContainerFileStoreName(String containerName);
+
+    /**
      * @param containerName to check space on
      * @return the number of bytes available to be used used by the storage
      * mechanism that backs the container with the given name

http://git-wip-us.apache.org/repos/asf/nifi/blob/844da063/nifi-mock/src/main/java/org/apache/nifi/provenance/MockProvenanceRepository.java
----------------------------------------------------------------------
diff --git a/nifi-mock/src/main/java/org/apache/nifi/provenance/MockProvenanceRepository.java b/nifi-mock/src/main/java/org/apache/nifi/provenance/MockProvenanceRepository.java
index 0b4afcd..30e6bd1 100644
--- a/nifi-mock/src/main/java/org/apache/nifi/provenance/MockProvenanceRepository.java
+++ b/nifi-mock/src/main/java/org/apache/nifi/provenance/MockProvenanceRepository.java
@@ -160,8 +160,13 @@ public class MockProvenanceRepository implements ProvenanceRepository {
     }
 
     @Override
+    public String getContainerFileStoreName(String containerName) {
+        return null;
+    }
+
+    @Override
     public Set<String> getContainerNames() {
-        return new HashSet<String>();
+        return new HashSet<>();
     }
 
     @Override

http://git-wip-us.apache.org/repos/asf/nifi/blob/844da063/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/ClassLoaderDiagnosticsDTO.java
----------------------------------------------------------------------
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/ClassLoaderDiagnosticsDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/ClassLoaderDiagnosticsDTO.java
new file mode 100644
index 0000000..90f2497
--- /dev/null
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/ClassLoaderDiagnosticsDTO.java
@@ -0,0 +1,48 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.nifi.web.api.dto.diagnostics;
+
+import javax.xml.bind.annotation.XmlType;
+
+import org.apache.nifi.web.api.dto.BundleDTO;
+
+import io.swagger.annotations.ApiModelProperty;
+
+@XmlType(name = "classLoaderDiagnostics")
+public class ClassLoaderDiagnosticsDTO {
+    private BundleDTO bundle;
+    private ClassLoaderDiagnosticsDTO parentClassLoader;
+
+    @ApiModelProperty("Information about the Bundle that the ClassLoader belongs to, if any")
+    public BundleDTO getBundle() {
+        return bundle;
+    }
+
+    public void setBundle(BundleDTO bundle) {
+        this.bundle = bundle;
+    }
+
+    @ApiModelProperty("A ClassLoaderDiagnosticsDTO that provides information about the parent ClassLoader")
+    public ClassLoaderDiagnosticsDTO getParentClassLoader() {
+        return parentClassLoader;
+    }
+
+    public void setParentClassLoader(ClassLoaderDiagnosticsDTO parentClassLoader) {
+        this.parentClassLoader = parentClassLoader;
+    }
+}

http://git-wip-us.apache.org/repos/asf/nifi/blob/844da063/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/ConnectionDiagnosticsDTO.java
----------------------------------------------------------------------
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/ConnectionDiagnosticsDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/ConnectionDiagnosticsDTO.java
new file mode 100644
index 0000000..951ac41
--- /dev/null
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/ConnectionDiagnosticsDTO.java
@@ -0,0 +1,148 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.nifi.web.api.dto.diagnostics;
+
+import javax.xml.bind.annotation.XmlType;
+
+import org.apache.nifi.web.api.dto.ConnectionDTO;
+
+import io.swagger.annotations.ApiModelProperty;
+
+@XmlType(name = "connectionDiagnostics")
+public class ConnectionDiagnosticsDTO {
+    private ConnectionDTO connection;
+    private int totalFlowFileCount;
+    private long totalByteCount;
+    private int activeQueueFlowFileCount;
+    private long activeQueueByteCount;
+    private int swapFlowFileCount;
+    private long swapByteCount;
+    private int swapFiles;
+    private int inFlightFlowFileCount;
+    private long inFlightByteCount;
+    private Boolean allActiveQueueFlowFilesPenalized;
+    private Boolean anyActiveQueueFlowFilesPenalized;
+
+    @ApiModelProperty("Information about the Connection")
+    public ConnectionDTO getConnection() {
+        return connection;
+    }
+
+    public void setConnection(ConnectionDTO connection) {
+        this.connection = connection;
+    }
+
+    @ApiModelProperty("Total number of FlowFiles owned by the Connection")
+    public int getTotalFlowFileCount() {
+        return totalFlowFileCount;
+    }
+
+    public void setTotalFlowFileCount(int totalFlowFileCount) {
+        this.totalFlowFileCount = totalFlowFileCount;
+    }
+
+    @ApiModelProperty("Total number of bytes that make up the content for the FlowFiles owned by this Connection")
+    public long getTotalByteCount() {
+        return totalByteCount;
+    }
+
+    public void setTotalByteCount(long totalByteCount) {
+        this.totalByteCount = totalByteCount;
+    }
+
+    @ApiModelProperty("Total number of FlowFiles that exist in the Connection's Active Queue, immediately available to be offered up to a component")
+    public int getActiveQueueFlowFileCount() {
+        return activeQueueFlowFileCount;
+    }
+
+    public void setActiveQueueFlowFileCount(int activeQueueFlowFileCount) {
+        this.activeQueueFlowFileCount = activeQueueFlowFileCount;
+    }
+
+    @ApiModelProperty("Total number of bytes that make up the content for the FlowFiles that are present in the Connection's Active Queue")
+    public long getActiveQueueByteCount() {
+        return activeQueueByteCount;
+    }
+
+    public void setActiveQueueByteCount(long activeQueueByteCount) {
+        this.activeQueueByteCount = activeQueueByteCount;
+    }
+
+    @ApiModelProperty("The total number of FlowFiles that are swapped out for this Connection")
+    public int getSwapFlowFileCount() {
+        return swapFlowFileCount;
+    }
+
+    public void setSwapFlowFileCount(int swapFlowFileCount) {
+        this.swapFlowFileCount = swapFlowFileCount;
+    }
+
+    @ApiModelProperty("Total number of bytes that make up the content for the FlowFiles that are swapped out to disk for the Connection")
+    public long getSwapByteCount() {
+        return swapByteCount;
+    }
+
+    public void setSwapByteCount(long swapByteCount) {
+        this.swapByteCount = swapByteCount;
+    }
+
+    @ApiModelProperty("The number of Swap Files that exist for this Connection")
+    public int getSwapFiles() {
+        return swapFiles;
+    }
+
+    public void setSwapFiles(int swapFiles) {
+        this.swapFiles = swapFiles;
+    }
+
+    @ApiModelProperty("The number of In-Flight FlowFiles for this Connection. These are FlowFiles that belong to the connection but are currently being operated on by a Processor, Port, etc.")
+    public int getInFlightFlowFileCount() {
+        return inFlightFlowFileCount;
+    }
+
+    public void setInFlightFlowFileCount(int inFlightFlowFileCount) {
+        this.inFlightFlowFileCount = inFlightFlowFileCount;
+    }
+
+    @ApiModelProperty("The number bytes that make up the content of the FlowFiles that are In-Flight")
+    public long getInFlightByteCount() {
+        return inFlightByteCount;
+    }
+
+    public void setInFlightByteCount(long inFlightByteCount) {
+        this.inFlightByteCount = inFlightByteCount;
+    }
+
+    @ApiModelProperty("Whether or not all of the FlowFiles in the Active Queue are penalized")
+    public Boolean getAllActiveQueueFlowFilesPenalized() {
+        return allActiveQueueFlowFilesPenalized;
+    }
+
+    public void setAllActiveQueueFlowFilesPenalized(Boolean allFlowFilesPenalized) {
+        this.allActiveQueueFlowFilesPenalized = allFlowFilesPenalized;
+    }
+
+    @ApiModelProperty("Whether or not any of the FlowFiles in the Active Queue are penalized")
+    public Boolean getAnyActiveQueueFlowFilesPenalized() {
+        return anyActiveQueueFlowFilesPenalized;
+    }
+
+    public void setAnyActiveQueueFlowFilesPenalized(Boolean anyFlowFilesPenalized) {
+        this.anyActiveQueueFlowFilesPenalized = anyFlowFilesPenalized;
+    }
+}

http://git-wip-us.apache.org/repos/asf/nifi/blob/844da063/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/ControllerServiceDiagnosticsDTO.java
----------------------------------------------------------------------
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/ControllerServiceDiagnosticsDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/ControllerServiceDiagnosticsDTO.java
new file mode 100644
index 0000000..063b3b4
--- /dev/null
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/ControllerServiceDiagnosticsDTO.java
@@ -0,0 +1,48 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.nifi.web.api.dto.diagnostics;
+
+import javax.xml.bind.annotation.XmlType;
+
+import org.apache.nifi.web.api.entity.ControllerServiceEntity;
+
+import io.swagger.annotations.ApiModelProperty;
+
+@XmlType(name = "controllerServiceDiagnostics")
+public class ControllerServiceDiagnosticsDTO {
+    private ControllerServiceEntity controllerService;
+    private ClassLoaderDiagnosticsDTO classLoaderDiagnostics;
+
+    public void setControllerService(final ControllerServiceEntity controllerService) {
+        this.controllerService = controllerService;
+    }
+
+    @ApiModelProperty("The Controller Service")
+    public ControllerServiceEntity getControllerService() {
+        return controllerService;
+    }
+
+    public void setClassLoaderDiagnostics(ClassLoaderDiagnosticsDTO classLoaderDiagnostics) {
+        this.classLoaderDiagnostics = classLoaderDiagnostics;
+    }
+
+    @ApiModelProperty("Information about the Controller Service's Class Loader")
+    public ClassLoaderDiagnosticsDTO getClassLoaderDiagnostics() {
+        return classLoaderDiagnostics;
+    }
+}

http://git-wip-us.apache.org/repos/asf/nifi/blob/844da063/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/GCDiagnosticsSnapshotDTO.java
----------------------------------------------------------------------
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/GCDiagnosticsSnapshotDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/GCDiagnosticsSnapshotDTO.java
new file mode 100644
index 0000000..d9abeec
--- /dev/null
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/GCDiagnosticsSnapshotDTO.java
@@ -0,0 +1,67 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.nifi.web.api.dto.diagnostics;
+
+import java.util.Date;
+
+import javax.xml.bind.annotation.XmlType;
+
+import io.swagger.annotations.ApiModelProperty;
+
+@XmlType(name = "gcDiagnosticsSnapshot")
+public class GCDiagnosticsSnapshotDTO implements Cloneable {
+    private Date timestamp;
+    private Long collectionCount;
+    private Long collectionMillis;
+
+    @ApiModelProperty("The timestamp of when the Snapshot was taken")
+    public Date getTimestamp() {
+        return timestamp;
+    }
+
+    public void setTimestamp(Date timestamp) {
+        this.timestamp = timestamp;
+    }
+
+    @ApiModelProperty("The number of times that Garbage Collection has occurred")
+    public Long getCollectionCount() {
+        return collectionCount;
+    }
+
+    public void setCollectionCount(Long collectionCount) {
+        this.collectionCount = collectionCount;
+    }
+
+    @ApiModelProperty("The number of milliseconds that the Garbage Collector spent performing Garbage Collection duties")
+    public Long getCollectionMillis() {
+        return collectionMillis;
+    }
+
+    public void setCollectionMillis(Long collectionMillis) {
+        this.collectionMillis = collectionMillis;
+    }
+
+    @Override
+    public GCDiagnosticsSnapshotDTO clone() {
+        final GCDiagnosticsSnapshotDTO clone = new GCDiagnosticsSnapshotDTO();
+        clone.timestamp = timestamp;
+        clone.collectionCount = collectionCount;
+        clone.collectionMillis = collectionMillis;
+        return clone;
+    }
+}

http://git-wip-us.apache.org/repos/asf/nifi/blob/844da063/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/GarbageCollectionDiagnosticsDTO.java
----------------------------------------------------------------------
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/GarbageCollectionDiagnosticsDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/GarbageCollectionDiagnosticsDTO.java
new file mode 100644
index 0000000..330fd4d
--- /dev/null
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/GarbageCollectionDiagnosticsDTO.java
@@ -0,0 +1,61 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.nifi.web.api.dto.diagnostics;
+
+import java.util.List;
+import java.util.stream.Collectors;
+
+import javax.xml.bind.annotation.XmlType;
+
+import io.swagger.annotations.ApiModelProperty;
+
+@XmlType(name = "garbageCollectionDiagnostics")
+public class GarbageCollectionDiagnosticsDTO implements Cloneable {
+    private String memoryManagerName;
+    private List<GCDiagnosticsSnapshotDTO> snapshots;
+
+    @ApiModelProperty("The name of the Memory Manager that this Garbage Collection information pertains to")
+    public String getMemoryManagerName() {
+        return memoryManagerName;
+    }
+
+    public void setMemoryManagerName(String memoryManagerName) {
+        this.memoryManagerName = memoryManagerName;
+    }
+
+    @ApiModelProperty("A list of snapshots that have been taken to determine the health of the JVM's heap")
+    public List<GCDiagnosticsSnapshotDTO> getSnapshots() {
+        return snapshots;
+    }
+
+    public void setSnapshots(List<GCDiagnosticsSnapshotDTO> snapshots) {
+        this.snapshots = snapshots;
+    }
+
+    @Override
+    protected GarbageCollectionDiagnosticsDTO clone() {
+        final GarbageCollectionDiagnosticsDTO clone = new GarbageCollectionDiagnosticsDTO();
+        clone.memoryManagerName = memoryManagerName;
+        if (snapshots != null) {
+            clone.snapshots = snapshots.stream()
+                .map(GCDiagnosticsSnapshotDTO::clone)
+                .collect(Collectors.toList());
+        }
+        return clone;
+    }
+}

http://git-wip-us.apache.org/repos/asf/nifi/blob/844da063/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/JVMControllerDiagnosticsSnapshotDTO.java
----------------------------------------------------------------------
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/JVMControllerDiagnosticsSnapshotDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/JVMControllerDiagnosticsSnapshotDTO.java
new file mode 100644
index 0000000..13b9c11
--- /dev/null
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/JVMControllerDiagnosticsSnapshotDTO.java
@@ -0,0 +1,77 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.nifi.web.api.dto.diagnostics;
+
+import javax.xml.bind.annotation.XmlType;
+
+import io.swagger.annotations.ApiModelProperty;
+
+@XmlType(name = "jvmControllerDiagnosticsSnapshot")
+public class JVMControllerDiagnosticsSnapshotDTO implements Cloneable {
+    private Boolean primaryNode;
+    private Boolean clusterCoordinator;
+    private Integer maxTimerDrivenThreads;
+    private Integer maxEventDrivenThreads;
+
+    @ApiModelProperty("Whether or not this node is primary node")
+    public Boolean getPrimaryNode() {
+        return primaryNode;
+    }
+
+    public void setPrimaryNode(Boolean primaryNode) {
+        this.primaryNode = primaryNode;
+    }
+
+    @ApiModelProperty("Whether or not this node is cluster coordinator")
+    public Boolean getClusterCoordinator() {
+        return clusterCoordinator;
+    }
+
+    public void setClusterCoordinator(Boolean clusterCoordinator) {
+        this.clusterCoordinator = clusterCoordinator;
+    }
+
+    @ApiModelProperty("The maximum number of timer-driven threads")
+    public Integer getMaxTimerDrivenThreads() {
+        return maxTimerDrivenThreads;
+    }
+
+    public void setMaxTimerDrivenThreads(Integer maxTimerDrivenThreads) {
+        this.maxTimerDrivenThreads = maxTimerDrivenThreads;
+    }
+
+    @ApiModelProperty("The maximum number of event-driven threads")
+    public Integer getMaxEventDrivenThreads() {
+        return maxEventDrivenThreads;
+    }
+
+    public void setMaxEventDrivenThreads(Integer maxEventDrivenThreads) {
+        this.maxEventDrivenThreads = maxEventDrivenThreads;
+    }
+
+    @Override
+    public JVMControllerDiagnosticsSnapshotDTO clone() {
+        final JVMControllerDiagnosticsSnapshotDTO clone = new JVMControllerDiagnosticsSnapshotDTO();
+        clone.clusterCoordinator = clusterCoordinator;
+        clone.primaryNode = primaryNode;
+        clone.maxEventDrivenThreads = maxEventDrivenThreads;
+        clone.maxTimerDrivenThreads = maxTimerDrivenThreads;
+        return clone;
+    }
+
+}

http://git-wip-us.apache.org/repos/asf/nifi/blob/844da063/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/JVMDiagnosticsDTO.java
----------------------------------------------------------------------
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/JVMDiagnosticsDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/JVMDiagnosticsDTO.java
new file mode 100644
index 0000000..3e63f89
--- /dev/null
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/JVMDiagnosticsDTO.java
@@ -0,0 +1,68 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.nifi.web.api.dto.diagnostics;
+
+import java.util.List;
+
+import javax.xml.bind.annotation.XmlType;
+
+import io.swagger.annotations.ApiModelProperty;
+
+@XmlType(name = "jvmDiagnostics")
+public class JVMDiagnosticsDTO {
+    private Boolean clustered;
+    private Boolean connected;
+    private JVMDiagnosticsSnapshotDTO aggregateSnapshot;
+    private List<NodeJVMDiagnosticsSnapshotDTO> nodeSnapshots;
+
+    @ApiModelProperty("Whether or not the NiFi instance is clustered")
+    public Boolean getClustered() {
+        return clustered;
+    }
+
+    public void setClustered(Boolean clustered) {
+        this.clustered = clustered;
+    }
+
+    @ApiModelProperty("Whether or not the node is connected to the cluster")
+    public Boolean getConnected() {
+        return connected;
+    }
+
+    public void setConnected(Boolean connected) {
+        this.connected = connected;
+    }
+
+    @ApiModelProperty("Aggregate JVM diagnostic information about the entire cluster")
+    public JVMDiagnosticsSnapshotDTO getAggregateSnapshot() {
+        return aggregateSnapshot;
+    }
+
+    public void setAggregateSnapshot(JVMDiagnosticsSnapshotDTO aggregateSnapshot) {
+        this.aggregateSnapshot = aggregateSnapshot;
+    }
+
+    @ApiModelProperty("Node-wise breakdown of JVM diagnostic information")
+    public List<NodeJVMDiagnosticsSnapshotDTO> getNodeSnapshots() {
+        return nodeSnapshots;
+    }
+
+    public void setNodeSnapshots(List<NodeJVMDiagnosticsSnapshotDTO> nodeSnapshots) {
+        this.nodeSnapshots = nodeSnapshots;
+    }
+}

http://git-wip-us.apache.org/repos/asf/nifi/blob/844da063/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/JVMDiagnosticsSnapshotDTO.java
----------------------------------------------------------------------
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/JVMDiagnosticsSnapshotDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/JVMDiagnosticsSnapshotDTO.java
new file mode 100644
index 0000000..30075f4
--- /dev/null
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/JVMDiagnosticsSnapshotDTO.java
@@ -0,0 +1,157 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.nifi.web.api.dto.diagnostics;
+
+import javax.xml.bind.annotation.XmlType;
+
+import io.swagger.annotations.ApiModelProperty;
+
+@XmlType(name = "jvmDiagnosticsSnapshot")
+public class JVMDiagnosticsSnapshotDTO implements Cloneable {
+    private JVMSystemDiagnosticsSnapshotDTO systemDiagnosticsDto;
+    private JVMFlowDiagnosticsSnapshotDTO flowDiagnosticsDto;
+    private JVMControllerDiagnosticsSnapshotDTO controllerDiagnosticsDto;
+
+    @ApiModelProperty("System-related diagnostics information")
+    public JVMSystemDiagnosticsSnapshotDTO getSystemDiagnosticsDto() {
+        return systemDiagnosticsDto;
+    }
+
+    public void setSystemDiagnosticsDto(JVMSystemDiagnosticsSnapshotDTO systemDiagnosticsDto) {
+        this.systemDiagnosticsDto = systemDiagnosticsDto;
+    }
+
+    @ApiModelProperty("Flow-related diagnostics information")
+    public JVMFlowDiagnosticsSnapshotDTO getFlowDiagnosticsDto() {
+        return flowDiagnosticsDto;
+    }
+
+    public void setFlowDiagnosticsDto(JVMFlowDiagnosticsSnapshotDTO flowDiagnosticsDto) {
+        this.flowDiagnosticsDto = flowDiagnosticsDto;
+    }
+
+    @ApiModelProperty("Controller-related diagnostics information")
+    public JVMControllerDiagnosticsSnapshotDTO getControllerDiagnostics() {
+        return controllerDiagnosticsDto;
+    }
+
+    public void setControllerDiagnostics(JVMControllerDiagnosticsSnapshotDTO controllerDiagnostics) {
+        this.controllerDiagnosticsDto = controllerDiagnostics;
+    }
+
+
+    @Override
+    public JVMDiagnosticsSnapshotDTO clone() {
+        final JVMDiagnosticsSnapshotDTO clone = new JVMDiagnosticsSnapshotDTO();
+        clone.systemDiagnosticsDto = systemDiagnosticsDto == null ? null : systemDiagnosticsDto.clone();
+        clone.flowDiagnosticsDto = flowDiagnosticsDto == null ? null : flowDiagnosticsDto.clone();
+        clone.controllerDiagnosticsDto = controllerDiagnosticsDto == null ? null : controllerDiagnosticsDto.clone();
+        return clone;
+    }
+
+
+
+
+    @XmlType(name = "versionInfo")
+    public static class VersionInfoDTO implements Cloneable {
+
+        private String niFiVersion;
+        private String javaVendor;
+        private String javaVersion;
+        private String javaVmVendor;
+        private String osName;
+        private String osVersion;
+        private String osArchitecture;
+
+        @ApiModelProperty("The version of this NiFi.")
+        public String getNiFiVersion() {
+            return niFiVersion;
+        }
+
+        public void setNiFiVersion(String niFiVersion) {
+            this.niFiVersion = niFiVersion;
+        }
+
+        @ApiModelProperty("Java vendor")
+        public String getJavaVendor() {
+            return javaVendor;
+        }
+
+        public void setJavaVendor(String javaVendor) {
+            this.javaVendor = javaVendor;
+        }
+
+        @ApiModelProperty("Java VM Vendor")
+        public String getJavaVmVendor() {
+            return javaVmVendor;
+        }
+
+        public void setJavaVmVendor(String javaVmVendor) {
+            this.javaVmVendor = javaVmVendor;
+        }
+
+        @ApiModelProperty("Java version")
+        public String getJavaVersion() {
+            return javaVersion;
+        }
+
+        public void setJavaVersion(String javaVersion) {
+            this.javaVersion = javaVersion;
+        }
+
+        @ApiModelProperty("Host operating system name")
+        public String getOsName() {
+            return osName;
+        }
+
+        public void setOsName(String osName) {
+            this.osName = osName;
+        }
+
+        @ApiModelProperty("Host operating system version")
+        public String getOsVersion() {
+            return osVersion;
+        }
+
+        public void setOsVersion(String osVersion) {
+            this.osVersion = osVersion;
+        }
+
+        @ApiModelProperty("Host operating system architecture")
+        public String getOsArchitecture() {
+            return osArchitecture;
+        }
+
+        public void setOsArchitecture(String osArchitecture) {
+            this.osArchitecture = osArchitecture;
+        }
+
+
+        @Override
+        public VersionInfoDTO clone() {
+            final VersionInfoDTO other = new VersionInfoDTO();
+            other.setNiFiVersion(getNiFiVersion());
+            other.setJavaVendor(getJavaVendor());
+            other.setJavaVersion(getJavaVersion());
+            other.setOsName(getOsName());
+            other.setOsVersion(getOsVersion());
+            other.setOsArchitecture(getOsArchitecture());
+            return other;
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/nifi/blob/844da063/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/JVMFlowDiagnosticsSnapshotDTO.java
----------------------------------------------------------------------
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/JVMFlowDiagnosticsSnapshotDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/JVMFlowDiagnosticsSnapshotDTO.java
new file mode 100644
index 0000000..3556aa5
--- /dev/null
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/JVMFlowDiagnosticsSnapshotDTO.java
@@ -0,0 +1,94 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.nifi.web.api.dto.diagnostics;
+
+import java.util.HashSet;
+import java.util.Set;
+
+import javax.xml.bind.annotation.XmlType;
+
+import org.apache.nifi.web.api.dto.BundleDTO;
+
+import io.swagger.annotations.ApiModelProperty;
+
+@XmlType(name = "jvmFlowDiagnosticsSnapshot")
+public class JVMFlowDiagnosticsSnapshotDTO implements Cloneable {
+    private String uptime;
+    private String timeZone;
+    private Integer activeTimerDrivenThreads;
+    private Integer activeEventDrivenThreads;
+    private Set<BundleDTO> bundlesLoaded;
+
+    @ApiModelProperty("How long this node has been running, formatted as hours:minutes:seconds.milliseconds")
+    public String getUptime() {
+        return uptime;
+    }
+
+    public void setUptime(String uptime) {
+        this.uptime = uptime;
+    }
+
+    @ApiModelProperty("The name of the Time Zone that is configured, if available")
+    public String getTimeZone() {
+        return timeZone;
+    }
+
+    public void setTimeZone(String timeZone) {
+        this.timeZone = timeZone;
+    }
+
+
+    @ApiModelProperty("The number of timer-driven threads that are active")
+    public Integer getActiveTimerDrivenThreads() {
+        return activeTimerDrivenThreads;
+    }
+
+    public void setActiveTimerDrivenThreads(Integer activeTimerDrivenThreads) {
+        this.activeTimerDrivenThreads = activeTimerDrivenThreads;
+    }
+
+    @ApiModelProperty("The number of event-driven threads that are active")
+    public Integer getActiveEventDrivenThreads() {
+        return activeEventDrivenThreads;
+    }
+
+    public void setActiveEventDrivenThreads(Integer activeEventDrivenThreads) {
+        this.activeEventDrivenThreads = activeEventDrivenThreads;
+    }
+
+    @ApiModelProperty("The NiFi Bundles (NARs) that are loaded by NiFi")
+    public Set<BundleDTO> getBundlesLoaded() {
+        return bundlesLoaded;
+    }
+
+    public void setBundlesLoaded(Set<BundleDTO> bundlesLoaded) {
+        this.bundlesLoaded = bundlesLoaded;
+    }
+
+    @Override
+    public JVMFlowDiagnosticsSnapshotDTO clone() {
+        final JVMFlowDiagnosticsSnapshotDTO clone = new JVMFlowDiagnosticsSnapshotDTO();
+        clone.activeEventDrivenThreads = activeEventDrivenThreads;
+        clone.activeTimerDrivenThreads = activeTimerDrivenThreads;
+        clone.bundlesLoaded = bundlesLoaded == null ? null : new HashSet<>(bundlesLoaded);
+        clone.timeZone = timeZone;
+        clone.uptime = uptime;
+
+        return clone;
+    }
+}

http://git-wip-us.apache.org/repos/asf/nifi/blob/844da063/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/JVMSystemDiagnosticsSnapshotDTO.java
----------------------------------------------------------------------
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/JVMSystemDiagnosticsSnapshotDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/JVMSystemDiagnosticsSnapshotDTO.java
new file mode 100644
index 0000000..c1a0d81
--- /dev/null
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/JVMSystemDiagnosticsSnapshotDTO.java
@@ -0,0 +1,189 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.nifi.web.api.dto.diagnostics;
+
+import java.util.List;
+import java.util.Set;
+import java.util.stream.Collectors;
+
+import javax.xml.bind.annotation.XmlType;
+
+import io.swagger.annotations.ApiModelProperty;
+
+@XmlType(name = "jvmSystemDiagnosticsSnapshot")
+public class JVMSystemDiagnosticsSnapshotDTO implements Cloneable {
+    private RepositoryUsageDTO flowFileRepositoryStorageUsage;
+    private Set<RepositoryUsageDTO> contentRepositoryStorageUsage;
+    private Set<RepositoryUsageDTO> provenanceRepositoryStorageUsage;
+    private Long maxHeapBytes;
+    private String maxHeap;
+    private List<GarbageCollectionDiagnosticsDTO> garbageCollectionDiagnostics;
+
+    private Integer cpuCores;
+    private Double cpuLoadAverage;
+    private Long physicalMemoryBytes;
+    private String physicalMemory;
+
+    // Only available if we get OS MXBean and can create class com.sun.management.UnixOperatingSystemMXBean and the OS MXBean
+    // is of this type.
+    private Long openFileDescriptors;
+    private Long maxOpenFileDescriptors;
+
+
+    @ApiModelProperty("Information about the FlowFile Repository's usage")
+    public RepositoryUsageDTO getFlowFileRepositoryStorageUsage() {
+        return flowFileRepositoryStorageUsage;
+    }
+
+    public void setFlowFileRepositoryStorageUsage(RepositoryUsageDTO flowFileRepositoryStorageUsage) {
+        this.flowFileRepositoryStorageUsage = flowFileRepositoryStorageUsage;
+    }
+
+    @ApiModelProperty("Information about the Content Repository's usage")
+    public Set<RepositoryUsageDTO> getContentRepositoryStorageUsage() {
+        return contentRepositoryStorageUsage;
+    }
+
+    public void setContentRepositoryStorageUsage(Set<RepositoryUsageDTO> contentRepositoryStorageUsage) {
+        this.contentRepositoryStorageUsage = contentRepositoryStorageUsage;
+    }
+
+    @ApiModelProperty("Information about the Provenance Repository's usage")
+    public Set<RepositoryUsageDTO> getProvenanceRepositoryStorageUsage() {
+        return provenanceRepositoryStorageUsage;
+    }
+
+    public void setProvenanceRepositoryStorageUsage(Set<RepositoryUsageDTO> provenanceRepositoryStorageUsage) {
+        this.provenanceRepositoryStorageUsage = provenanceRepositoryStorageUsage;
+    }
+
+    @ApiModelProperty("The maximum number of bytes that the JVM heap is configured to use for heap")
+    public Long getMaxHeapBytes() {
+        return maxHeapBytes;
+    }
+
+    public void setMaxHeapBytes(Long heapBytes) {
+        this.maxHeapBytes = heapBytes;
+    }
+
+    @ApiModelProperty("The maximum number of bytes that the JVM heap is configured to use, as a human-readable value")
+    public String getMaxHeap() {
+        return maxHeap;
+    }
+
+    public void setMaxHeap(String maxHeap) {
+        this.maxHeap = maxHeap;
+    }
+
+    @ApiModelProperty("The number of CPU Cores available on the system")
+    public Integer getCpuCores() {
+        return cpuCores;
+    }
+
+    public void setCpuCores(Integer cpuCores) {
+        this.cpuCores = cpuCores;
+    }
+
+    @ApiModelProperty("The 1-minute CPU Load Average")
+    public Double getCpuLoadAverage() {
+        return cpuLoadAverage;
+    }
+
+    public void setCpuLoadAverage(Double cpuLoadAverage) {
+        this.cpuLoadAverage = cpuLoadAverage;
+    }
+
+    @ApiModelProperty("The number of bytes of RAM available on the system")
+    public Long getPhysicalMemoryBytes() {
+        return physicalMemoryBytes;
+    }
+
+    public void setPhysicalMemoryBytes(Long memoryBytes) {
+        this.physicalMemoryBytes = memoryBytes;
+    }
+
+    @ApiModelProperty("The number of bytes of RAM available on the system as a human-readable value")
+    public String getPhysicalMemory() {
+        return physicalMemory;
+    }
+
+    public void setPhysicalMemory(String memory) {
+        this.physicalMemory = memory;
+    }
+
+    @ApiModelProperty("The number of files that are open by the NiFi process")
+    public Long getOpenFileDescriptors() {
+        return openFileDescriptors;
+    }
+
+    public void setOpenFileDescriptors(Long openFileDescriptors) {
+        this.openFileDescriptors = openFileDescriptors;
+    }
+
+    @ApiModelProperty("The maximum number of open file descriptors that are available to each process")
+    public Long getMaxOpenFileDescriptors() {
+        return maxOpenFileDescriptors;
+    }
+
+    public void setMaxOpenFileDescriptors(Long maxOpenFileDescriptors) {
+        this.maxOpenFileDescriptors = maxOpenFileDescriptors;
+    }
+
+    @ApiModelProperty("Diagnostic information about the JVM's garbage collections")
+    public List<GarbageCollectionDiagnosticsDTO> getGarbageCollectionDiagnostics() {
+        return garbageCollectionDiagnostics;
+    }
+
+    public void setGarbageCollectionDiagnostics(List<GarbageCollectionDiagnosticsDTO> garbageCollectionDiagnostics) {
+        this.garbageCollectionDiagnostics = garbageCollectionDiagnostics;
+    }
+
+    @Override
+    public JVMSystemDiagnosticsSnapshotDTO clone() {
+        final JVMSystemDiagnosticsSnapshotDTO clone = new JVMSystemDiagnosticsSnapshotDTO();
+        clone.contentRepositoryStorageUsage = cloneRepoUsage(contentRepositoryStorageUsage);
+        clone.cpuCores = cpuCores;
+        clone.cpuLoadAverage = cpuLoadAverage;
+        clone.flowFileRepositoryStorageUsage = flowFileRepositoryStorageUsage == null ? null : flowFileRepositoryStorageUsage.clone();
+        clone.maxHeap = maxHeap;
+        clone.maxHeapBytes = maxHeapBytes;
+        clone.maxOpenFileDescriptors = maxOpenFileDescriptors;
+        clone.openFileDescriptors = openFileDescriptors;
+        clone.physicalMemory = physicalMemory;
+        clone.physicalMemoryBytes = physicalMemoryBytes;
+        clone.provenanceRepositoryStorageUsage = cloneRepoUsage(provenanceRepositoryStorageUsage);
+
+        if (garbageCollectionDiagnostics != null) {
+            clone.garbageCollectionDiagnostics = garbageCollectionDiagnostics.stream()
+                .map(gcDiag -> gcDiag.clone())
+                .collect(Collectors.toList());
+        }
+
+        return clone;
+    }
+
+    private static Set<RepositoryUsageDTO> cloneRepoUsage(final Set<RepositoryUsageDTO> repoUsage) {
+        if (repoUsage == null) {
+            return null;
+        }
+
+        return repoUsage.stream()
+            .map(usage -> usage.clone())
+            .collect(Collectors.toSet());
+    }
+}

http://git-wip-us.apache.org/repos/asf/nifi/blob/844da063/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/NodeGCDiagnosticsSnapshotDTO.java
----------------------------------------------------------------------
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/NodeGCDiagnosticsSnapshotDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/NodeGCDiagnosticsSnapshotDTO.java
new file mode 100644
index 0000000..008dc99
--- /dev/null
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/NodeGCDiagnosticsSnapshotDTO.java
@@ -0,0 +1,67 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.nifi.web.api.dto.diagnostics;
+
+import javax.xml.bind.annotation.XmlType;
+
+import io.swagger.annotations.ApiModelProperty;
+
+@XmlType(name = "nodeGCDiagnosticsSnapshot")
+public class NodeGCDiagnosticsSnapshotDTO {
+    private String nodeId;
+    private String address;
+    private Integer apiPort;
+
+    private GCDiagnosticsSnapshotDTO snapshot;
+
+    @ApiModelProperty("The unique ID that identifies the node")
+    public String getNodeId() {
+        return nodeId;
+    }
+
+    public void setNodeId(String nodeId) {
+        this.nodeId = nodeId;
+    }
+
+    @ApiModelProperty("The API address of the node")
+    public String getAddress() {
+        return address;
+    }
+
+    public void setAddress(String address) {
+        this.address = address;
+    }
+
+    @ApiModelProperty("The API port used to communicate with the node")
+    public Integer getApiPort() {
+        return apiPort;
+    }
+
+    public void setApiPort(Integer apiPort) {
+        this.apiPort = apiPort;
+    }
+
+    @ApiModelProperty("The Garbage Collection Diagnostics Snapshot")
+    public GCDiagnosticsSnapshotDTO getSnapshot() {
+        return snapshot;
+    }
+
+    public void setSnapshot(GCDiagnosticsSnapshotDTO snapshot) {
+        this.snapshot = snapshot;
+    }
+}

http://git-wip-us.apache.org/repos/asf/nifi/blob/844da063/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/NodeJVMDiagnosticsSnapshotDTO.java
----------------------------------------------------------------------
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/NodeJVMDiagnosticsSnapshotDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/NodeJVMDiagnosticsSnapshotDTO.java
new file mode 100644
index 0000000..ceca0ae
--- /dev/null
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/NodeJVMDiagnosticsSnapshotDTO.java
@@ -0,0 +1,68 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.nifi.web.api.dto.diagnostics;
+
+import javax.xml.bind.annotation.XmlType;
+
+import io.swagger.annotations.ApiModelProperty;
+
+@XmlType(name = "nodeJVMDiagnosticsSnapshot")
+public class NodeJVMDiagnosticsSnapshotDTO {
+    private String nodeId;
+    private String address;
+    private Integer apiPort;
+
+    private JVMDiagnosticsSnapshotDTO snapshot;
+
+    @ApiModelProperty("The unique ID that identifies the node")
+    public String getNodeId() {
+        return nodeId;
+    }
+
+    public void setNodeId(String nodeId) {
+        this.nodeId = nodeId;
+    }
+
+    @ApiModelProperty("The API address of the node")
+    public String getAddress() {
+        return address;
+    }
+
+    public void setAddress(String address) {
+        this.address = address;
+    }
+
+    @ApiModelProperty("The API port used to communicate with the node")
+    public Integer getApiPort() {
+        return apiPort;
+    }
+
+    public void setApiPort(Integer apiPort) {
+        this.apiPort = apiPort;
+    }
+
+    @ApiModelProperty("The JVM Diagnostics Snapshot")
+    public JVMDiagnosticsSnapshotDTO getSnapshot() {
+        return snapshot;
+    }
+
+    public void setSnapshot(JVMDiagnosticsSnapshotDTO snapshot) {
+        this.snapshot = snapshot;
+    }
+
+}

http://git-wip-us.apache.org/repos/asf/nifi/blob/844da063/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/ProcessorDiagnosticsDTO.java
----------------------------------------------------------------------
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/ProcessorDiagnosticsDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/ProcessorDiagnosticsDTO.java
new file mode 100644
index 0000000..77f5499
--- /dev/null
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/ProcessorDiagnosticsDTO.java
@@ -0,0 +1,113 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.nifi.web.api.dto.diagnostics;
+
+import java.util.List;
+import java.util.Set;
+
+import javax.xml.bind.annotation.XmlType;
+
+import org.apache.nifi.web.api.dto.ProcessorDTO;
+import org.apache.nifi.web.api.dto.status.ProcessorStatusDTO;
+
+import io.swagger.annotations.ApiModelProperty;
+
+@XmlType(name = "processorDiagnostics")
+public class ProcessorDiagnosticsDTO {
+    private ProcessorDTO processor;
+    private ProcessorStatusDTO processorStatus;
+    private Set<ControllerServiceDiagnosticsDTO> referencedControllerServices;
+    private Set<ConnectionDiagnosticsDTO> incomingConnections;
+    private Set<ConnectionDiagnosticsDTO> outgoingConnections;
+    private JVMDiagnosticsDTO jvmDiagnostics;
+    private List<ThreadDumpDTO> threadDumps;
+    private ClassLoaderDiagnosticsDTO classLoaderDiagnostics;
+
+
+    @ApiModelProperty("Information about the Processor for which the Diagnostic Report is generated")
+    public ProcessorDTO getProcessor() {
+        return processor;
+    }
+
+    public void setProcessor(ProcessorDTO processor) {
+        this.processor = processor;
+    }
+
+    @ApiModelProperty("The Status for the Processor for which the Diagnostic Report is generated")
+    public ProcessorStatusDTO getProcessorStatus() {
+        return processorStatus;
+    }
+
+    public void setProcessorStatus(ProcessorStatusDTO processorStatus) {
+        this.processorStatus = processorStatus;
+    }
+
+    @ApiModelProperty("Diagnostic Information about all Controller Services that the Processor is referencing")
+    public Set<ControllerServiceDiagnosticsDTO> getReferencedControllerServices() {
+        return referencedControllerServices;
+    }
+
+    public void setReferencedControllerServices(Set<ControllerServiceDiagnosticsDTO> referencedControllerServices) {
+        this.referencedControllerServices = referencedControllerServices;
+    }
+
+    @ApiModelProperty("Diagnostic Information about all incoming Connections")
+    public Set<ConnectionDiagnosticsDTO> getIncomingConnections() {
+        return incomingConnections;
+    }
+
+    public void setIncomingConnections(Set<ConnectionDiagnosticsDTO> incomingConnections) {
+        this.incomingConnections = incomingConnections;
+    }
+
+    @ApiModelProperty("Diagnostic Information about all outgoing Connections")
+    public Set<ConnectionDiagnosticsDTO> getOutgoingConnections() {
+        return outgoingConnections;
+    }
+
+    public void setOutgoingConnections(Set<ConnectionDiagnosticsDTO> outgoingConnections) {
+        this.outgoingConnections = outgoingConnections;
+    }
+
+    @ApiModelProperty("Diagnostic Information about the JVM and system-level diagnostics")
+    public JVMDiagnosticsDTO getJvmDiagnostics() {
+        return jvmDiagnostics;
+    }
+
+    public void setJvmDiagnostics(JVMDiagnosticsDTO jvmDiagnostics) {
+        this.jvmDiagnostics = jvmDiagnostics;
+    }
+
+    @ApiModelProperty("Thread Dumps that were taken of the threads that are active in the Processor")
+    public List<ThreadDumpDTO> getThreadDumps() {
+        return threadDumps;
+    }
+
+    public void setThreadDumps(List<ThreadDumpDTO> threadDumps) {
+        this.threadDumps = threadDumps;
+    }
+
+    @ApiModelProperty("Information about the Controller Service's Class Loader")
+    public ClassLoaderDiagnosticsDTO getClassLoaderDiagnostics() {
+        return classLoaderDiagnostics;
+    }
+
+    public void setClassLoaderDiagnostics(ClassLoaderDiagnosticsDTO classLoaderDiagnostics) {
+        this.classLoaderDiagnostics = classLoaderDiagnostics;
+    }
+}

http://git-wip-us.apache.org/repos/asf/nifi/blob/844da063/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/RepositoryUsageDTO.java
----------------------------------------------------------------------
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/RepositoryUsageDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/RepositoryUsageDTO.java
new file mode 100644
index 0000000..28df71e
--- /dev/null
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/RepositoryUsageDTO.java
@@ -0,0 +1,113 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.nifi.web.api.dto.diagnostics;
+
+import javax.xml.bind.annotation.XmlType;
+
+import io.swagger.annotations.ApiModelProperty;
+
+@XmlType(name = "repositoryUsage")
+public class RepositoryUsageDTO implements Cloneable {
+    private String name;
+    private String fileStoreHash;
+
+    private String freeSpace;
+    private String totalSpace;
+    private Long freeSpaceBytes;
+    private Long totalSpaceBytes;
+    private String utilization;
+
+
+    @ApiModelProperty("The name of the repository")
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    @ApiModelProperty("A SHA-256 hash of the File Store name/path that is used to store the repository's data. This information is exposed as a hash in order to avoid "
+        + "exposing potentially sensitive information that is not generally relevant. What is typically relevant is whether or not multiple repositories on the same node are "
+        + "using the same File Store, as this indicates that the repositories are competing for the resources of the backing disk/storage mechanism.")
+    public String getFileStoreHash() {
+        return fileStoreHash;
+    }
+
+    public void setFileStoreHash(String fileStore) {
+        this.fileStoreHash = fileStore;
+    }
+
+    @ApiModelProperty("Amount of free space.")
+    public String getFreeSpace() {
+        return freeSpace;
+    }
+
+    public void setFreeSpace(String freeSpace) {
+        this.freeSpace = freeSpace;
+    }
+
+    @ApiModelProperty("Amount of total space.")
+    public String getTotalSpace() {
+        return totalSpace;
+    }
+
+    public void setTotalSpace(String totalSpace) {
+        this.totalSpace = totalSpace;
+    }
+
+    @ApiModelProperty("Utilization of this storage location.")
+    public String getUtilization() {
+        return utilization;
+    }
+
+    public void setUtilization(String utilization) {
+        this.utilization = utilization;
+    }
+
+    @ApiModelProperty("The number of bytes of free space.")
+    public Long getFreeSpaceBytes() {
+        return freeSpaceBytes;
+    }
+
+    public void setFreeSpaceBytes(Long freeSpaceBytes) {
+        this.freeSpaceBytes = freeSpaceBytes;
+    }
+
+    @ApiModelProperty("The number of bytes of total space.")
+    public Long getTotalSpaceBytes() {
+        return totalSpaceBytes;
+    }
+
+    public void setTotalSpaceBytes(Long totalSpaceBytes) {
+        this.totalSpaceBytes = totalSpaceBytes;
+    }
+
+    @Override
+    public RepositoryUsageDTO clone() {
+        final RepositoryUsageDTO clone = new RepositoryUsageDTO();
+        clone.fileStoreHash = fileStoreHash;
+        clone.freeSpace = freeSpace;
+        clone.freeSpaceBytes = freeSpaceBytes;
+        clone.name = name;
+        clone.totalSpace = totalSpace;
+        clone.totalSpaceBytes = totalSpaceBytes;
+        clone.utilization = utilization;
+        return clone;
+    }
+}

http://git-wip-us.apache.org/repos/asf/nifi/blob/844da063/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/ThreadDumpDTO.java
----------------------------------------------------------------------
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/ThreadDumpDTO.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/ThreadDumpDTO.java
new file mode 100644
index 0000000..be0b7ac
--- /dev/null
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/diagnostics/ThreadDumpDTO.java
@@ -0,0 +1,86 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.nifi.web.api.dto.diagnostics;
+
+import javax.xml.bind.annotation.XmlType;
+
+import io.swagger.annotations.ApiModelProperty;
+
+@XmlType(name = "threadDump")
+public class ThreadDumpDTO {
+    private String nodeId;
+    private String nodeAddress;
+    private Integer apiPort;
+    private String stackTrace;
+    private String threadName;
+    private long threadActiveMillis;
+
+    @ApiModelProperty("The ID of the node in the cluster")
+    public String getNodeId() {
+        return nodeId;
+    }
+
+    public void setNodeId(String nodeId) {
+        this.nodeId = nodeId;
+    }
+
+    @ApiModelProperty("The address of the node in the cluster")
+    public String getNodeAddress() {
+        return nodeAddress;
+    }
+
+    public void setNodeAddress(String nodeAddress) {
+        this.nodeAddress = nodeAddress;
+    }
+
+    @ApiModelProperty("The port the node is listening for API requests.")
+    public Integer getApiPort() {
+        return apiPort;
+    }
+
+    public void setApiPort(Integer port) {
+        this.apiPort = port;
+    }
+
+    @ApiModelProperty("The stack trace for the thread")
+    public String getStackTrace() {
+        return stackTrace;
+    }
+
+    public void setStackTrace(String stackTrace) {
+        this.stackTrace = stackTrace;
+    }
+
+    @ApiModelProperty("The name of the thread")
+    public String getThreadName() {
+        return threadName;
+    }
+
+    public void setThreadName(String threadName) {
+        this.threadName = threadName;
+    }
+
+    @ApiModelProperty("The number of milliseconds that the thread has been executing in the Processor")
+    public long getThreadActiveMillis() {
+        return threadActiveMillis;
+    }
+
+    public void setThreadActiveMillis(long threadActiveMillis) {
+        this.threadActiveMillis = threadActiveMillis;
+    }
+}

http://git-wip-us.apache.org/repos/asf/nifi/blob/844da063/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/ProcessorDiagnosticsEntity.java
----------------------------------------------------------------------
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/ProcessorDiagnosticsEntity.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/ProcessorDiagnosticsEntity.java
new file mode 100644
index 0000000..fb8d658
--- /dev/null
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/ProcessorDiagnosticsEntity.java
@@ -0,0 +1,40 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.nifi.web.api.entity;
+
+import javax.xml.bind.annotation.XmlRootElement;
+
+import org.apache.nifi.web.api.dto.diagnostics.ProcessorDiagnosticsDTO;
+
+import io.swagger.annotations.ApiModelProperty;
+
+@XmlRootElement(name = "processorDiagnosticsEntity")
+public class ProcessorDiagnosticsEntity extends ComponentEntity implements Permissible<ProcessorDiagnosticsDTO> {
+    private ProcessorDiagnosticsDTO processorDiagnostics;
+
+    @Override
+    @ApiModelProperty("The Processor Diagnostics")
+    public ProcessorDiagnosticsDTO getComponent() {
+        return processorDiagnostics;
+    }
+
+    @Override
+    public void setComponent(ProcessorDiagnosticsDTO processorDiagnostics) {
+        this.processorDiagnostics = processorDiagnostics;
+    }
+}

http://git-wip-us.apache.org/repos/asf/nifi/blob/844da063/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-cluster/src/main/java/org/apache/nifi/cluster/coordination/http/StandardHttpResponseMapper.java
----------------------------------------------------------------------
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-cluster/src/main/java/org/apache/nifi/cluster/coordination/http/StandardHttpResponseMapper.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-cluster/src/main/java/org/apache/nifi/cluster/coordination/http/StandardHttpResponseMapper.java
index fa23603..96f2592 100644
--- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-cluster/src/main/java/org/apache/nifi/cluster/coordination/http/StandardHttpResponseMapper.java
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-cluster/src/main/java/org/apache/nifi/cluster/coordination/http/StandardHttpResponseMapper.java
@@ -49,6 +49,7 @@ import org.apache.nifi.cluster.coordination.http.endpoints.PortStatusEndpointMer
 import org.apache.nifi.cluster.coordination.http.endpoints.PrioritizerTypesEndpointMerger;
 import org.apache.nifi.cluster.coordination.http.endpoints.ProcessGroupEndpointMerger;
 import org.apache.nifi.cluster.coordination.http.endpoints.ProcessGroupsEndpointMerger;
+import org.apache.nifi.cluster.coordination.http.endpoints.ProcessorDiagnosticsEndpointMerger;
 import org.apache.nifi.cluster.coordination.http.endpoints.ProcessorEndpointMerger;
 import org.apache.nifi.cluster.coordination.http.endpoints.ProcessorStatusEndpointMerger;
 import org.apache.nifi.cluster.coordination.http.endpoints.ProcessorTypesEndpointMerger;
@@ -155,6 +156,7 @@ public class StandardHttpResponseMapper implements HttpResponseMapper {
         endpointMergers.add(new AccessPolicyEndpointMerger());
         endpointMergers.add(new SearchUsersEndpointMerger());
         endpointMergers.add(new VariableRegistryEndpointMerger());
+        endpointMergers.add(new ProcessorDiagnosticsEndpointMerger(snapshotMillis));
     }
 
     @Override

http://git-wip-us.apache.org/repos/asf/nifi/blob/844da063/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-cluster/src/main/java/org/apache/nifi/cluster/coordination/http/endpoints/ProcessorDiagnosticsEndpointMerger.java
----------------------------------------------------------------------
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-cluster/src/main/java/org/apache/nifi/cluster/coordination/http/endpoints/ProcessorDiagnosticsEndpointMerger.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-cluster/src/main/java/org/apache/nifi/cluster/coordination/http/endpoints/ProcessorDiagnosticsEndpointMerger.java
new file mode 100644
index 0000000..1540599
--- /dev/null
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-cluster/src/main/java/org/apache/nifi/cluster/coordination/http/endpoints/ProcessorDiagnosticsEndpointMerger.java
@@ -0,0 +1,65 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.nifi.cluster.coordination.http.endpoints;
+
+import java.net.URI;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Set;
+import java.util.regex.Pattern;
+
+import org.apache.nifi.cluster.coordination.http.EndpointResponseMerger;
+import org.apache.nifi.cluster.manager.NodeResponse;
+import org.apache.nifi.cluster.manager.ProcessorDiagnosticsEntityMerger;
+import org.apache.nifi.cluster.protocol.NodeIdentifier;
+import org.apache.nifi.web.api.entity.ProcessorDiagnosticsEntity;
+
+public class ProcessorDiagnosticsEndpointMerger implements EndpointResponseMerger {
+    public static final Pattern PROCESSOR_DIAGNOSTICS_URI_PATTERN = Pattern.compile("/nifi-api/processors/[a-f0-9\\-]{36}/diagnostics");
+
+    private final ProcessorDiagnosticsEntityMerger diagnosticsEntityMerger;
+
+    public ProcessorDiagnosticsEndpointMerger(final long componentStatusSnapshotMillis) {
+        diagnosticsEntityMerger = new ProcessorDiagnosticsEntityMerger(componentStatusSnapshotMillis);
+    }
+
+    @Override
+    public boolean canHandle(final URI uri, final String method) {
+        if (!"GET".equalsIgnoreCase(method)) {
+            return false;
+        }
+
+        return PROCESSOR_DIAGNOSTICS_URI_PATTERN.matcher(uri.getPath()).matches();
+    }
+
+    @Override
+    public NodeResponse merge(URI uri, String method, Set<NodeResponse> successfulResponses, Set<NodeResponse> problematicResponses, NodeResponse clientResponse) {
+        final ProcessorDiagnosticsEntity clientEntity = clientResponse.getClientResponse().readEntity(ProcessorDiagnosticsEntity.class);
+
+        // Unmarshall each response into an entity.
+        final Map<NodeIdentifier, ProcessorDiagnosticsEntity> entityMap = new HashMap<>();
+        for (final NodeResponse nodeResponse : successfulResponses) {
+            final ProcessorDiagnosticsEntity nodeResponseEntity = nodeResponse == clientResponse ? clientEntity : nodeResponse.getClientResponse().readEntity(ProcessorDiagnosticsEntity.class);
+            entityMap.put(nodeResponse.getNodeId(), nodeResponseEntity);
+        }
+
+        diagnosticsEntityMerger.merge(clientEntity, entityMap);
+        return new NodeResponse(clientResponse, clientEntity);
+    }
+
+}