-
Notifications
You must be signed in to change notification settings - Fork 6.3k
feat: add metric for sync durations(#11675) #18474
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
feat: add metric for sync durations(#11675) #18474
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #18474 +/- ##
==========================================
- Coverage 60.11% 60.09% -0.02%
==========================================
Files 342 342
Lines 58820 58829 +9
==========================================
- Hits 35359 35353 -6
- Misses 20617 20623 +6
- Partials 2844 2853 +9 ☔ View full report in Codecov by Sentry. |
e2eef6a
to
00b91ec
Compare
a3e7df0
to
19ce59e
Compare
Just got hit by long sync times and would like to setup monitoring for this. What is missing in this PR? Would you like a hand @Jack-R-lantern ? |
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 you add some tests?
Also, note that there are logs available with timing information about specific syncs. There's also longest running processor duration metric for syncs as well.
controller/metrics/metrics.go
Outdated
// Help: "Application sync performance in seconds.", | ||
// }, | ||
// append(descAppDefaultLabels, "dest_server"), | ||
// ) |
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.
Remove this
We ended up grabbing these changes and making a build with these changes to run on our Argo instances. It has been working great. |
I agree with @sethgupton-mastery - would also like to see this added @andrii-korotkov-verkada |
Let's rebase/merge latest master and productionize it more, e.g. remove commented code and make it not a draft. |
Something you will look into @Jack-R-lantern ? |
19ce59e
to
448c1f7
Compare
448c1f7
to
2d10342
Compare
@andrii-korotkov-verkada @bogedal @sethgupton-mastery I implemented syncDurationTotal as a Counter. |
This should be fine since syncCounter is available. |
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.
LGTM
2d10342
to
be773ae
Compare
be773ae
to
f682b26
Compare
I would really like this change to land. What's missing to get this in? |
Gentle ping here 🙏 |
f682b26
to
4371bf6
Compare
@andrii-korotkov-verkada please review |
@andrii-korotkov-verkada @Jack-R-lantern |
Bring this up at the contributors meeting on Thursdays. |
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.
Changes looks good to me. The only concern is potentially too much metrics (because of app name tag) but it was solved by metrics reset support.
So LGTM. Will double check in contributors meeting tomorrow and merge if no objections
4371bf6
to
56ec02f
Compare
56ec02f
to
c1f47b5
Compare
c1f47b5
to
ea3af5b
Compare
add syncDuration metric add syncDuration metric unit test Signed-off-by: Jack-R-lantern <tjdfkr2421@gmail.com>
ea3af5b
to
1f21776
Compare
Signed-off-by: Jack-R-lantern <tjdfkr2421@gmail.com> Signed-off-by: enneitex <etienne.divet@gmail.com>
Added a metric to measure application sync duration.
It is implemented using summary, and the average can be calculated using count, sum.
Closes #11675
Checklist: