kafka_overwatch.config package ¶
Submodules ¶
kafka_overwatch.config.config module ¶
- class kafka_overwatch.config.config. OverwatchConfig ( config , prometheus_dir ) [source] ¶
-
Bases:
objectClass to store in-memory the clusters and their configurations, derived from the input configuration classes.
- init_schema_registries ( ) [source] ¶
-
Initializes the Schema Registries client if setup in the configuration
- property input_config ¶
- property prometheus_registry_dir : TemporaryDirectory ¶
kafka_overwatch.config.logging module ¶
- class kafka_overwatch.config.logging. ErrorFilter ( name = '' ) [source] ¶
-
Bases:
FilterInspired from https://stackoverflow.com/a/16066513
- class kafka_overwatch.config.logging. InfoFilter ( name = '' ) [source] ¶
-
Bases:
FilterInspired from https://stackoverflow.com/a/16066513
- class kafka_overwatch.config.logging. MyFormatter ( fmt = None , datefmt = None , style = '%' , validate = True , * , defaults = None ) [source] ¶
-
Bases:
Formatter- date_format = '%Y-%m-%d %H:%M:%S' ¶
- debug_format = '%(asctime)s %(thread_id)d [%(levelname)8s] (%(filename)s.%(lineno)d , %(funcName)s,) %(message)s' ¶
- default_format = '%(asctime)s %(thread_id)d [%(levelname)8s] %(message)s' ¶
- format ( record ) [source] ¶
-
Format the specified record as text.
The record’s attribute dictionary is used as the operand to a string formatting operation which yields the returned string. Before formatting the dictionary, a couple of preparatory steps are carried out. The message attribute of the record is computed using LogRecord.getMessage(). If the formatting string uses the time (as determined by a call to usesTime(), formatTime() is called to format the event time. If there is exception information, it is formatted using formatException() and appended to the message.
- Return type :
-
str