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.
Please ensure all items are complete before opening.
What
I am suggesting add a new configuration parameter MonitoredSTATQ which allows configure the STATQ (PUT,GET,OPENCLOSE,INQSET) for each queue object e.g. subscribe for only PUT and GET or any other combination
How
The reason is I have QMs with large number of queues and I am not really interested in some of those stats per queue. Here is an example of using only PUT,GET instead of all STATQ:
queues 2716
subscriptions 5445 instead of 10877
messages 5445 instead of 10867
There is no real difference in the zipped file size (10.5 MB instead of 11.7 MB) but a huge difference in subscriptions and messages generated during each publish interval. The difference is also big in terms of time series (with PUT,GET only I get more than 103.000 time series)
Testing
Performed test locally and verified in test environment.
Example 1:
ARGS="$ARGS -ibmmq.monitoredSTATQ=PUT,GET"
Example 2:
Example 3:
ARGS="$ARGS -ibmmq.monitoredSTATQ=PUT,GETx"
time="2020-04-20T11:48:59+02:00" level=fatal msg="Invalid value for monitored STATQ: Object pattern 'GETx' is not valid. Available values are 'GET OPENCLOSE INQSET PUT '"
Issues
Links to the github issue(s) (if present) that this pull request is resolving.