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

Add metrics #41

Merged
merged 5 commits into from
Jun 18, 2024
Merged

Add metrics #41

merged 5 commits into from
Jun 18, 2024

Conversation

eminano
Copy link
Collaborator

@eminano eminano commented Jun 18, 2024

This PR adds metrics to the core wal components using opentelemetry interfaces to extend compatibility with instrumentation implementations.

Added metrics include:

  • wal processor lag (time it takes to process a message since it has been put into the replication stream)
  • wal processor latency (time it takes to process a wal event)
  • wal replication slot lag (lag accumulated by the consumer of the wal replication slot in bytes)
  • kafka writer batch size/bytes (number and size of the messages being sent to kafka)
  • kafka writer send latency (time it takes to send messages to kafka)

Commits have been split for ease of reviewing.

@eminano eminano requested a review from exekias June 18, 2024 09:56
@eminano eminano merged commit e218205 into main Jun 18, 2024
3 checks passed
@eminano eminano deleted the add-metrics branch June 18, 2024 14:10
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.

2 participants