kafka_overwatch.processing package ¶
Submodules ¶
kafka_overwatch.processing.clusters module ¶
- kafka_overwatch.processing.clusters. generate_cluster_report ( kafka_cluster , topics_df , groups_df ) [source] ¶
-
Evaluates whether time to produce the report has passed. If so, generates and updates next monitoring time.
- Return type :
-
None
- kafka_overwatch.processing.clusters. measure_consumer_group_lags ( kafka_cluster , consumer_group_lag_gauge ) [source] ¶
-
Evaluates, if consumer groups were retrieved, the consumer groups lags and export metrics to Prometheus.
kafka_overwatch.processing.schema_registries module ¶
- kafka_overwatch.processing.schema_registries. backup_schema_registry_subjects ( schema_registry ) [source] ¶
-
Attempts to back up all the subjects and their associated schemas to S3.
- Return type :
-
None
- kafka_overwatch.processing.schema_registries. init_schema_registry_prometheus_reporting ( schema_registry , overwatch_config ) [source] ¶
- kafka_overwatch.processing.schema_registries. process_schema_registry ( schema_registry , runtime_key , overwatch_config , stop_flag ) [source] ¶
-
Process function for the schema registry. Responsible for :rtype:
None-
retrieving all the schemas & subjects
-
backup the subjects & schemas if configured.
-
- kafka_overwatch.processing.schema_registries. process_schemas ( schema_registry , sr_client , stop_flag ) [source] ¶
-
Process all schemas in the schema registry. If getting schemas from /schemas fails, fall back to /subjects
- Return type :
-
None
- kafka_overwatch.processing.schema_registries. retrieve_from_schemas ( schema_registry , sr_client ) [source] ¶
-
Fastest way, used if /schemas worked
- Return type :
-
None
- kafka_overwatch.processing.schema_registries. retrieve_from_subjects ( schema_registry , sr_client , stop_flag ) [source] ¶
-
Much longer way to retrieve all the schemas & subjects, using the subjects endpoints. Using threading to speed up the processing, but still slower by an order of magnitude than retrieving the schemas directly.
- Return type :
-
None