Skip to content

Commit 137a316

Browse files
committed
add example with bad perfomance when usePCFwildcard equals "true"
Resolves: #49
1 parent 68075a9 commit 137a316

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ PCFParameters:
111111
# If usePCFWildcards equals "true", then all monitored objects will be grouped by object type: QUEUE, CHANNEL and LISTENER. Only one PCF command will be sent for each object type.
112112
# If usePCFWildcards equals "false", then PCF command will be send for each object.
113113
# Each PCF command uses a separate connection, so sending a large number of PCF commands will create a large number of connections to MQ queue manager.
114-
# For example, for 100 monitoring queues will be opened 100 connections to MQ queue manager, if usePCFwildcard equals "false".
114+
# For example, for 100 monitoring queues will be opened 100 connections to MQ queue manager, if usePCFwildcard equals "false".
115+
# Another example: for usePCFwildcard equals "true", if there are 10.000 queues in the queue manager and just a few queues is need to be monitored,
116+
# only one PCF command will be sent. But response will contain metrics for all 10.000 queues and that will lead to performance problems.
115117
usePCFWildcards: true
116118
# Interval in seconds between sending PCF commands.
117119
scrapeInterval: 10

src/main/resources/exporter_config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ PCFParameters:
3333
# Collect additional metrics? If false, all settings in this section below are ignored.
3434
# If yes, additional metrics will be collected for all queues, channels and listeners listed below.
3535
sendPCFCommands: true
36-
# If usePCFWildcards equals "true", then all monitored objects will be grouped by object type:
37-
# QUEUE, CHANNEL and LISTENER. Only one PCF command will be send for each object type.
38-
# Metrics will be obtained from the PCF command response for each object one type.
36+
# If usePCFWildcards equals "true", then all monitored objects will be grouped by object type: QUEUE, CHANNEL and LISTENER. Only one PCF command will be sent for each object type.
3937
# If usePCFWildcards equals "false", then PCF command will be send for each object.
40-
# PCF command are sent in one connection to MQ queue manager, so for many PCF command will be opened many connection to MQ queue manager.
41-
# For example, for 100 monitoring queue will be opened 100 connection to MQ queue manager, if usePCFwildcard equals "false".
38+
# Each PCF command uses a separate connection, so sending a large number of PCF commands will create a large number of connections to MQ queue manager.
39+
# For example, for 100 monitoring queues will be opened 100 connections to MQ queue manager, if usePCFwildcard equals "false".
40+
# Another example: for usePCFwildcard equals "true", if there are 10.000 queues in the queue manager and just a few queues is need to be monitored,
41+
# only one PCF command will be sent. But response will contain metrics for all 10.000 queues and that will lead to performance problems.
4242
usePCFWildcards: true
4343
# Interval in seconds between sending PCF commands.
4444
scrapeInterval: 10

0 commit comments

Comments
 (0)