@@ -133,7 +133,6 @@ const AddTenant = ({
133133 const [ validationErrors , setValidationErrors ] = useState < any > ( { } ) ;
134134 const [ namespace , setNamespace ] = useState < string > ( "" ) ;
135135 const [ advancedMode , setAdvancedMode ] = useState < boolean > ( false ) ;
136- const [ enablePrometheus , setEnablePrometheus ] = useState < boolean > ( false ) ;
137136 const [ consoleImage , setConsoleImage ] = useState < string > ( "" ) ;
138137 const [ idpSelection , setIdpSelection ] = useState < string > ( "Built-in" ) ;
139138 const [ openIDURL , setOpenIDURL ] = useState < string > ( "" ) ;
@@ -775,7 +774,7 @@ const AddTenant = ({
775774 secret_key : "" ,
776775 enable_tls : enableTLS && tlsType === "autocert" ,
777776 enable_console : true ,
778- enable_prometheus : enablePrometheus ,
777+ enable_prometheus : true ,
779778 service_name : "" ,
780779 image : imageName ,
781780 console_image : consoleImage ,
@@ -1204,21 +1203,6 @@ const AddTenant = ({
12041203 </ Grid >
12051204 </ React . Fragment >
12061205 ) }
1207- < Grid item xs = { 12 } >
1208- < FormSwitchWrapper
1209- value = "enable_prometheus"
1210- id = "enable_prometheus"
1211- name = "enable_prometheus"
1212- checked = { enablePrometheus }
1213- onChange = { ( e ) => {
1214- const targetD = e . target ;
1215- const checked = targetD . checked ;
1216-
1217- setEnablePrometheus ( checked ) ;
1218- } }
1219- label = { "Enable prometheus integration" }
1220- />
1221- </ Grid >
12221206 </ React . Fragment >
12231207 ) ,
12241208 buttons : [
0 commit comments