Kafka Advanced Checks
The Kafka settings page carries three checks that AxonOps evaluates against the state of a Kafka cluster and reports as alerts:
- Rack Awareness: reports topics whose partition replicas are not spread across the required number of racks, and topics with a replication factor of 1 or less.
- Consumer Group Monitor: reports consumer groups that have no consumers.
- Kafka Connect Checks: reports Kafka Connect connectors and tasks that are not running, and optionally restarts failed ones through the Connect REST API.
All three are off by default and are configured per cluster. Connectors and consumer groups carry their own alerting settings in addition, so either check that covers them can be run cluster-wide or as an opt-in on selected objects.
Availability
Section titled “Availability”| Requirement | Value |
|---|---|
| Cluster type | Apache Kafka clusters only |
| Role to view the settings | Read-only, BackupAdmin, Admin, or SuperUser |
| Role to save the settings | Admin or SuperUser |
| Location | Cluster → Settings → Kafka |
The cluster must already be connected to AxonOps and visible in the UI. See Kafka agent setup for connecting a cluster.
Kafka Connect Checks has an additional prerequisite. The Kafka Connect feature must be enabled for the organisation, and at least one Connect cluster must be reachable through axon-agent, the AxonOps agent running alongside the cluster. Without a reachable Connect cluster there are no connectors to evaluate, so the check reports nothing even when its toggle is on. See Kafka Connect.
Whether the feature is enabled is visible on the same settings page: the Page Settings card carries an Enable Kafka Connect Page switch only where the organisation has the feature. Where that switch is absent, contact AxonOps to have the feature enabled.
How the checks are evaluated
Section titled “How the checks are evaluated”Each check re-evaluates the cluster about every 30 seconds by default, so a condition that has cleared takes up to that long to resolve its alert. The interval is not configurable from the settings page. Where a cycle takes longer than the interval, on a cluster with a large number of topics or connectors, the next cycle starts late rather than running alongside it.
A check that is off evaluates only those connectors or consumer groups whose own Alerting setting is Always alert. Rack Awareness has no per-object setting, so while it is off nothing is evaluated for it at all. An object that is not evaluated has no alert raised or resolved for it, which means that switching a check off leaves any alert it has already raised in place. Either leave the check on until it resolves those alerts itself, or remove them from the cluster's active alerts, which requires an Admin or SuperUser role.
Alerts raised by these checks appear alongside every other alert for the cluster, under Alerts & Notifications → Active while they are unresolved.
The same applies to an object that disappears. An alert is resolved by a later evaluation of the same object, so where the topic, consumer group, or connector it names has been deleted, there is nothing left to evaluate and the alert stays active until it is removed by hand.
Every alert described on this page is resolved automatically by the same check on a later cycle, once the condition that raised it has cleared. Where an alert and its resolution are delivered is described in Per-object alerting and routing.
Per-object alerting and routing
Section titled “Per-object alerting and routing”A connector and a consumer group each have a Metadata tab on their detail page, and that tab carries the alerting fields below. The tab's Save Metadata button applies them, and saving requires an Admin or SuperUser role, as the cards on the settings page do.
| Setting | Applies to | Default | Notes |
|---|---|---|---|
| Alerting | Connectors, consumer groups | Use the cluster setting | Whether the object is alerted on, independently of the cluster-wide check |
| Alert Routing | Connectors, consumer groups | Empty | The notification integrations the object's alerts are sent to |
| Alert After Idle For | Consumer groups | Empty | How long this group may sit with no consumers before it is alerted on |
Alerting is a dropdown with three options:
- Use the cluster setting: the object is evaluated when the cluster-wide check is on, and not when it is off.
- Never alert: every alert about the object is silenced, including while the cluster-wide check is on.
- Always alert: the object is alerted on, including while the cluster-wide check is off.
Always alert is how either check is run as an opt-in rather than cluster-wide: switch the check off on the Kafka settings page, then set Always alert on the few connectors or consumer groups that matter. On a cluster where most consumer groups are transient, an all-or-nothing cluster switch reports an alert for every short-lived group, so setting Always alert on selected groups avoids an alert for every transient one. The dropdown records one choice at a time. Where both the never and the always setting are present on an object, which happens only where the underlying tags have been written outside the UI, Never alert takes precedence.
Alert Routing is a multi-select of the notification integrations configured for the cluster. Alerts about the object, and their resolutions, are sent to the integrations selected here. Left empty, a connector falls back to the routing for its Connect cluster and then to the cluster's Global routing, and a consumer group falls back straight to the Global routing. An integration that is selected here and later deleted is ignored, and the alert falls back to the next routing rather than being silently dropped.
Alert After Idle For applies to consumer groups only, and is described under Consumer Group Monitor.
Routing for a Connect cluster
Section titled “Routing for a Connect cluster”The cluster's Integrations settings page shows a routing section for each Kafka Connect cluster, named Kafka Connect: <connect cluster name>. It is the middle tier for connector alerts, between a connector's own Alert Routing and the cluster's Global routing.
A section is shown for every Connect cluster the agents report, and the routing itself is created when it is first configured. A Connect cluster whose section has been left unconfigured routes its connector alerts to the cluster's Global routing.
Topics
Section titled “Topics”Topics have no alerting or routing fields. The Rack Awareness check honours only a __DISABLE_ALERTS tag set to true on the topic's Metadata tab, which suppresses both of its alerts for that topic, and its alerts are always delivered to the cluster's Global routing.
Tag keys beginning with __ are hidden on the metadata tags page at Cluster → Settings → Metadata Tags unless the option to show system metadata is enabled there.
Rack Awareness
Section titled “Rack Awareness”Rack Awareness checks how each topic's partition replicas are distributed across broker racks. A partition whose replicas all sit in one rack loses every copy when that rack fails, so the check reports partitions that do not span the number of racks the cluster is expected to tolerate the loss of. The check only bounds where the copies of a partition live. Whether produce and consume continue during a rack outage depends on the replication settings of the topic and its producers, min.insync.replicas and acks in particular, which this check does not read.
| Setting | Default | Notes |
|---|---|---|
| Enable Rack Failure Monitoring | Off | |
| Minimum Racks | 0 until the check has been saved at least once | Editable only while the check is enabled; the UI clamps an edited value to at least 1. A stored value of 0 disables the rack spread comparison, so the field should be set before saving |
| Ignore Single Replication Factor | Off | When on, topics with a replication factor of 1 are excluded from the rack check |
The card has a Save button. Changes are not applied until they are saved.
The example below is a cluster with two racks, so the check requires every partition to span both.

What the check evaluates
Section titled “What the check evaluates”The broker-to-rack mapping is derived from what the brokers report. A broker contributes a rack only where that broker reports one through broker.rack, the broker property introduced in Kafka 0.10.0 (KIP-36) and surfaced to clients in cluster metadata; a broker with no rack contributes nothing to the mapping.
Each topic is then evaluated according to its replication factor, which the check reads as the replica count of the topic's first partition. A topic whose partitions carry different replica counts, which can follow a manual reassignment, is therefore classified by that one partition, although the rack count below is still evaluated for every partition.
For a topic with a replication factor greater than 1, the check counts the number of distinct racks among the replicas of every partition. Where any partition has fewer distinct racks than Minimum Racks, one alert is raised for the topic, named <topic> partition rack spread alert with the summary topic <topic> has partition that is not across <n> racks. The alert is per topic rather than per partition, so a topic with several under-spread partitions produces a single alert. When no partition falls short, that alert is resolved.
For a topic with a replication factor of 1 or less, the check does not consider racks at all. Where Ignore Single Replication Factor is off, an alert named <topic> partition replication factor alert is raised with the summary topic <topic> has replication factor <= 1. Where the setting is on, that alert is resolved instead.
Failure semantics
Section titled “Failure semantics”Rack membership is derived entirely from what the brokers report. On a cluster whose brokers do not set broker.rack, every partition resolves to an empty rack set, so every topic with a replication factor greater than 1 raises the rack spread alert. broker.rack should be set on the brokers before the check produces meaningful results.
Enabling this check can alert on every topic at once
Where the cluster has fewer racks than Minimum Racks, no partition can satisfy the check. A cluster whose brokers set no broker.rack at all is the extreme case: every partition resolves to an empty rack set, which is below any Minimum Racks value of 1 or more. Either way, the first cycle after enabling raises one alert for each topic with a replication factor greater than 1, and each of those alerts is routed to the cluster's integrations. A topic is capped the same way by its own replication factor: a topic replicated twice can never reach three racks, so a Minimum Racks of 3 alerts on it permanently. Confirm the rack assignment on the brokers, and set Minimum Racks no higher than both the number of racks the cluster has and the replication factor of its topics, before enabling the check. Rack assignment is described in Kafka topology.
Minimum Racks is compared as a lower bound: a partition alerts where the number of distinct racks among its replicas is below the configured value. A stored value of 0 is therefore below nothing, and the rack spread comparison never alerts; a value of 1 alerts only where no replica of a partition sits on a broker that reports a rack. The value must be 2 or greater for the check to report a partition confined to a single rack. Because a cluster with no stored configuration returns 0, the field should be set explicitly before the card is saved.
Until the cluster information is available, the check evaluates nothing for that cycle: no alert is raised and no existing alert is resolved.
Consumer Group Monitor
Section titled “Consumer Group Monitor”Consumer Group Monitor reports consumer groups that have no members.
| Setting | Default | Notes |
|---|---|---|
| Enable Consumer Group Alerts | Off | |
| Alert After Idle For | Empty | How long any group on the cluster may sit with no consumers before it is alerted on, as a duration such as 15m or 1h30m. Editable only while the check is enabled, and rejected unless it is a duration. Empty alerts as soon as a group is seen idle |
The card has a Save button. Changes are not applied until they are saved.

Every consumer group on the cluster is examined on each cycle. A group whose state is Empty or Dead raises a warning alert named consumer group <group> state alert once it has been in that state for longer than the wait described below. A group in any other state resolves that alert.
Both are states reported by the group coordinator. The descriptions below are of the classic consumer group protocol. Groups using the consumer group protocol introduced by KIP-848, generally available in Kafka 4.0 and shipped as early access in Kafka 3.7, report the same Empty and Dead states (KAFKA-16095), so the check matches on either.
Empty: the group has no active members. A group enters this state as soon as its last member leaves, and typically still holds committed offsets that have not yet expired.Dead: the group has no members and its metadata is being removed from the coordinator's cache, for example after every committed offset has expired, or when the coordinator holding the group's metadata changes. It does not follow that the group's committed offsets no longer exist.
The idle wait
Section titled “The idle wait”How long a group may sit with no consumers before it is alerted on is resolved in this order:
- Alert After Idle For on the group's own Metadata tab. A duration such as
15mor1h30m.0alerts immediately, which is how one group opts out of a cluster-wide wait. Empty means use the cluster setting. - Alert After Idle For on the Kafka settings card, which applies to every group on the cluster.
- Zero, which alerts as soon as a group is seen idle. This is what the check did before the setting existed.
The alert summary reflects the wait. Where a wait applies, the summary reads consumer group <group> has been <state> for more than <duration>; where none applies, it reads consumer group <group> is <state>.
The wait is a trade-off: too short, and an intermittent group alerts on every gap between runs; too long, and a consumer that has genuinely stopped goes unreported for that long. On a cluster where consumer groups are intermittent by design, such as batch jobs or short-lived administrative tools, a wait longer than the gap between runs prevents an alert for each idle period. Where those gaps are unpredictable, the alternative is to switch the check off and set Alerting to Always alert on the groups that matter, as described in Per-object alerting and routing.
Failure semantics
Section titled “Failure semantics”Where the consumer group data cannot be read for a cluster, because no Kafka node is available to query or the request to the group coordinator fails, the check does not run on that cycle. Existing alerts are left exactly as they are: an alert is neither confirmed nor resolved, and a group that has recovered continues to show as alerting until a cycle reads the cluster successfully. The absence of new alerts therefore does not mean that every group has members.
A cluster-wide Alert After Idle For that cannot be parsed as a duration is treated as zero, so every idle group alerts immediately. A group's own value that cannot be parsed falls back to the cluster setting instead, so a typo on one group does not silently restore immediate alerting for it. Both fields reject a value that is not a duration before it is saved, so these fallbacks apply to values written by other means.
The idle clock is not preserved across an axon-server restart. A group that was already idle before the restart is alerted on one full wait after the restart, rather than one wait after it stopped consuming. Alerts are therefore raised later than expected after a restart, never earlier.
A group that is deleted while alerting is no longer returned by the cluster, so the check never evaluates it again and its alert stays active until it is removed by hand.
Kafka Connect Checks
Section titled “Kafka Connect Checks”Kafka Connect Checks reports connectors and tasks that are not running, and can restart failed ones.
| Setting | Default | Notes |
|---|---|---|
| Enable Kafka Connect Checks | Off | |
| Auto Restart Failed Connectors | Off | Editable only while the check is enabled |
| Max Restart Count | 0 until the check has been saved at least once | Editable only while auto restart is on; the UI clamps an edited value to at least 1. Where the stored value is zero or negative, 3 is used |
| Restart Interval | Empty until the check has been saved at least once | A duration such as 30s, 5m, or 1h. Editable only while auto restart is on. Where the stored value is empty or cannot be parsed, 2 minutes is used |
The card has a Save button. Changes are not applied until they are saved. Both fields should be set explicitly before saving; otherwise the check runs on the fallbacks above rather than on the values the page shows.

Restart Interval is the minimum time between restart attempts for the same connector or task. It is not a schedule: no restart happens because the interval has elapsed, only because the object is still failed when the next cycle evaluates it.
Status checking
Section titled “Status checking”Every connector on every Connect cluster is evaluated on each cycle.
A connector in any state other than RUNNING, including PAUSED, UNASSIGNED, FAILED, and, on Kafka Connect 3.5 and later (KIP-875), STOPPED, raises a warning alert named Connect cluster <connect cluster> - Connector <connector> is not running with the summary Connector <connector> has state <state>. While the connector itself is not running, its tasks are not evaluated individually and any existing task alerts for it are resolved.
Where the connector is RUNNING, each of its tasks is evaluated. A task in any state other than RUNNING raises a warning alert named Connect cluster <connect cluster> - Connector <connector> task <n> not running. A task that returns to RUNNING resolves that alert.
Auto restart
Section titled “Auto restart”Auto restart applies only when Auto Restart Failed Connectors is on, and only to the FAILED state. A connector or task that is paused, stopped, unassigned, or already restarting is alerted on by the status check but is never restarted by AxonOps.
A failed connector is restarted through the Connect REST API, requesting that the connector and its failed tasks are restarted together. Restarting the tasks along with the connector in one call requires Kafka Connect 3.0 or later (KIP-745); on an earlier Connect version the same request restarts the connector instance only, and its failed tasks stay failed until the next cycle restarts each of them individually. A failed task of a running connector is always restarted individually.
AxonOps guarantees only that the restart request was submitted and accepted by Connect. Whether the connector or task then reaches RUNNING is decided by Connect and by whatever caused the failure, and is reported by the next status check rather than by the restart itself.
The attempt count and the timestamp of the last attempt are stored as metadata on the connector object, separately per connector and per task. A restart is attempted only where the attempt count is below Max Restart Count and the time since the last attempt is at least the Restart Interval.
Auto restart acts on every failed connector at once
Max Restart Count and Restart Interval are tracked per connector and per task; there is no limit on how many objects are restarted in the same cycle. Where several connectors share a root cause, such as an unreachable database or a broker outage, the first cycle after enabling auto restart issues a restart for every failed connector and task at once, and repeats it each time the interval elapses. Restarted tasks resume from their last committed offsets, so records that were in flight when a task failed can be delivered again; a sink that is not idempotent records those as duplicates. Review the current failed connectors on the Connect cluster before enabling auto restart.
The following diagram shows the decision for one failed connector or task on a single check cycle.
When the attempt count reaches Max Restart Count, no further restart is attempted and a critical alert is raised, named
Connect cluster <connect cluster> - Connector <connector> failed and auto-restart attempts exhausted, or its per-task equivalent. The alert states that manual intervention is required.
When the connector or task returns to RUNNING, its stored attempt count and timestamp are cleared and the exhaustion alert is resolved. A later failure therefore starts from a fresh budget.
Recovering from the exhaustion alert is a manual operation: fix what caused the failure, then restart the connector or task from the connector page or through the Connect REST API. The next status check finds it running, clears the stored attempt count, and resolves both the exhaustion alert and the status alert. The alternative is to raise Max Restart Count. The next cycle then finds the attempt count below the new maximum and resumes restarting, without the connector having recovered first.
The attempt count survives an axon-server restart, because it is held in the connector's metadata. Clearing it does not: the stored count is cleared only for an object that the running axon-server process itself restarted. Where axon-server has been restarted since it last restarted that object, the count stays on the connector even after it returns to RUNNING, and the next failure produces the exhaustion alert immediately, with no restart attempted. Deleting the __RESTART_COUNT and __RESTART_DATE tags, and their _task_<n> variants, from the connector's metadata restores the budget.
Switching Auto Restart Failed Connectors off does not clear the stored counts either. A connector that had used part of its budget resumes from that point when auto restart is switched back on.
A connector whose metadata carries __DISABLE_RESTART with a non-empty value is never auto-restarted. It is still alerted on by the status check. This is the per-connector opt-out from auto restart, and it remains a metadata tag rather than a field on the Metadata tab. Setting the connector's Alerting to Never alert is the wider exclusion: such a connector is skipped before the status check runs, so it is neither alerted on nor restarted.
Restart events
Section titled “Restart events”Every restart attempt is recorded as an event of type KafkaConnectCheck in Logs & Events. Recorded attempts include those that fail, which are recorded at warning severity with the error, and restarts triggered manually from the UI, which are recorded with the user name.
These events are records of an action. They never enter active alerts and never notify an integration.
Failure semantics
Section titled “Failure semantics”Where the Connect cluster cannot be read on a cycle, its connectors are not evaluated at all: no alert is raised, none is resolved, and any alert already raised stays as it is until a later cycle reads the cluster.
A restart whose REST call fails is recorded as an event but does not increment the attempt count. The same connector or task is therefore evaluated again on the next cycle and retried once the Restart Interval has elapsed, without consuming any of its restart budget.
Auto restart does not address the cause of the failure. A connector that fails deterministically, for example because of a configuration error or an unreachable external system, is restarted until its attempt count reaches Max Restart Count and then ends in the critical exhaustion alert.
Alerts raised by each check
Section titled “Alerts raised by each check”| Check | Alert | Severity | Event type |
|---|---|---|---|
| Rack Awareness | <topic> partition rack spread alert | Warning | KafkaPartitionRackReplication |
| Rack Awareness | <topic> partition replication factor alert | Warning | KafkaPartitionRackReplication |
| Consumer Group Monitor | consumer group <group> state alert | Warning | KafkaConsumerGroupStatus |
| Kafka Connect Checks | Connect cluster <cc> - Connector <connector> is not running | Warning | KafkaConnectCheck |
| Kafka Connect Checks | Connect cluster <cc> - Connector <connector> task <n> not running | Warning | KafkaConnectCheck |
| Kafka Connect Checks | Connect cluster <cc> - Connector <connector> failed and auto-restart attempts exhausted | Critical | KafkaConnectCheck |
The event type is the value to filter on in Logs & Events and to match in an alert rule. Restart attempts share the KafkaConnectCheck event type with the Connect alerts but are recorded as events only.
The two Rack Awareness alerts are always delivered to the cluster's Global routing. The Connect and consumer group alerts, and their resolutions, are delivered to the routing resolved for the object they name; see Per-object alerting and routing.
Verifying that a check is working
Section titled “Verifying that a check is working”After enabling a check, wait one evaluation cycle, which is roughly 30 seconds on a default installation, then look for its output:
- For an alert, open Alerts & Notifications → Active on the cluster and look for an alert whose name matches the patterns in the table above.
- For a Connect restart, open Logs & Events and filter on the event type
KafkaConnectCheck.
A check that produces nothing may have nothing to report, which is the expected result on a healthy cluster. Where output is expected and none appears, check the following:
- The Save button on the card was used. None of the three cards saves on toggle.
- The setting was saved with an Admin or SuperUser role. A save made with a role that cannot write is rejected, so a toggle may appear on in the browser while the stored configuration is still off. Reload the settings page and confirm the stored state.
- The cluster is reporting to AxonOps and its data is current. A cluster whose data is not being refreshed evaluates no checks.
- The object's Alerting is not set to Never alert on its Metadata tab, and, for a topic, no
__DISABLE_ALERTStag is set on it. - Where the cluster-wide check is deliberately off, the object's Alerting is set to Always alert. An object left on Use the cluster setting is not evaluated while the check is off.
- For a consumer group, enough time has passed. Allow the group's own Alert After Idle For, or the cluster-wide value, in addition to the evaluation cycle.
- For an absent restart, the connector does not carry
__DISABLE_RESTART, and its attempt count is below Max Restart Count. - For Kafka Connect Checks, at least one Connect cluster is configured and reachable. Without one, there are no connectors to evaluate.
Where an alert appears under Active but reaches no integration, confirm that the object's Alert Routing names integrations that still exist, and that the routings it falls back to are configured. A deleted integration is ignored rather than being treated as a destination.
Related pages
Section titled “Related pages”- Kafka Connect: the Connect clusters and connectors evaluated by Kafka Connect Checks
- Kafka Consumers: the consumer groups evaluated by Consumer Group Monitor
- Kafka Topics: the topics evaluated by Rack Awareness
- Kafka Config Drift Detection: a separate per-cluster check on the same settings area
- Logs & Events: where restart events are recorded
- Notification Integrations: the integrations these alerts are routed to