Add warning and critical thresholds to options
This commit is contained in:
@@ -41,6 +41,14 @@ type Options struct {
|
||||
WebhookEmail string `env:"WEBHOOK_EMAIL" description:"Webhook authentication email"`
|
||||
WebhookToken string `env:"WEBHOOK_TOKEN" description:"Webhook authentication token"`
|
||||
|
||||
// Storage monitoring thresholds (percentage)
|
||||
StorageWarning float64 `env:"STORAGE_WARNING" default:"80.0" description:"Storage warning threshold percentage"`
|
||||
StorageCritical float64 `env:"STORAGE_CRITICAL" default:"95.0" description:"Storage critical threshold percentage"`
|
||||
|
||||
// Extractor expiry monitoring (duration)
|
||||
ExpiryWarning string `env:"EXPIRY_WARNING" default:"2h" description:"Extractor expiry warning duration (e.g. 24h for 24 hours)"`
|
||||
ExpiryCritical string `env:"EXPIRY_CRITICAL" default:"0s" description:"Extractor expiry critical duration (e.g. 2h for 2 hours)"`
|
||||
|
||||
LogLevel string `env:"LOG_LEVEL" default:"info" description:"Logging level (dump, trace, debug, info, warning, error)"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user