Agent nodes
const url = 'http://localhost:8080/api/v1/nodes';const options = {method: 'GET', headers: {cookie: 'brokerium_session=<brokerium_session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:8080/api/v1/nodes \ --cookie brokerium_session=<brokerium_session>Role: viewer.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Nodes with connection state.
object
object
The host name the agent reported at enrollment.
The host the listeners of the node advertise and the quorum and the server use; the reported host name by default, so it is empty only for an agent that reports none. A node whose advertised host is neither a DNS name nor an IP address cannot be chosen for a cluster.
Default broker.rack when the node joins a cluster; empty for none.
Transport of the last enrollment: mtls (client certificate) or insecure (signed messages for agents behind a TLS-terminating proxy, no certificate).
Last status reported by the agent; agents of earlier versions report fewer fields.
object
The Kafka release the agent starts.
Meta.properties of the data directory.
object
Process of the agent’s Kafka: its child, or the main process of its systemd unit; 0 when none runs.
Kafka data directory of the node, which Brokerium configures as log.dirs. Agents before 0.3.2 do not report it; their nodes get /var/lib/kafka/data.
The Kafka process the agent runs, with pid 0 when none runs. Restarts and upgrades wait for a new process and check its version. Agents before 0.3.2 do not report it.
object
Start time in Unix milliseconds; 0 when unknown.
Version of the first kafka-clients jar on the classpath, else of the first Kafka core jar; empty when the classpath names neither.
The classpath holds jars of several Kafka versions.
Account that runs the process, or its uid.
Kafka processes on the host that the agent does not run, such as the operator’s own unit of an adopted node. Steps that start Kafka on the node fail while one runs.
A Kafka broker or controller JVM (main class kafka.Kafka), read from /proc.
object
Start time in Unix milliseconds; 0 when unknown.
Version of the first kafka-clients jar on the classpath, else of the first Kafka core jar; empty when the classpath names neither.
The classpath holds jars of several Kafka versions.
Account that runs the process, or its uid.
Expiry of the current agent certificate; unknown until the agent connects.
Expiring means the certificate is close to its expiry and was not renewed; agents renew it after two thirds of its lifetime. Empty when the expiry is unknown.
Example
{ "nodes": [ { "role": "", "transport": "mtls", "certificateState": "" } ]}Apache®, Apache Kafka® and Kafka® are either registered trademarks or trademarks of the Apache Software Foundation in the United States and/or other countries. Brokerium is not affiliated with, endorsed by, or sponsored by the Apache Software Foundation.