Skip to main content

UpdateCounter

Description​

This processor allows users to set specific counters and key points in their flow. It is useful for debugging and basic counting functions.

Tags​

counter, debug, instrumentation

Properties​

In the list below required Properties are shown with an asterisk (*). Other properties are considered optional. The table also indicates any default values, and whether a property supports the NiFi Expression Language.

Display NameAPI NameDefault ValueAllowable ValuesDescription
Counter Name *counter-nameThe name of the counter you want to set the value of - supports expression language like ${counterName}

Supports Expression Language, using FlowFile attributes and Environment variables.
Delta *delta1Adjusts the counter by the specified delta for each flow file received. May be a positive or negative integer.

Supports Expression Language, using FlowFile attributes and Environment variables.

Dynamic Properties​

This component does not support dynamic properties.

Relationships​

NameDescription
successCounter was updated/retrieved

Reads Attributes​

NameDescription
counterNameThe name of the counter to update/get.

Writes Attributes​

This processor does not write attributes.

State Management​

This component does not store state.

Restricted​

This component is not restricted.

Input Requirement​

This component requires an incoming relationship.

System Resource Considerations​

This component does not specify system resource considerations.

See Also​