Skip to content

feat: add wal latency metrics #40930

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

Conversation

NickAnge
Copy link
Contributor

@NickAnge NickAnge commented Jun 25, 2025

Description

This PR adds two new histogram metrics to track the latency of Write-Ahead Log (WAL) operations in the Prometheus Remote Write Exporter:

  • otelcol_exporter_prometheusremotewrite_wal_write_latency: Tracks latency for WAL write operations
  • otelcol_exporter_prometheusremotewrite_wal_read_latency: Tracks latency for WAL read operations

Link to tracking issue

Part of #39556

Testing

Added UT

Documentation

Signed-off-by: Nikos Angelopoulos <[email protected]>
Copy link
Member

@ArthurSens ArthurSens left a comment

Choose a reason for hiding this comment

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

LGTM, just one question :)

Comment on lines 298 to 299
_, err = tel.GetMetric("otelcol_exporter_prometheusremotewrite_wal_read_latency")
require.NoError(t, err)
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this be in TestWALRead_Telemetry?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes you are right , fixed it d964aca

@NickAnge NickAnge marked this pull request as ready for review June 26, 2025 07:21
@NickAnge NickAnge requested a review from a team as a code owner June 26, 2025 07:21
Copy link
Member

@ArthurSens ArthurSens left a comment

Choose a reason for hiding this comment

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

Thanks!

@ArthurSens ArthurSens added the ready to merge Code review completed; ready to merge by maintainers label Jun 26, 2025
@songy23 songy23 merged commit fdf8ecc into open-telemetry:main Jun 26, 2025
187 checks passed
@github-actions github-actions bot added this to the next release milestone Jun 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exporter/prometheusremotewrite ready to merge Code review completed; ready to merge by maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants