Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DLQ Metrics #794

Merged
merged 4 commits into from
Jan 23, 2023
Merged

DLQ Metrics #794

merged 4 commits into from
Jan 23, 2023

Conversation

lovromazgon
Copy link
Member

Description

This PR introduces metrics conduit_dlq_execution_duration_seconds and conduit_dlq_bytes. Internally it introduces metrics.RecordBytesHistogram which is a utility to observe record sizes (previously this code was in stream.MetricsNode).

Fixes #721

Quick checks:

  • I have followed the Code Guidelines.
  • There is no other pull request for the same update/change.
  • I have written unit tests. (well existing tests pass)
  • I have made sure that the PR is of reasonable size and can be easily reviewed.

@lovromazgon lovromazgon requested a review from a team as a code owner December 23, 2022 11:00
Copy link
Contributor

@hariso hariso left a comment

Choose a reason for hiding this comment

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

Looks great to me! I have one question and one suggestion:

  1. WDYT about adding metrics related to the number of records which went through a DLQ (if we don't have that somewhere)?
  2. It would be nice to mention these metrics in docs/metrics.md and maybe also docs.conduit.io

@lovromazgon lovromazgon merged commit e446e1c into main Jan 23, 2023
@lovromazgon lovromazgon deleted the lovro/dlq-metrics branch January 23, 2023 19:12
@lovromazgon
Copy link
Member Author

WDYT about adding metrics related to the number of records which went through a DLQ?

The count is exposed through both histograms, no need to have a separate metric for that.

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.

DLQ: Metrics
2 participants