[Fix #3486] Add input param counter #3489
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix #3486
Name of the new counters is
sonataflow_input_parameters_counter
Array input parameters will be stored by default as json strings
This can be changed by setting
kie.monitoring.sonataflow.arrays.store
property value toMULTI_PARAM
, in which case arrays will be stored individually with keys of the formsarrray_key_name[array_item_number]
Lets illustrate that with an example
If input is
by default it will be stored as
"param_name":"numbers","param_value":"[{\"x\":12321,\"y\":3},{\"x\":18,\"y\":3232323}]"
But if application.properties contains
kie.monitoring.sonataflow.arrays.store=MULTI_PARAM
There will be four entries added to the metrics
Finally, If array mode value is
STRING
, then the whole array is stored as one big string, as by default, but the format is slightly different (remove quotes, so strings values cannot be differentiated from numbers but making easier the elastic search queries over them)"param_value":"[{x=12321, y=3}, {x=18, y=3232323}]"