A p12/pfx (PKCS-12) is a file format that carries certificates (keys).
Kafka accepts a jks (Java Key Store) format instead. You can port your
p12/pfx file-stored certificates into a jks file format using the
$JAVA_HOME/bin/keytool command, for use with Kafka and other Java
applications that work
Username would need to come in from the authentication layer.
What is your choice of authentication mode? Based on SSL vs. Kerberos,
you'll need to configure the clients per
http://kafka.apache.org/documentation.html#security_configclients (SSL)
which requires using a configuration properties
Unless you are on 0.8.1, your JMX query object name should
be 'kafka.server:type=BrokerTopicMetrics,name=MessagesInPerSec'
By default the above name should give you an all-topics count, but you can
also request it per-topic by using "topic=", for ex.: