@@ -100,9 +100,15 @@ collector program alongside a queue manager (perhaps as an MQ SERVICE) and you n
100100system.
101101
102102## Building to run on Windows
103- There is a ` buildMonitors.bat ` file to help with building on Windows. It assumes you have the
104- [ tdm-gcc-64] ( https://jmeubank.github.io/tdm-gcc/download/ ) 64-bit compiler suite installed. It builds all the collectors
105- and corresponding YAML configuration files into %GOPATH%/bin
103+ There is a ` buildMonitors.bat ` file to help with building on Windows. It assumes
104+ * You have the
105+ [ msys2] ( https://www.msys2.org/ ) 64-bit GCC compiler suite installed into the ` C:\msys64 ` directory. The specific
106+ compiler version from this package can be installed with ` pacman -S mingw-w64-ucrt-x86_64-gcc ` . That should end up with
107+ the ` gcc ` command being available.
108+ * You have set the GOPATH environment variable to the root of your source trees. For example, ` C:\Gowork ` .
109+
110+ The script builds all the collectors and corresponding YAML configuration files into %GOPATH%/bin. An alternative
111+ compiler could be [ tdm-gcc-64] ( https://jmeubank.github.io/tdm-gcc/download/ )
106112
107113## Queue manager configuration
108114When metrics are being collected from the publish/subscribe interface (all platforms except z/OS), there are some
@@ -141,7 +147,7 @@ To set it up, you must provide suitable configuration options. In the YAML confi
141147
142148If you use durable subscriptions, then the named reply queues may continue to receive publications even when the
143149collector is not running, so that may induce queue-full reports in the error log or events. The subscriptions can be
144- manually removed using the " DELETE SUB()" MQSC command for all subscriptions where the subscription ids begin with the
150+ manually removed using the ` DELETE SUB() ` MQSC command for all subscriptions where the subscription ids begin with the
145151` durableSubPrefix ` value. The ` scripts/cleanDur.sh ` program can be used for this deletion. You should also clean the
146152subscriptions when the configuration of which data to collect has changed, particularly the ` queueSubscriptionSelector `
147153option.
@@ -221,8 +227,17 @@ configuration attribute to true.
221227### NativeHA
222228When NativeHA is used, the queue manager publishes some metrics on its status. These are automatically collected
223229whenever available, and can be seen in the metric lists. The metrics are given a prefix or series of "nha". For example,
224- ` ibmmq_nha_synchronous_log_sent_bytes ` is one metric shown in Prometheus. The NativeHA "instance" - the names given to
225- the replicas - is added as the ` nhainstance ` tag to the metrics.
230+ ` ibmmq_nha_synchronous_log_sent_bytes ` is one metric shown in Prometheus. The NativeHA "instance" or "group"
231+ name - given to the replicas - is added as the ` nha ` tag to the metrics. Each NativeHA metric
232+ is associated with either an instance or group, never both.
233+
234+ Note: The ` nha ` tag was previously called ` nhainstance ` but
235+ that was confusing when the cross-region replication feature was introduced. Existing dashboards might need updating
236+ to show the newer tag.
237+
238+ One type of metric related to NativeHA show a Log Sequence Number (LSN). In the queue manager, these will be shown
239+ in a style such as ` GRPLSN(<0:0:326:39203>) ` . Grafana does not have an inbuilt formatter to convert the integer into
240+ this style; you can display the raw value, but it's difficult to see the meaning. Other tools might permit additional processing.
226241
227242Depending on configuration, the collector may be able to automatically reconnect to the new instance after a failover.
228243If that is not possible, you will need to have a process to restart the collector once the new replica has taken over.
0 commit comments