@@ -9,6 +9,9 @@ Prometheus exporter for IBM MQ, written in Java. Exposes API of IBM MQ and syste
9
9
- [ Dependencies] ( #dependencies )
10
10
- [ Configuration] ( #configuration )
11
11
- [ Build] ( #build )
12
+ - [ Run] ( #run )
13
+ - [ Running exporter as mq service] ( #running-exporter-as-mq-service )
14
+ - [ Running exporter as standalone java application] ( #running-exporter-as-standalone-java-application )
12
15
2 . [ Metrics] ( #metrics )
13
16
- [ Platform central processing units] ( #platform-central-processing-units )
14
17
- [ CPU performance - platform wide] ( #cpu-performance---platform-wide )
@@ -119,9 +122,46 @@ channels:
119
122
mvn package
120
123
```
121
124
122
- 4 . After processing is completed, go to mq-java-exporter/target. dependency-jars directory and webspheremq_exporter.jar should appear there.
123
- 5 . To run exporter, dependency-jars directory (and all jars in it) and mq_exporter.jar should be located in the same folder.
124
- 6 . To run exporter execute the following command:
125
+ 4 . After processing is completed, go to mq-java-exporter/target. dependency-jars directory and mq_exporter.jar should appear there.
126
+
127
+ #### Run
128
+
129
+ To run exporter, dependency-jars directory (and all jars in it) and
130
+ mq_exporter.jar should be located in the same folder.
131
+
132
+ ##### Running exporter as mq service
133
+
134
+ It is recommended way of running the exporter. ** Note** : all commands
135
+ should be executed via MQ CLI. More info can be found [ here] ( https://www.ibm.com/support/knowledgecenter/en/SSFKSJ_9.0.0/com.ibm.mq.ref.adm.doc/q083460_.htm ) .
136
+
137
+ Define queue manager service with the following command:
138
+
139
+ ``` mq
140
+ DEFINE SERVICE(MQEXPORTER) CONTROL(QMGR) SERVTYPE(SERVER) +
141
+ STARTCMD('/opt/mqm/java/jre64/jre/bin/java') +
142
+ STARTARG('-Dlog4j.configurationFile=/opt/mq_exporter/log4j2.properties -jar /opt/mq_exporter/mq_exporter.jar /opt/mq_exporter/exporter_config.yaml') +
143
+ STOPCMD('/usr/bin/kill ' ) STOPARG(+MQ_SERVER_PID+) +
144
+ STDOUT('/opt/mq_exporter/mq_prometheus.out') +
145
+ STDERR('/opt/mq_exporter/mq_prometheus.out') +
146
+ DESCR('MQ exporter for Prometheus')
147
+ ```
148
+ More information about this command can be found
149
+ [ here] ( https://www.ibm.com/support/knowledgecenter/en/SSFKSJ_9.0.0/com.ibm.mq.ref.adm.doc/q085740_.htm ) .
150
+
151
+ To start exporter, execute the following command:
152
+
153
+ ``` mq
154
+ START SERVICE(MQEXPORTER)
155
+ ```
156
+
157
+ To stop exporter, execute the following command:
158
+
159
+ ``` mq
160
+ STOP SERVICE(MQEXPORTER)
161
+ ```
162
+ ##### Running exporter as standalone java application
163
+
164
+ To run exporter execute the following command:
125
165
126
166
``` shell
127
167
java -jar mq_exporter.jar /opt/mq_exporter/exporter_config.yaml
@@ -191,7 +231,7 @@ The only input parameter is the path to your configuration file.
191
231
<td ><strong >Prometheus metric name</strong ></td >
192
232
<td ><strong >Metric type</strong ></td >
193
233
<td ><strong >Short description</strong ></td >
194
- <td ><strong >MQ metric elemen </strong ></td >
234
+ <td ><strong >MQ metric element </strong ></td >
195
235
</tr >
196
236
<tr >
197
237
<td >mq_cpu_user_cpu_time_estimate_percentage</td >
@@ -222,7 +262,7 @@ The only input parameter is the path to your configuration file.
222
262
<td ><strong >Prometheus metric name</strong ></td >
223
263
<td ><strong >Metric type</strong ></td >
224
264
<td ><strong >Short description</strong ></td >
225
- <td ><strong >MQ metric elemen </strong ></td >
265
+ <td ><strong >MQ metric element </strong ></td >
226
266
</tr >
227
267
<tr >
228
268
<td >mq_disk_trace_file_system_in_use_megabytes</td >
@@ -264,7 +304,7 @@ The only input parameter is the path to your configuration file.
264
304
<td ><strong >Prometheus metric name</strong ></td >
265
305
<td ><strong >Metric type</strong ></td >
266
306
<td ><strong >Short description</strong ></td >
267
- <td ><strong >MQ metric elemen </strong ></td >
307
+ <td ><strong >MQ metric element </strong ></td >
268
308
</tr >
269
309
<tr >
270
310
<td >mq_disk_file_system_in_use_megabytes</td >
@@ -288,7 +328,7 @@ The only input parameter is the path to your configuration file.
288
328
<td ><strong >Prometheus metric name</strong ></td >
289
329
<td ><strong >Metric type</strong ></td >
290
330
<td ><strong >Short description</strong ></td >
291
- <td ><strong >MQ metric elemen </strong ></td >
331
+ <td ><strong >MQ metric element </strong ></td >
292
332
</tr >
293
333
<tr >
294
334
<td >mq_rlog_log_bytes_in_use_bytes</td >
@@ -343,7 +383,7 @@ The only input parameter is the path to your configuration file.
343
383
<td ><strong >Prometheus metric name</strong ></td >
344
384
<td ><strong >Metric type</strong ></td >
345
385
<td ><strong >Short description</strong ></td >
346
- <td ><strong >MQ metric elemen </strong ></td >
386
+ <td ><strong >MQ metric element </strong ></td >
347
387
</tr >
348
388
<tr >
349
389
<td >mq_mqconn_mqconnx_count_totalcalls</td >
@@ -379,7 +419,7 @@ The only input parameter is the path to your configuration file.
379
419
<td ><strong >Prometheus metric name</strong ></td >
380
420
<td ><strong >Metric type</strong ></td >
381
421
<td ><strong >Short description</strong ></td >
382
- <td ><strong >MQ metric elemen </strong ></td >
422
+ <td ><strong >MQ metric element </strong ></td >
383
423
</tr >
384
424
<tr >
385
425
<td >mq_mqopen_mqopen_count_totalcalls</td >
@@ -415,7 +455,7 @@ The only input parameter is the path to your configuration file.
415
455
<td ><strong >Prometheus metric name</strong ></td >
416
456
<td ><strong >Metric type</strong ></td >
417
457
<td ><strong >Short description</strong ></td >
418
- <td ><strong >MQ metric elemen </strong ></td >
458
+ <td ><strong >MQ metric element </strong ></td >
419
459
</tr >
420
460
<tr >
421
461
<td >mq_mqinq_mqinq_count_totalcalls</td >
@@ -451,7 +491,7 @@ The only input parameter is the path to your configuration file.
451
491
<td ><strong >Prometheus metric name</strong ></td >
452
492
<td ><strong >Metric type</strong ></td >
453
493
<td ><strong >Short description</strong ></td >
454
- <td ><strong >MQ metric elemen </strong ></td >
494
+ <td ><strong >MQ metric element </strong ></td >
455
495
</tr >
456
496
<tr >
457
497
<td >mq_put_interval_total_mqput_mqput1_count_totalcalls</td >
@@ -529,7 +569,7 @@ The only input parameter is the path to your configuration file.
529
569
<td ><strong >Prometheus metric name</strong ></td >
530
570
<td ><strong >Metric type</strong ></td >
531
571
<td ><strong >Short description</strong ></td >
532
- <td ><strong >MQ metric elemen </strong ></td >
572
+ <td ><strong >MQ metric element </strong ></td >
533
573
</tr >
534
574
</tr >
535
575
<tr >
@@ -644,7 +684,7 @@ The only input parameter is the path to your configuration file.
644
684
<td ><strong >Prometheus metric name</strong ></td >
645
685
<td ><strong >Metric type</strong ></td >
646
686
<td ><strong >Short description</strong ></td >
647
- <td ><strong >MQ metric elemen </strong ></td >
687
+ <td ><strong >MQ metric element </strong ></td >
648
688
</tr >
649
689
</tr >
650
690
<tr >
@@ -669,7 +709,7 @@ The only input parameter is the path to your configuration file.
669
709
<td ><strong >Prometheus metric name</strong ></td >
670
710
<td ><strong >Metric type</strong ></td >
671
711
<td ><strong >Short description</strong ></td >
672
- <td ><strong >MQ metric elemen </strong ></td >
712
+ <td ><strong >MQ metric element </strong ></td >
673
713
</tr >
674
714
</tr >
675
715
<tr >
@@ -766,7 +806,7 @@ The only input parameter is the path to your configuration file.
766
806
<td ><strong >Prometheus metric name</strong ></td >
767
807
<td ><strong >Metric type</strong ></td >
768
808
<td ><strong >Short description</strong ></td >
769
- <td ><strong >MQ metric elemen </strong ></td >
809
+ <td ><strong >MQ metric element </strong ></td >
770
810
</tr >
771
811
<tr >
772
812
<td >mq_publish_topic_mqput_mqput1_interval_total_totalmessages</td >
@@ -821,7 +861,7 @@ The only input parameter is the path to your configuration file.
821
861
<td ><strong >Prometheus metric name</strong ></td >
822
862
<td ><strong >Metric type</strong ></td >
823
863
<td ><strong >Short description</strong ></td >
824
- <td ><strong >MQ metric elemen </strong ></td >
864
+ <td ><strong >MQ metric element </strong ></td >
825
865
</tr >
826
866
<tr >
827
867
<td >mqobject_mqopen_mqopen_count_totalcalls</td >
@@ -845,7 +885,7 @@ The only input parameter is the path to your configuration file.
845
885
<td ><strong >Prometheus metric name</strong ></td >
846
886
<td ><strong >Metric type</strong ></td >
847
887
<td ><strong >Short description</strong ></td >
848
- <td ><strong >MQ metric elemen </strong ></td >
888
+ <td ><strong >MQ metric element </strong ></td >
849
889
</tr >
850
890
<td >mqobject_mqinq_mqinq_count_totalcalls</td >
851
891
<td >counter</td >
@@ -868,7 +908,7 @@ The only input parameter is the path to your configuration file.
868
908
<td ><strong >Prometheus metric name</strong ></td >
869
909
<td ><strong >Metric type</strong ></td >
870
910
<td ><strong >Short description</strong ></td >
871
- <td ><strong >MQ metric elemen </strong ></td >
911
+ <td ><strong >MQ metric element </strong ></td >
872
912
</tr >
873
913
<tr >
874
914
<td >mqobject_put_mqput_mqput1_count_totalcalls</td >
@@ -946,7 +986,7 @@ The only input parameter is the path to your configuration file.
946
986
<td ><strong >Prometheus metric name</strong ></td >
947
987
<td ><strong >Metric type</strong ></td >
948
988
<td ><strong >Short description</strong ></td >
949
- <td ><strong >MQ metric elemen </strong ></td >
989
+ <td ><strong >MQ metric element </strong ></td >
950
990
</tr >
951
991
<tr >
952
992
<td >mqobject_get_mqget_count_totalcalls</td >
0 commit comments