CMAK
CMAK copied to clipboard
How can I get topic metrics instead of html ?
Is there an api to get topic metrics?
I tried GET /api/status/:c/topicIdentities , but no metrics.

@wutingting1993 The :c here is stands for Cluster name, for example u have a cluster named kafka_local, than:
/* GET /api/status/kafka_local/topicIdentities */
/* Example return*/
{
"topicIdentities" : [ {
"topic" : "__consumer_offsets",
"readVersion" : 0,
"partitions" : 50,
"partitionsIdentity" : [ {/*...*/
}]
// Other fields
}
Other api route ref: https://github.com/yahoo/CMAK/blob/master/conf/routes#L62
@wutingting1993 The
:chere is stands for Cluster name, for example u have a cluster namedkafka_local, than:/* GET /api/status/kafka_local/topicIdentities */ /* Example return*/ { "topicIdentities" : [ { "topic" : "__consumer_offsets", "readVersion" : 0, "partitions" : 50, "partitionsIdentity" : [ {/*...*/ }] // Other fields }Other api route ref: https://github.com/yahoo/CMAK/blob/master/conf/routes#L62
I tried this api. but , I didn't found producer FIFTEEN_MINUTE_RATE, FIVE_MINUTE_RATE, ONE_MINUTE_RATE, MEAN_RATE in response.
so , I changed to connect jmx to get producer rate .
