Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Status

Current state"Under Discussion"Adopted

Discussion thread: here 

JIRA: KAFKA-6986 

Released: 2.1.0

Please keep the discussion on the mailing list rather than commenting on the wiki (wiki discussions get unwieldy fast).

...

By adding metrics(), now any client can get the metrics from AdminClient, this is a should-have function since all the other clients (producer, consumer...) have ithave it, this will help to gain more visibility for those application that use admin client.

Public Interfaces

Code Block
languagejava
/**
 * Get the metrics kept by the adminClient
 *
 * @return
 */
public abstract Map<MetricName, ? extends Metric> metrics();

...

  • No known compatibility issues. This is thread-safe because the use of an 
    unmodifiableMap.

Rejected Alternatives