|
|
@ -190,7 +190,6 @@ type flagConfig struct { |
|
|
|
queryConcurrency int |
|
|
|
queryConcurrency int |
|
|
|
queryMaxSamples int |
|
|
|
queryMaxSamples int |
|
|
|
RemoteFlushDeadline model.Duration |
|
|
|
RemoteFlushDeadline model.Duration |
|
|
|
nameEscapingScheme string |
|
|
|
|
|
|
|
maxNotificationsSubscribers int |
|
|
|
maxNotificationsSubscribers int |
|
|
|
|
|
|
|
|
|
|
|
enableAutoReload bool |
|
|
|
enableAutoReload bool |
|
|
@ -551,15 +550,6 @@ func main() { |
|
|
|
os.Exit(1) |
|
|
|
os.Exit(1) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if cfg.nameEscapingScheme != "" { |
|
|
|
|
|
|
|
scheme, err := model.ToEscapingScheme(cfg.nameEscapingScheme) |
|
|
|
|
|
|
|
if err != nil { |
|
|
|
|
|
|
|
fmt.Fprintf(os.Stderr, `Invalid name escaping scheme: %q; Needs to be one of "values", "underscores", or "dots"`, cfg.nameEscapingScheme) |
|
|
|
|
|
|
|
os.Exit(1) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
model.NameEscapingScheme = scheme |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if agentMode && len(serverOnlyFlags) > 0 { |
|
|
|
if agentMode && len(serverOnlyFlags) > 0 { |
|
|
|
fmt.Fprintf(os.Stderr, "The following flag(s) can not be used in agent mode: %q", serverOnlyFlags) |
|
|
|
fmt.Fprintf(os.Stderr, "The following flag(s) can not be used in agent mode: %q", serverOnlyFlags) |
|
|
|
os.Exit(3) |
|
|
|
os.Exit(3) |
|
|
|