-
Notifications
You must be signed in to change notification settings - Fork 637
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
Conversation
monitor/grafana/zeebe.json
Outdated
@@ -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)", |
There was a problem hiding this comment.
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..))
There was a problem hiding this 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 👍
@Override | ||
public Duration[] getTimerSLOs() { | ||
return super.getTimerSLOs(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔧 Can be omitted
There was a problem hiding this comment.
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
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); |
There was a problem hiding this comment.
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.
Created backport PR for
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 |
Created backport PR for
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 |
Created backport PR for
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 |
# Description Backport of #27929 to `stable/8.5`. relates to #27147 original author: @entangled90
# Description Backport of #27929 to `stable/8.7`. relates to #27147 original author: @entangled90
# Description Backport of #27929 to `stable/8.6`. relates to #27147 original author: @entangled90
Description
Migrate module zeebe-journal to micrometer
Related issues
closes #27147