diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/src/main/nifi/src/app/ui/common/status-history/index.ts b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/src/main/nifi/src/app/ui/common/status-history/index.ts
index c8f629b3fc..8c7bcb223e 100644
--- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/src/main/nifi/src/app/ui/common/status-history/index.ts
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/src/main/nifi/src/app/ui/common/status-history/index.ts
@@ -30,8 +30,15 @@ export const NIFI_NODE_CONFIG = {
nifiInstanceLabel: 'NiFi'
};
+export interface StatsNode {
+ id: string;
+ label: string;
+ color: string;
+}
+
export interface Stats {
min: string;
max: string;
mean: string;
+ nodes?: StatsNode[];
}
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/src/main/nifi/src/app/ui/common/status-history/status-history-chart/status-history-chart.component.ts b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/src/main/nifi/src/app/ui/common/status-history/status-history-chart/status-history-chart.component.ts
index 70af558817..a46444eeb7 100644
--- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/src/main/nifi/src/app/ui/common/status-history/status-history-chart/status-history-chart.component.ts
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/src/main/nifi/src/app/ui/common/status-history/status-history-chart/status-history-chart.component.ts
@@ -462,7 +462,12 @@ export class StatusHistoryChart {
this.nodeStats$.next({
min: nodeMinValue,
max: nodeMaxValue,
- mean: nodeMeanValue
+ mean: nodeMeanValue,
+ nodes: nodes.map((n) => ({
+ id: n.id,
+ label: n.label,
+ color: color(n.label)
+ }))
});
// only consider the cluster with data in the brush
@@ -482,7 +487,12 @@ export class StatusHistoryChart {
this.clusterStats$.next({
min: clusterMinValue,
max: clusterMaxValue,
- mean: clusterMeanValue
+ mean: clusterMeanValue,
+ nodes: cluster.map((n) => ({
+ id: n.id,
+ label: n.label,
+ color: color(n.label)
+ }))
});
};
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/src/main/nifi/src/app/ui/common/status-history/status-history.component.html b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/src/main/nifi/src/app/ui/common/status-history/status-history.component.html
index ab7e1f6893..a8595386a3 100644
--- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/src/main/nifi/src/app/ui/common/status-history/status-history.component.html
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/src/main/nifi/src/app/ui/common/status-history/status-history.component.html
@@ -26,15 +26,15 @@