You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add metric ibm_mq.channel.conns to ibm mq integration, add channel and connection metric tests (DataDog#20519)
* add metric ibm_mq.channel.conns, add channel and connection metric tests
* Add changelog entry
* run black formatting
* apply ruff check --config ../pyproject.toml --fix
* fix(ibm_mq): use correct metrics for channel status collection
- Update channel metric collector to use channel_status_metrics() instead of channel_metrics()
for discovered channels to properly collect buffers_rcvd metric
- Update test assertions to match actual tags being sent in gauge calls
- Fix unit tests in test_channel_metric_collector.py to pass
This change ensures that channel status metrics like buffers_rcvd are properly
collected and reported by the integration.
* reformat test_channel_metric_collector.py using black
* Fix channel metric collection logic and update unit tests
- Updated get_pcf_channel_metrics to submit configuration metrics instead of status metrics.
- Modified unit tests to verify that configuration metrics are collected for channels with empty or no connections.
- Added a new test test_channel_status_metrics to ensure status metrics and connection metrics are correctly submitted.
* add ibm_mq.channel.conns to metadata.csv
* sort metadata.csv by metric name
* - rename ibm_mq.channel.conns to ibm_mq.channel.conn_status
- create new metric ibm_mq.channel.connections_active which represents total num of active conns per channel
* Test commit signing
* remove test_signing.txt
* reformat with black
* sorted metadata.csv with ddev validate metadata ibm_mq --sync
* fix and sort metadata.csv; many metrics had been removed accidentally
* shorten changelog entry
* add config option collect_connection_metrics so that metric ibm_mq.channel.conn_status is only collected if this flag is enabled
* Update ibm_mq/assets/configuration/spec.yaml
Co-authored-by: Bryce Eadie <bryce.eadie@datadoghq.com>
* Update ibm_mq/datadog_checks/ibm_mq/data/conf.yaml.example
Co-authored-by: Bryce Eadie <bryce.eadie@datadoghq.com>
* fix formatting with ddev test --fmt
* format with ddev test --fmt
* reformat with ddev test --fmt after upgrading ddev
* move simulate_mq_conn.py, add description, add licensing comment
* fix license header with ddev validate license-headers ibm_mq/tests/agent_scripts/ --fix
---------
Co-authored-by: Bryce Eadie <bryce.eadie@datadoghq.com>
Copy file name to clipboardExpand all lines: ibm_mq/metadata.csv
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,8 @@ ibm_mq.channel.bytes_rcvd,gauge,,byte,,This attribute specifies the number of by
8
8
ibm_mq.channel.bytes_sent,gauge,,byte,,This attribute specifies the number of bytes sent (parameter identifier: `MQIACH_BYTES_SENT`).,0,ibm_mq,bytes sent,
9
9
ibm_mq.channel.channel_status,gauge,,,,This attribute specifies the channel status (parameter identifier: `MQIACH_CHANNEL_STATUS`).,0,ibm_mq,channel status,
10
10
ibm_mq.channel.channels,gauge,,resource,,The number of active channels.,0,ibm_mq,active channel count,
11
+
ibm_mq.channel.conn_status,gauge,,connection,,The connection status for the channel (parameter identifier: `MQIACH_CONNS`).,0,ibm_mq,conn status,
12
+
ibm_mq.channel.connections_active,gauge,,connection,,The total number of active channel connections (instances) per channel.,0,ibm_mq,connections active,
11
13
ibm_mq.channel.count,gauge,,,,Sum by status to count channels. Filter by channel and status tags to create notifications.,0,ibm_mq,channel count,
12
14
ibm_mq.channel.current_msgs,gauge,,message,,This attribute specifies the number of messages in-doubt (parameter identifier: `MQIACH_CURRENT_MSGS`).,0,ibm_mq,current msgs,
13
15
ibm_mq.channel.disc_interval,gauge,,second,,"This attribute is the length of time after which a channel closes down, if no message arrives during that period (parameter identifier: `DISCINT`).",0,ibm_mq,disc interval,
0 commit comments