mirror of
https://github.com/stakater/Reloader.git
synced 2026-08-27 14:37:17 +00:00
feat: Add webhook notification and conflict retry for Reloader v2
This commit is contained in:
@@ -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{},
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user