kafka_overwatch.kafka_resources package ¶
Submodules ¶
kafka_overwatch.kafka_resources.groups module ¶
- kafka_overwatch.kafka_resources.groups. describe_update_consumer_group_offsets ( consumer_group , kafka_cluster ) [source] ¶
-
Retrieve a given Consumer group details, given that the list_consumer_group_offsets cannot take multiple groups as argument. Updates the kafka_cluster.groups.
- Return type :
-
None
- kafka_overwatch.kafka_resources.groups. get_consumer_groups_desc ( kafka_cluster , groups_list , groups_desc = None ) [source] ¶
-
- Return type :
-
dict[str,confluent_kafka.admin._group.ConsumerGroupDescription]
- kafka_overwatch.kafka_resources.groups. retry_kafka_describe_update_consumer_group_offsets ( future , futures_to_data , executor ) [source] ¶
- kafka_overwatch.kafka_resources.groups. set_update_cluster_consumer_groups ( kafka_cluster , stop_flag ) [source] ¶
-
Lists all Consumer Groups Checks if all the listed CGs were present in the existing cluster CGs. If not, remove. Describe all Consumer Groups List all Consumer Group Offsets (serial, no support for list of CGs) If CG not in the cluster groups, add to it
- Return type :
-
None
- kafka_overwatch.kafka_resources.groups. set_update_filter_cluster_consumer_groups ( kafka_cluster ) [source] ¶
-
Lists all the consumer groups from the Kafka cluster Filters out of the Kafka cluster groups attribute all the consumer groups that are not in the list Retrieves the consumer group description/details from the cluster
- Return type :
-
None
kafka_overwatch.kafka_resources.topics module ¶
- kafka_overwatch.kafka_resources.topics. define_topic_jobs ( kafka_cluster , desc_topics ) [source] ¶
-
Goes over all the topic configurations, and if authorization allows for describe configs, plans for the list of configurations to return. Returns the dict of topic description jobs to perform, and the topic descriptions list.
- Return type :
-
tuple[dict,list]
- kafka_overwatch.kafka_resources.topics. describe_update_all_topics ( kafka_cluster , stop_flag ) [source] ¶
-
Lists all topics
- Return type :
-
None
- kafka_overwatch.kafka_resources.topics. describe_update_topics ( kafka_cluster , desc_topics , stop_flag ) [source] ¶
-
Leverages threads to retrieve the topic offset watermarks which cannot be sent in a single call to Kafka.
- Return type :
-
None
- kafka_overwatch.kafka_resources.topics. get_topic_descriptions ( topic_names , admin_client ) [source] ¶
-
- Return type :
-
dict[str,confluent_kafka.admin._topic.TopicDescription]
- kafka_overwatch.kafka_resources.topics. get_topic_partition_watermarks ( consumer_client , topic_name , partition_id ) [source] ¶
- kafka_overwatch.kafka_resources.topics. get_topics_list ( kafka_cluster ) [source] ¶
-
- Return type :
-
list[str]
Module contents ¶
- kafka_overwatch.kafka_resources. set_admin_client ( settings ) [source] ¶
-
Creates a new librdkafka Admin client
- Return type :
-
confluent_kafka.admin.AdminClient