Kafka monitoring · through the admin API

Kafka monitoring on one page, with the cause first.

WatchLog reads Kafka the way a client does, read-only, and says on one scroll which consumer group falls behind and by how long, the member it lost and how that one ended, on Kubernetes and on Linux servers.

No JMX, no Java agent. Never reads a message. Open source.

WatchLog’s Kafka page while a group falls behind: Right now says audit is minutes behind and has no members since its last member was OOM-killed, over the Messages in and out chart.(opens the picture larger)
Right now

The answer first.

The top of the page is one sentence: a group is minutes behind and has no members, partitions have no leader, or a broker is down. It names the member the group lost and how that one ended, how many messages wait, and the change that came just before. When nothing is wrong, it says that.

  • Four numbers: messages in and read a second, the largest lag and its group, partitions in trouble.
  • Time behind is worked out from the end offsets WatchLog keeps; no message is read.
  • See what broke scrolls to the cause; Open goes to the workload behind it.
Right now on WatchLog’s Kafka page: the group audit is minutes behind and has no members, its last member OOM-killed, with the messages that wait and the four numbers.(opens the picture larger)
Falling behind: the group, the member it lost, and how it ended.
Right now on WatchLog’s Kafka page for the same cluster before: Every consumer group keeps up.(opens the picture larger)
The same cluster earlier: every group keeps up.
The chart

One chart, four views.

Messages in and out, Lag, Bytes and Partition health share one chart, with rollouts and the member’s end as pills on it. Drag across it to choose a period: every section and drawer below follows.

  • Lag draws each group by name, the one in trouble red.
  • Partition health counts partitions without a leader, under-replicated or under min.insync.replicas.
  • Bytes come from the brokers when they export them, else from the network flows.
Producers, topics, consumer groups

Who writes, what is read, who lags.

Producers on the left, topics in the middle, consumer groups on the right, each ribbon as wide as what the group reads. Kafka doesn’t say which producer writes which topic, so producers are the clients that mostly send, by the bytes they send, and the page says so.

  • A group that falls behind, and its ribbon, are red.
  • Click a topic, a group or a client to open it.
  • A client is named by its workload or its container.
Groups and causes

Consumer groups worst first, and why they lag.

Groups come worst first: those with no members, then those falling behind, then the busiest, each with its members, lag and time behind. Beside them, why it lags, each cause with its share and the member it names.

  • A lost member is followed to how it ended: OOMKilled, an exit code, a crash loop.
  • A group that keeps rebalancing, a slow consumer, a partition without a leader.
  • All groups opens the whole list, searchable and sortable.
Consumer groups and Why it lags on WatchLog’s Kafka page: audit with no members and its lag, and the cause naming its last member OOM-killed.(opens the picture larger)
Consumer groups in WatchLog’s wide drawer: the lag of each group and topic, what each group reads a second, and every member with its client and partitions.(opens the picture larger)
Every group’s lag and reads, and every member.
Drawers

Click anything, stay on the page.

Every group, topic, broker and client opens a drawer over the page, the cause first, and the drawer is in the address, so you can send the link. Esc closes it; ↑ and ↓ move to the previous or next row.

  • A group: its lag by topic, what it reads a second, its members and its rebalances.
  • A topic: its partitions, size, retention and growth.
  • Its chart works like the page’s: hover, the arrow keys, drag to choose a period.
Everything else

Healthy things stay small.

Brokers, Partitions, Disk and Controller are one card each: one number, one sentence and a bar. A card turns amber or red only with a finding: a broker down, a partition without a leader, a disk filling, a controller that keeps moving.

  • Partitions count the leader moves and the in-sync replica sets that shrank.
  • Disk says when each broker’s log directories fill at today’s rate.
  • The last day’s changes say who: which member left which group.
Setup

A client that can only describe.

On a PLAINTEXT listener there is nothing to enter. With SASL, the Setup view writes a SCRAM user and ACLs for Describe on the cluster, topics and groups, plus DescribeConfigs on topics, with a new password. No JMX, no Java agent in the broker.

  • Metadata, ListOffsets, the groups and their committed offsets, log dirs, configs.
  • Every request stops after 2 seconds; it asks every 15 seconds.
  • Kafka 3.0 and later, with KRaft or ZooKeeper.
Light or dark, desk or phone

The same answer on a phone.

The page comes in a light and a dark theme, and on a phone it keeps the same order: the answer first, then the chart and the rest.

Alerts that are already written

On from the first minute.

Press Monitor and these are created; you tick the ones that start on. Each goes to Slack, Telegram, email or a webhook, and says what, where and which group.

  • A group lost its members while its lag grows, for 5 minutescritical
  • Offline partitions for a minutecritical
  • A broker down for a minutecritical
  • A group’s lag grows for 10 minuteswarning
  • Under-replicated partitions for 5 minuteswarning
Setup

One click, read-only.

  1. Install the WatchLog agentOne command on a server, or one Helm chart on a cluster.
  2. WatchLog finds Kafkaapache/kafka, kafka-native, Bitnami, Confluent and Strimzi brokers, from the images and ports the agent already sees. It appears under Applications.
  3. Press MonitorOn a PLAINTEXT listener, nothing to enter. With SASL, paste the commands WatchLog writes, or name an existing user.
Platform
kubectl exec -it -n shop statefulset/kafka -- /opt/kafka/bin/kafka-configs.sh \
  --bootstrap-server localhost:9092 --alter --entity-type users --entity-name watchlog \
  --add-config 'SCRAM-SHA-512=[password=…]'
kubectl exec -it -n shop statefulset/kafka -- /opt/kafka/bin/kafka-acls.sh \
  --bootstrap-server localhost:9092 --add --allow-principal User:watchlog \
  --operation Describe --cluster --topic '*' --group '*'
kubectl exec -it -n shop statefulset/kafka -- /opt/kafka/bin/kafka-acls.sh \
  --bootstrap-server localhost:9092 --add --allow-principal User:watchlog \
  --operation DescribeConfigs --topic '*'
docker exec -it shop-kafka-1 /opt/kafka/bin/kafka-configs.sh \
  --bootstrap-server localhost:9092 --alter --entity-type users --entity-name watchlog \
  --add-config 'SCRAM-SHA-512=[password=…]'
docker exec -it shop-kafka-1 /opt/kafka/bin/kafka-acls.sh \
  --bootstrap-server localhost:9092 --add --allow-principal User:watchlog \
  --operation Describe --cluster --topic '*' --group '*'
docker exec -it shop-kafka-1 /opt/kafka/bin/kafka-acls.sh \
  --bootstrap-server localhost:9092 --add --allow-principal User:watchlog \
  --operation DescribeConfigs --topic '*'

With SASL, the user WatchLog creates can describe the cluster, every topic and every group, and read topic configurations; nothing else. The commands.

Running Kafka on a Linux server, or in Docker? WatchLog finds it the same way and asks the same things. Applications on Linux servers.

What it can’t see →
Compared

Against a lag exporter and a dashboard you build.

WhatWatchLogA lag exporter, JMX and a dashboard
Time to the first chartMinutesHours: a lag exporter, JMX, then dashboards
How far behind, in timeFrom the end offsets it keepsLag in messages only
A group with no membersNamed, with the member it lostA lag panel you read
How the member endedOOMKilled, exit code, crash loopkubectl, by hand
Default alertsFive, written for youRules you write
Works on plain Linux serversYes, and KubernetesDepends on your setup
Reads messagesNeverSome lag exporters do
Ask your AI

Ask your AI about Kafka.

Claude and ChatGPT read the same facts through WatchLog’s MCP server, read-only: the brokers, the partitions, the groups with their lag and state, and the member a group lost.

Connect your assistant →

Why has the audit log stopped updating?

get_application · explain_problem

Consumer group audit has had no members for 6 minutes and its lag grows by 116 a minute. Its member shop/audit was OOM-killed at its 64 MiB memory limit.

An example on Kubernetes, written from the docs.
Questions

Kafka monitoring, answered.

Which Kafka does it work with?
Kafka 3.0 and later, with KRaft or ZooKeeper, on Kubernetes and on Linux servers (systemd services, process groups and containers). It is tested on Kafka 4.1 and 3.9 with KRaft and on 3.9 with ZooKeeper.
Does WatchLog read my messages?
No. It reads Kafka through the admin API, the way a client does: metadata, end offsets, the groups and their committed offsets, log directories and topic configurations. No call that changes anything is in its code.
How does it know a group is 15 minutes behind?
It keeps each topic’s end offset over time. A group is as far behind as the time since the topic’s end was where the group’s committed offset is now, up to 6 hours back. No message is read to know it.
Can it say which producer writes which topic?
No: the protocol doesn’t say it. Producers are listed by the bytes they send, from the agents’ network flows, not tied to topics.
Does it need JMX?
No. Request latency and handler idle time are JMX metrics, so without a Prometheus endpoint on the brokers they aren’t shown; everything else comes from the admin API.
What does it cost?
Measured against Kafka 4.1 and 3.9: one look takes 100 to 300 ms, almost all waiting for the brokers, every 15 seconds. At 200 topics of 12 partitions and 100 groups, the agent works out what it read in about 3 ms.
Is it free?
The open-source edition is free without limits. WatchLog Cloud is free for 5 servers or nodes.

See your own Kafka in five minutes.

Free on WatchLog Cloud for 5 servers or nodes, or run it yourself, open source.