Skip to content

Commit 2fbfa1a

Browse files
committed
update README
1 parent d7cf814 commit 2fbfa1a

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

README.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The collected metrics can be explored in Prometheus or Grafana.
77

88
The metrics are collected using [mqsilist](https://www.ibm.com/support/knowledgecenter/en/SSMKHH_9.0.0/com.ibm.etools.mft.doc/an07250_.htm) command. So, you need to install `IBM Integration Bus`.
99

10-
Tested for IBM IB v9 and Python 2.6, 2.7, 3.6 on Linux.
10+
Tested for IBM IB v9 and v10 and Python 2.7, 3.6 on Linux.
1111

1212
## Collected metrics
1313

@@ -48,6 +48,31 @@ nohup python3 iib_metrics_client.py &
4848

4949
After that, you should set up your Prometheus server to collect metrics from Pushgateway (`http://<hostname>:9091/metrics`).
5050

51+
You can specify `host` and `port` for pushgateway and Integration Bus version via command-line arguments.
52+
53+
```bash
54+
python3 iib_metrics_client.py -h
55+
56+
usage: iib_metrics_client.py [-h] [--pghost [pushgatewayHost]] [--pgport [pushgatewayPort]] [--iibver [iibVersion]]
57+
58+
optional arguments:
59+
-h, --help show this help message and exit
60+
--pghost [pushgatewayHost]
61+
pushgateway host
62+
--pgport [pushgatewayPort]
63+
pushgateway port
64+
--iibver [iibVersion]
65+
IIB version: 9 or 10
66+
```
67+
68+
If argument is not set the default value is used.
69+
70+
| Command-line argument | Description | Default value |
71+
|:---|:---|:---|
72+
| `pghost` | Pushgateway host | Hostname on which client is started.<br> Value define via `platform.node()`. |
73+
| `pgport` | Pushgateway port | `9091` |
74+
| `iibver` | IIB version | `9`<br> Valid value: **9** or **10**.<br> If argument is omitted or invalid value is passed, the client will try to determine version via environment variable `MQSI_VERSION_V`. If it can't determine the version using the environment variable, the default value will be used. |
75+
5176
## Grafana dashboard
5277
5378
The Grafana dashboard visualizes collected metrics. This is an example of a dashboard. You can create your own dashboards to analyze metrics.

0 commit comments

Comments
 (0)