feat: Add webhook notification and conflict retry for Reloader v2

This commit is contained in:
TheiLLeniumStudios
2025-12-28 08:47:52 +01:00
parent 0a2aa122f5
commit ce1e7dfafb
9 changed files with 555 additions and 61 deletions
+4
View File
@@ -82,6 +82,9 @@ type Config struct {
// Metrics configuration
MetricsAddr string // Address to serve metrics on (default :9090)
// Health probe configuration
HealthAddr string // Address to serve health probes on (default :8081)
// Profiling configuration
EnablePProf bool
PProfAddr string
@@ -170,6 +173,7 @@ func NewDefault() *Config {
LogFormat: "",
LogLevel: "info",
MetricsAddr: ":9090",
HealthAddr: ":8081",
EnablePProf: false,
PProfAddr: ":6060",
Alerting: AlertingConfig{},
+4
View File
@@ -78,6 +78,10 @@ func BindFlags(fs *pflag.FlagSet, cfg *Config) {
fs.StringVar(&cfg.MetricsAddr, "metrics-addr", cfg.MetricsAddr,
"Address to serve metrics on")
// Health probes
fs.StringVar(&cfg.HealthAddr, "health-addr", cfg.HealthAddr,
"Address to serve health probes on")
// Profiling
fs.BoolVar(&cfg.EnablePProf, "enable-pprof", cfg.EnablePProf,
"Enable pprof profiling server")