API Stability |
Short-Term
|
The kafkaCluster() GraphQL query returns information on a Kafka cluster.
For information on Kafka, see the Kafka Configuration documentation page. You may also want to look at the Kafka Configuration reference page. For information on clusters in general, see the Cluster Management documentation page. Also, look at the LogScale Logical Architecture page in the Training section.
Syntax
Below is the syntax for the kafkaCluster() query field:
kafkaCluster: KafkaClusterDescription!
This query fiend has no input, just return values. You enter the parameters you want returned within curly-brackets. See the example here:
query {
kafkaCluster {clusterID, nodes {
id, host, port
},
logDirDescriptions {
nodeID, path, error
}}
}
{
"data": {
"kafkaCluster": {
"clusterID": "ExlWrS6RT1CmbCiP2TejTQ",
"nodes": [
{
"id": 0,
"host": "localhost",
"port": 9092
}
],
"logDirDescriptions": [
{
"nodeID": 0,
"path": "/data/kafka-data",
"error": null
}
]
}
}
}
Given Datatypes
For the given datatype,
KafkaClusterDescription
, there are several
parameters and sub-parameters. Below is a list of them, along with
a description of each:
Table: KafkaClusterDescription
Parameter | Type | Required | Default | Stability | Description |
---|---|---|---|---|---|
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column. | |||||
Table last updated: Sep 25, 2024 | |||||
chatterTopic | KafkaTopicDescription | yes | Short-Term | Any chatter topic associated with the Kafka cluster. See KafkaTopicDescription . | |
clusterID | string | yes | Short-Term | The unique identifier of the cluster. | |
controller | KafkaNode | yes | Short-Term | The Kafka node that is the controller of the cluster. See KafkaNode . | |
globalEventsTopic | KafkaTopicDescription | yes | Short-Term | The global Kafka events topic. See KafkaTopicDescription . | |
ingestTopic | KafkaTopicDescription | yes | Short-Term | A description of the Kafka ingest topic. See KafkaTopicDescription . | |
logDirDescriptions | [KafkaLogDir ] | yes | Short-Term | Descriptions of the Kafka log directories. See KafkaLogDir . | |
nodes | [KafkaNode ] | yes | Short-Term | The list of Kafka nodes in the cluster. See KafkaNode . |