-
Notifications
You must be signed in to change notification settings - Fork 177
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
Metrics/GenevaActions for Clustersync #3785
base: master
Are you sure you want to change the base?
Conversation
3cdbf8c
to
8d1a6e9
Compare
b5ac73b
to
99fa8df
Compare
08835f8
to
41a6e7c
Compare
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.
Mostly looks good, just a few questions about the metric we emit to make sure the metric works for us downstream (dashboarding/alerting).
/azp run ci |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run ci |
Azure Pipelines successfully started running 1 pipeline(s). |
4522c6e
to
9c145d8
Compare
merging 8659 and 9545 Metrics for SyncSet and SelectorSyncSets
9c145d8
to
3ec319c
Compare
without Hive, make sure that it doesn't panic when the monitor's hive.ClusterManager is nil Compare to preexisting code in emitHiveRegistrationStatus
Documenting E2E failure here prior to my commits to attempt to fix it:
|
1f19f29
to
d6a1882
Compare
d6a1882
to
0740eea
Compare
I reverted the changes of app/test/e2e/monitor.go and passed NIL for hiveClusterManager |
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.
Overall, LGTM. Just a few nitpicks and clean code suggestions.
func (f *frontend) getAdminHiveClusterSync(w http.ResponseWriter, r *http.Request) { | ||
ctx := r.Context() | ||
log := ctx.Value(middleware.ContextKeyLog).(*logrus.Entry) | ||
resourceId := strings.TrimPrefix(filepath.Dir(r.URL.Path), "/admin") |
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.
nitpick: Does it make sense to have an empty/malformed check on the resourceId
?
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.
Yes, this practice is consistent with the approach followed by other APIs as well, ensuring alignment and standardization across implementations. pkg/frontend/admin_openshiftcluster_drainnode.go
Which issue this PR addresses:
ARO-9545 and ARO-8659 both JIRA's have common code
What this PR does / why we need it:
Test plan for issue:
Unit test cases added.
Need to create respective metrics dashboard in Geneva.
Is there any documentation that needs to be updated for this PR?
Will create TSGs for respective metrics.
How do you know this will function as expected in production?
Monitor from Geneva Dashboard.