Skip to content

fix(ibm-mq-metrics): update metric unit from 'microseconds' to 'us'#2887

Open
harshitt13 wants to merge 2 commits into
open-telemetry:mainfrom
harshitt13:fix/2838-ibm-mq-unit-us
Open

fix(ibm-mq-metrics): update metric unit from 'microseconds' to 'us'#2887
harshitt13 wants to merge 2 commits into
open-telemetry:mainfrom
harshitt13:fix/2838-ibm-mq-unit-us

Conversation

@harshitt13

Copy link
Copy Markdown
Member

Description:
This PR updates the metric unit for time-based metrics (oldest.msg.age, onqtime.short_period, onqtime.long_period) from "microseconds" to "us".

Existing Issue(s):
Fixes #2838

Documentation:
Updated docs/metrics.md to reflect the correct us unit in the markdown tables.

Signed-off-by: Harshit Kushwaha <find.harshitkushwaha@gmail.com>
Copilot AI review requested due to automatic review settings May 31, 2026 11:36
@harshitt13 harshitt13 requested a review from a team as a code owner May 31, 2026 11:36
@github-actions github-actions Bot requested review from atoulme and breedx-splk May 31, 2026 11:37

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f2642857fc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread ibm-mq-metrics/model/metrics.yaml Outdated
…r consistency

Signed-off-by: Harshit Kushwaha <find.harshitkushwaha@gmail.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

brief: "Queue message oldest age"
instrument: gauge
unit: "microseconds"
unit: "s"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do this one as seconds when the rest are microseconds?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

chatgpt-codex-bot caught that the underlying IBM MQ parameter for oldest.msg.age (MQIACF_OLDEST_MSG_AGE) actually returns its value in seconds, not microseconds, according to the IBM MQ queue-status response documentation.

If we changed oldest.msg.age to us, downstream unit-aware backends would interpret the data completely wrong, a 10-second-old message would be parsed as 10 microseconds old.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ibm-mq-metrics] Metric unit should be us, not microseconds

3 participants