@@ -132,6 +132,7 @@ class MLflowService(Service):
132132 autolog_log_models (bool): If True, enables logging of models during autologging.
133133 autolog_log_datasets (bool): If True, logs datasets used during autologging.
134134 autolog_silent (bool): If True, suppresses all MLflow warnings during autologging.
135+ enable_system_metrics (bool): enable system metrics logging.
135136 tracking_uri (str): The URI for the MLflow tracking server.
136137 experiment_name (str): The name of the experiment to log runs under.
137138 registry_uri (str): The URI for the MLflow model registry.
@@ -147,6 +148,8 @@ class MLflowService(Service):
147148 autolog_log_models : bool = False
148149 autolog_log_datasets : bool = True
149150 autolog_silent : bool = False
151+ # system
152+ enable_system_metrics : bool = True
150153 # tracking
151154 tracking_uri : str = "http://localhost:5000"
152155 experiment_name : str = "bikes"
@@ -171,6 +174,9 @@ def start(self):
171174 log_models = self .autolog_log_models ,
172175 silent = self .autolog_silent ,
173176 )
177+ # system metrics
178+ if self .enable_system_metrics :
179+ mlflow .enable_system_metrics_logging ()
174180
175181 def client (self ) -> MlflowClient :
176182 """Get an instance of MLflow client."""
0 commit comments