Skip to content

Correct latency metrics in AxonIQ Console#103

Merged
CodeDrivenMitch merged 1 commit intomainfrom
fix/latency-correctness
Aug 5, 2025
Merged

Correct latency metrics in AxonIQ Console#103
CodeDrivenMitch merged 1 commit intomainfrom
fix/latency-correctness

Conversation

@CodeDrivenMitch
Copy link
Collaborator

First, we set the expiry time of ingest and commit latencies to two minutes, instead of 30 minutes. This prevents alarms from triggering and statistics to be strange. I think 2 minutes is a balanced approach; generally batches will take under 10 seconds, so 2 minutes is already more than enough.

Second, we will now clean up the current message on cleanup, not on after commit. This will prevent hanging current latencies on errors.

Third, the commit latency is now the time between ingest of the first message of the batch and the commit time of it. As such, this represents the batch time.

First, we set the expiry time of ingest and commit latencies to two minutes, instead of 30 minutes. This prevents alarms from triggering and statistics to be strange.
I think 2 minutes is a balanced approach; generally batches will take under 10 seconds, so 2 minutes is already more than enough.

Second, we will now clean up the current message on cleanup, not on after commit. This will prevent hanging current latencies on errors.

Third, the commit latency is now the time between ingest of the first message of the batch and the commit time of it. As such, this represents the batch time.
@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 5, 2025

Copy link
Contributor

@stefanmirkovic stefanmirkovic left a comment

Choose a reason for hiding this comment

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

The changes look good.

@CodeDrivenMitch CodeDrivenMitch merged commit 259ca37 into main Aug 5, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants