-
Notifications
You must be signed in to change notification settings - Fork 17
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 #39
Metrics #39
Conversation
…served. Signed-off-by: Sam Barker <sbarker@redhat.com>
Signed-off-by: Sam Barker <sbarker@redhat.com>
…metric. Signed-off-by: Sam Barker <sbarker@redhat.com>
Signed-off-by: Sam Barker <sbarker@redhat.com>
…FactorApplied Signed-off-by: Sam Barker <sbarker@redhat.com>
Signed-off-by: Sam Barker <sbarker@redhat.com>
Signed-off-by: Sam Barker <sbarker@redhat.com>
Signed-off-by: Sam Barker <sbarker@redhat.com>
Instead of having the static edit: looking at it, that's bit of a hefty refactor now with not much gain, happy with it as is and we could revisit later |
… time. Signed-off-by: Sam Barker <sbarker@redhat.com>
Signed-off-by: Sam Barker <sbarker@redhat.com>
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.
Thanks @SamBarker, there are a few nits, but this pretty good over all.
available_bytes -> AvailableBytes consumed_bytes -> ConsumedBytes Signed-off-by: Sam Barker <sbarker@redhat.com>
Signed-off-by: Sam Barker <sbarker@redhat.com>
The metric names are Yammer metric names rather than mBean names per se. Signed-off-by: Sam Barker <sbarker@redhat.com>
Complies with https://docs.oracle.com/javase/8/docs/api/javax/management/ObjectName.html and excludes `*` and `?` as they indicate patterns and shouldn't appear in object names. Signed-off-by: Sam Barker <sbarker@redhat.com>
Signed-off-by: Sam Barker <sbarker@redhat.com>
Signed-off-by: Sam Barker <sbarker@redhat.com>
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.
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.
A few more nits on the code. The other thing we should do is update the README
to mention the availability and meaning of the metrics (you can probably copy and paste some of what you wrote from the PR)
Signed-off-by: Sam Barker <sbarker@redhat.com>
Signed-off-by: Sam Barker <sbarker@redhat.com>
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! Nice tests!
Signed-off-by: Sam Barker <sbarker@redhat.com>
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 this LGTM, thanks.
Signed-off-by: Sam Barker <sbarker@redhat.com>
Can't find any reference to that actually being a supported configuration mechanism. Signed-off-by: Sam Barker <sbarker@redhat.com>
Signed-off-by: Sam Barker <sbarker@redhat.com>
Also AbstractConfig applies a namespace so need to use `originals` to get at the `broker.id`. Signed-off-by: Sam Barker <sbarker@redhat.com>
@ppatierno @tombentley I don't believe there is anything outstanding on this PR, if I'm right could one of you kindly hit the merge button? Otherwise please let me know what else needs looking at? |
This PR adds the metrics outlined in proposal 47.
Note there are a couple of name changes in the implementation compared to the proposal:
io.strimzi.kafka.quotas:type=LocalThrottleFactor,name=ThrottleFactor
io.strimzi.kafka.quotas:type=ThrottleFactor,name=ThrottleFactor
io.strimzi.kafka.quotas:type=LocalThrottleFactor,name=FallbackThrottleFactorApplied
io.strimzi.kafka.quotas:type=ThrottleFactor,name=FallbackThrottleFactorApplied
io.strimzi.kafka.quotas:type=LocalThrottleFactor,name=LimitViolated
io.strimzi.kafka.quotas:type=ThrottleFactor,name=LimitViolated
io.strimzi.kafka.quotas:type=ClusterVolumeSouce,name=ActiveBrokers
io.strimzi.kafka.quotas:type=VolumeSouce,name=ActiveBrokers
io.strimzi.kafka.quotas:type=ClusterVolumeSouce,name=ActiveLogDirs
io.strimzi.kafka.quotas:type=VolumeSouce,name=ActiveLogDirs
In short
LocalThrottleFactor
->ThrottleFactor
andClusterVolumeSource
->VolumeSource
as the local and cluster distinctions no longer make sense (I don't think they actually did when merged the proposal but no one picked up on the fact we had lost the distinction).The Metrics
observingBrokerId
observingBrokerId
logDir
s which violate the configured limitobservingBrokerId
observingBrokerId
observingBrokerId
[observingBrokerId, remoteBrokerId, logDir]
[observingBrokerId, remoteBrokerId, logDir]
Tag definitions