You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A list of host/port pairs to use for establishing the
48
-
initial connection to the Kafka cluster
48
+
A list of host/port pairs to use for establishing
49
+
the initial connection to the Kafka cluster
49
50
-c, --consumer.groups=<kafkaConsumerClients>
50
51
A list of Kafka consumer groups or list ending with
51
-
(*) to fetch all consumers with matching pattern, e.g: 'test_v*'
52
+
star (*) to fetch all consumers with matching
53
+
pattern, e.g: 'test_v*'
54
+
-f, --kafka.properties.file=<kafkaPropertiesFile>
55
+
Optional. Properties file for Kafka AdminClient
56
+
configurations, this is the typical Kafka
57
+
properties file that can be used in the
58
+
AdminClient. For more info, please take a look at
59
+
Kafka AdminClient configurations documentation.
52
60
-h, --help Show this help message and exit.
53
61
-i, --poll.interval=<pollInterval>
54
-
Interval delay in ms to that refreshes the client lag
55
-
metrics, default to 2000ms
62
+
Interval delay in ms to that refreshes the client
63
+
lag metrics, default to 2000ms
56
64
-m, --mode=<clientMode> Mode to run client, possible values 'console' or
57
65
'prometheus', default to 'console'
58
-
-p, --http.port=<httpPort> Http port that is used to expose metrics in case
66
+
-p, -http.port=<httpPort> Http port that is used to expose metrics in case
59
67
prometheus mode is selected, default to 9000
60
68
-V, --version Print version information and exit.
69
+
70
+
#### New in version 0.0.6:
71
+
Now the client has the ability to accept a properties file with the admin client/consumer configuration that you typically use with Kafka Clients. This option can be accessible through the flag `-f`. example:
This mode will print the consumer lag per partition and the total lag among all partitions and continuously refreshing the metrics per the value of `--poll.interval` startup parameter. Example output:
64
82
@@ -99,7 +117,11 @@ This mode will print the consumer lag per partition and the total lag among all
99
117
100
118
### Prometheus Mode
101
119
In this mode, the tool will start an http server on a port that being set in `--http.port` startup parameter and it will expose an endpoint that is reachable via `localhost:<http.port>/metrics` or `localhost:<http.port>/prometheus`
102
-
so prometheus server can scrap these metrics and expose them for example to grafana. It will expose the following metrics:
120
+
so prometheus server can scrap these metrics and expose them for example to grafana.
0 commit comments