-
Notifications
You must be signed in to change notification settings - Fork 10
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
infrastructure manager metrics (2/n) #119
Conversation
Skipping CI for Draft Pull Request. |
if errorMetric != nil { | ||
errorMetric.Set(0) | ||
} | ||
fmt.Printf("GardenerClusterStates set value to 0 for %v", runtimeID) |
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.
Could we use logger for logging? Rest of the code uses logr.Logger
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.
I've removed this debug line
} | ||
|
||
func IncrementReconciliationLoopsStarted() { | ||
playgroundTotalReconciliationLoopsStarted.Inc() | ||
func (m Metrics) UnSetGardenerClusterStates(runtimeID string) { |
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 function is pointless, isn't it? Just make CleanUpGardenerClusterGauge
public
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.
Good point! fixed in dec8b6d
Description
Changes proposed in this pull request:
Should work better than the current metrics but will need additional adjustments:
Related issue(s)
#11