NIFI-6902 Update PrometheusReportingTask to supply correct fields for OutputPort

This commit is contained in:
Tom 2019-11-22 23:48:37 +00:00 committed by Joe Witt
parent 2601f722b3
commit eb37e7475f
No known key found for this signature in database
GPG Key ID: 9093BF854F811A1A

View File

@ -480,7 +480,7 @@ public class PrometheusMetricsUtil {
final String parentId = portStatus.getGroupId();
final String portComponentType = "OutputPort";
AMOUNT_FLOWFILES_SENT.labels(instanceId, portComponentType, portComponentName, portComponentId, parentId).set(portStatus.getFlowFilesSent());
AMOUNT_FLOWFILES_RECEIVED.labels(instanceId, portComponentType, portComponentName, portComponentId).set(portStatus.getFlowFilesReceived());
AMOUNT_FLOWFILES_RECEIVED.labels(instanceId, portComponentType, portComponentName, portComponentId, parentId).set(portStatus.getFlowFilesReceived());
AMOUNT_BYTES_SENT.labels(instanceId, portComponentType, portComponentName, portComponentId, parentId).set(portStatus.getBytesSent());
AMOUNT_BYTES_READ.labels(instanceId, portComponentType, portComponentName, portComponentId, parentId).set(portStatus.getInputBytes());