@@ -209,10 +209,10 @@ def _build(self) -> None:
209209 with ui .column ().classes ("w-full gap-2" ):
210210 ui .label ("Metrics" ).classes ("text-lg font-bold" )
211211 self .use_prometheus = (
212- ui .checkbox ("Prometheus" )
212+ ui .checkbox ("Prometheus" , value = state . use_prometheus )
213213 .classes ("w-full" )
214- .tooltip ( "Coming soon! " )
215- .set_enabled ( False )
214+ .bind_value_from ( state , "use_prometheus " )
215+ .tooltip ( "Collect and query metrics with Prometheus" )
216216 )
217217
218218 with ui .column ().classes ("w-full gap-2" ):
@@ -247,6 +247,7 @@ def _bind_state_to_ui(self) -> None:
247247 "change" , self ._update_taskiq_state
248248 )
249249 self .use_taskiq .bind_value_to (state , "use_taskiq" )
250+ self .use_prometheus .bind_value_to (state , "use_prometheus" )
250251
251252 def _update_taskiq_state (self , * _ ) -> None :
252253 """Enable or disable Taskiq based on Redis and RabbitMQ."""
@@ -421,6 +422,7 @@ async def _create_project(self) -> None:
421422 state .use_redis = self .use_redis .value
422423 state .use_rabbitmq = self .use_rabbitmq .value
423424 state .use_taskiq = self .use_taskiq .value
425+ state .use_prometheus = self .use_prometheus .value
424426
425427 project_spec = state .get_project_spec ()
426428 await build_project (project_spec )
0 commit comments