kafka_connect_watcher package ¶
Subpackages ¶
Submodules ¶
kafka_connect_watcher.aws_emf module ¶
AWS EMF Publishing management for cluster & connectors
- kafka_connect_watcher.aws_emf. handle_watcher_emf ( config , watcher ) [source] ¶
-
- Return type :
-
None
- kafka_connect_watcher.aws_emf. publish_cluster_metrics ( cluster , metrics ) [source] ¶
-
- Return type :
-
None
kafka_connect_watcher.cli module ¶
kafka_connect_watcher.cluster module ¶
Models Connect cluster
- class kafka_connect_watcher.cluster. ConnectCluster ( cluster_config , watcher_config ) [source] ¶
-
Bases:
object
The ConnectCluster manages connection and scan of the connectors status execution. It also collects metrics about itself.
- property api : Api ¶
- property cluster : Cluster ¶
- property hostname : str ¶
- property name : str ¶
- property port : int ¶
kafka_connect_watcher.config module ¶
Configuration loader
kafka_connect_watcher.connectors_eval module ¶
kafka_connect_watcher.error_rules module ¶
Error handling rules
- class kafka_connect_watcher.error_rules. AutoCorrectRule ( config , watcher_config ) [source] ¶
-
Bases:
object
Actions to take when errors are detected.
- map_notify_targets ( watcher_config ) [source] ¶
-
Maps the notification_channels to the rule notify targets
- property original_config : dict ¶
- class kafka_connect_watcher.error_rules. EvaluationRule ( rule_definition , watcher_config ) [source] ¶
-
Bases:
object
Error handling rule
-
config_key
:
str
= 'evaluation_rules' ¶
- execute ( connect ) [source] ¶
-
Scans the connectors, matches the ones invalid and not healthy. When the connector status is RUNNING, we check all the tasks too to be sure. When paused, if we ignore paused connectors, skip
- Return type :
-
None
- property original_config : dict ¶
-
config_key
:
kafka_connect_watcher.logger module ¶
Logging management.
kafka_connect_watcher.notifications module ¶
Manages different channels of communications
kafka_connect_watcher.threads_settings module ¶
kafka_connect_watcher.tools module ¶
kafka_connect_watcher.watcher module ¶
Main entrypoint of the python watcher