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

migrate JournalMetrics to micrometer #27929

Merged
merged 7 commits into from
Feb 10, 2025

Conversation

entangled90
Copy link
Contributor

@entangled90 entangled90 commented Feb 10, 2025

Description

Migrate module zeebe-journal to micrometer

  • Dashboard changes

Related issues

closes #27147

@entangled90 entangled90 added benchmark backport stable/8.5 Backport a pull request to stable/8.5 backport stable/8.6 Backport a pull request to stable/8.6 backport stable/8.7 Backport a pull request to stable/8.7 labels Feb 10, 2025
@entangled90 entangled90 self-assigned this Feb 10, 2025
@entangled90 entangled90 marked this pull request as draft February 10, 2025 15:39
@github-actions github-actions bot added the component/zeebe Related to the Zeebe component/team label Feb 10, 2025
@entangled90 entangled90 requested a review from npepinpe February 10, 2025 16:53
@entangled90 entangled90 marked this pull request as ready for review February 10, 2025 16:53
@@ -13172,7 +13172,7 @@
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "sum(increase(atomix_segment_allocation_time_bucket{cluster=~\"$cluster\", namespace=~\"$namespace\", pod=~\"$pod\", partition=~\"$partition\"}[$__rate_interval])) by (le)",
"expr": "sum(increase(atomix_segment_allocation_time_bucket{cluster=~\"$cluster\", namespace=~\"$namespace\", pod=~\"$pod\", partition=~\"$partition\"}[$__rate_interval]) or increase(atomix_segment_allocation_time_seconds_bucket{cluster=~\"$cluster\", namespace=~\"$namespace\", pod=~\"$pod\", partition=~\"$partition\"}[$__rate_interval])) by (le)",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is wrong: it should be

sum(increase(metric...)) or sum(increase(metric_seconds..))

Copy link
Member

@npepinpe npepinpe left a comment

Choose a reason for hiding this comment

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

🚀

Please address all comments, but otherwise looks good 👍

Comment on lines +37 to +40
@Override
public Duration[] getTimerSLOs() {
return super.getTimerSLOs();
}
Copy link
Member

Choose a reason for hiding this comment

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

🔧 Can be omitted

Copy link
Member

Choose a reason for hiding this comment

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

Same for all below just delegating to super

Comment on lines 294 to 310
return Stream.of(
100,
1_000,
5_000,
10_0000,
25_000,
50_000,
75_000,
100_0000,
250_000,
500_000,
75_000,
1_000 * 1000,
2_500 * 1000,
5_000 * 1000)
.map(micros -> Duration.of(micros, ChronoUnit.MICROS))
.toArray(Duration[]::new);
Copy link
Member

Choose a reason for hiding this comment

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

❌ Please create a constant out of it; I know it's annoying, but there's no reason to re-compute it every time.

@entangled90 entangled90 added this pull request to the merge queue Feb 10, 2025
Merged via the queue into main with commit 111d24e Feb 10, 2025
72 checks passed
@entangled90 entangled90 deleted the cs-27147-micrometer-in-zeebe-journal branch February 10, 2025 18:24
@backport-action
Copy link
Collaborator

Created backport PR for stable/8.5:

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin backport-27929-to-stable/8.5
git worktree add --checkout .worktree/backport-27929-to-stable/8.5 backport-27929-to-stable/8.5
cd .worktree/backport-27929-to-stable/8.5
git reset --hard HEAD^
git cherry-pick -x 19458c4632c5d305c131e5db031dbdc148cd7c39 9243aef0a235f3a82312076487aaca5b3940ef7e db71b8b44a680bb50932810c8d183144ebb8773f e3cdcf56cd45113dc6eab2b1695a45553a4fc66c 4a6befebd57a9780a037ce3ae64b6bb489fb8c10 3ed852e652c198099039d832bb4029f749dd5327 668db6e06c2284e93e0e807fc5114e89167ec678
git push --force-with-lease

@backport-action
Copy link
Collaborator

Created backport PR for stable/8.6:

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin backport-27929-to-stable/8.6
git worktree add --checkout .worktree/backport-27929-to-stable/8.6 backport-27929-to-stable/8.6
cd .worktree/backport-27929-to-stable/8.6
git reset --hard HEAD^
git cherry-pick -x 19458c4632c5d305c131e5db031dbdc148cd7c39 9243aef0a235f3a82312076487aaca5b3940ef7e db71b8b44a680bb50932810c8d183144ebb8773f e3cdcf56cd45113dc6eab2b1695a45553a4fc66c 4a6befebd57a9780a037ce3ae64b6bb489fb8c10 3ed852e652c198099039d832bb4029f749dd5327 668db6e06c2284e93e0e807fc5114e89167ec678
git push --force-with-lease

@backport-action
Copy link
Collaborator

Created backport PR for stable/8.7:

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin backport-27929-to-stable/8.7
git worktree add --checkout .worktree/backport-27929-to-stable/8.7 backport-27929-to-stable/8.7
cd .worktree/backport-27929-to-stable/8.7
git reset --hard HEAD^
git cherry-pick -x 19458c4632c5d305c131e5db031dbdc148cd7c39 9243aef0a235f3a82312076487aaca5b3940ef7e db71b8b44a680bb50932810c8d183144ebb8773f e3cdcf56cd45113dc6eab2b1695a45553a4fc66c 4a6befebd57a9780a037ce3ae64b6bb489fb8c10 3ed852e652c198099039d832bb4029f749dd5327 668db6e06c2284e93e0e807fc5114e89167ec678
git push --force-with-lease

github-merge-queue bot pushed a commit that referenced this pull request Feb 11, 2025
# Description
Backport of #27929 to `stable/8.5`.

relates to #27147
original author: @entangled90
@github-actions github-actions bot added the version:8.5.14 Marks an issue as being completely or in parts released in 8.5.14 label Feb 11, 2025
github-merge-queue bot pushed a commit that referenced this pull request Feb 14, 2025
# Description
Backport of #27929 to `stable/8.7`.

relates to #27147
original author: @entangled90
github-merge-queue bot pushed a commit that referenced this pull request Feb 14, 2025
# Description
Backport of #27929 to `stable/8.6`.

relates to #27147
original author: @entangled90
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport stable/8.5 Backport a pull request to stable/8.5 backport stable/8.6 Backport a pull request to stable/8.6 backport stable/8.7 Backport a pull request to stable/8.7 benchmark component/zeebe Related to the Zeebe component/team version: version:8.5.14 Marks an issue as being completely or in parts released in 8.5.14
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate all Prometheus metrics in zeebe-journal
4 participants