audit, advisories and doctors/setup work
This commit is contained in:
@@ -84,7 +84,7 @@ public sealed class LogRotationCheck : IDoctorCheck
|
||||
CommandType.Shell)
|
||||
.AddStep(2, "Adjust rotation threshold",
|
||||
"Edit Logging:RollingPolicy in configuration",
|
||||
CommandType.Config))
|
||||
CommandType.FileEdit))
|
||||
.Build());
|
||||
}
|
||||
|
||||
@@ -115,7 +115,7 @@ public sealed class LogRotationCheck : IDoctorCheck
|
||||
.WithRemediation(rb => rb
|
||||
.AddStep(1, "Enable application-level log rotation",
|
||||
"Set Logging:RollingPolicy to 'Size' or 'Date' in appsettings.json",
|
||||
CommandType.Config)
|
||||
CommandType.FileEdit)
|
||||
.AddStep(2, "Or configure system-level rotation",
|
||||
RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
|
||||
? "Use Windows Event Log or configure log cleanup task"
|
||||
@@ -179,3 +179,4 @@ public sealed class LogRotationCheck : IDoctorCheck
|
||||
return "/var/log/stellaops";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -83,7 +83,7 @@ public sealed class PrometheusScrapeCheck : IDoctorCheck
|
||||
.WithRemediation(rb => rb
|
||||
.AddStep(1, "Enable metrics endpoint",
|
||||
"Set Metrics:Enabled=true in appsettings.json",
|
||||
CommandType.Config)
|
||||
CommandType.FileEdit)
|
||||
.AddStep(2, "Verify metrics configuration",
|
||||
"stella config get Metrics",
|
||||
CommandType.Shell))
|
||||
@@ -133,3 +133,4 @@ public sealed class PrometheusScrapeCheck : IDoctorCheck
|
||||
.Count(line => !line.StartsWith('#') && line.Contains(' '));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user