-
Notifications
You must be signed in to change notification settings - Fork 219
feat: feat controller queue size, execution thread count #1649
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
Conversation
...pport/src/main/java/io/javaoperatorsdk/operator/monitoring/micrometer/MicrometerMetrics.java
Outdated
Show resolved
Hide resolved
@@ -118,6 +168,12 @@ public void failedReconciliation(HasMetadata resource, Exception exception, | |||
return registry.gaugeMapSize(PREFIX + name + ".size", Collections.emptyList(), map); | |||
} | |||
|
|||
private List<Tag> gvkTags(Class<? extends HasMetadata> resourceClass) { |
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.
There are several spots where GVK information is added to tags. Could this method be reused elsewhere? Also, it looks like sometimes it's prefixed with resource
, sometimes not…
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.
gauge
is a little different than others, since it is first needs to initialized. Then incremented or decremented. This is specially needed for that. But made it at least public static for now.
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.
Also, it looks like sometimes it's prefixed with resource, sometimes not…
what do you mean exactly?
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.
Looks OK apart maybe the GVK tags (see comment).
Kudos, SonarCloud Quality Gate passed! |
No description provided.