Closed dhuang closed 3 years ago
@dhuang Thanks for reporting the issue and sorry for the delayed response!
This indeed seems likely to be an issue with conversion of topic names with dots in the Prometheus metric sampler. In particular, I suspect that in PrometheusMetricSampler#addPartitionMetrics
, before calling addMetricForProcessing
, the topic
should be converted to a dotHandledTopic
, which is missing -- this needs testing.
Please feel free to create a PR with the relevant tests -- we would appreciate your contribution.
I experienced the same issue on an AWS MSK cluster. MSK seems only support Prometheus metric sampler according to their docs.
Encountered this as well in our deployment. Raised https://github.com/linkedin/cruise-control/pull/1495 with tests for the fix. @efeg can you help take a look? Thanks.
I've been testing out the Prometheus metrics sampler and so far it seems to work as expected, but noticed it's failing to pick up a subset of topics. I suspect it has to do with use of dots (
.
) in the topic names, thus probably related to https://github.com/linkedin/cruise-control/pull/443. Sounds like the default sampler may be doing some implicit conversion of these dots that requires this logic, but I don't think that's happening in the Prometheus sampler, so there's a mismatch later on?This is the warning I was seeing that clued me in, since all the topics listed actually had dots instead of underscores.
I may also be able to help with fixing or testing, but at least wanted to make sure I'm on the right track here before taking a deeper look.