From 2ad8985c7fd1f7d31c1b9bb33a296dd6fd3a44cc Mon Sep 17 00:00:00 2001 From: Jacob Aronoff Date: Tue, 28 Nov 2023 17:56:36 -0500 Subject: [PATCH] [Target Allocator] Minor docs fix (#2400) * minor docs fix * remove chlog --- cmd/otel-allocator/allocation/least_weighted.go | 4 ++-- cmd/otel-allocator/main.go | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/otel-allocator/allocation/least_weighted.go b/cmd/otel-allocator/allocation/least_weighted.go index c6b27fe1fa..6ae9c5eb2b 100644 --- a/cmd/otel-allocator/allocation/least_weighted.go +++ b/cmd/otel-allocator/allocation/least_weighted.go @@ -29,9 +29,9 @@ var _ Allocator = &leastWeightedAllocator{} const leastWeightedStrategyName = "least-weighted" /* - Load balancer will serve on an HTTP server exposing /jobs//targets + Target Allocator will serve on an HTTP server exposing /jobs//targets The targets are allocated using the least connection method - Load balancer will need information about the collectors in order to set the URLs + Target Allocator will need information about the collectors in order to set the URLs Keep a Map of what each collector currently holds and update it based on new scrape target updates */ diff --git a/cmd/otel-allocator/main.go b/cmd/otel-allocator/main.go index 5167e0a946..b898245039 100644 --- a/cmd/otel-allocator/main.go +++ b/cmd/otel-allocator/main.go @@ -74,6 +74,7 @@ func main() { if validationErr := config.ValidateConfig(cfg); validationErr != nil { setupLog.Error(validationErr, "Invalid configuration") + os.Exit(1) } cfg.RootLogger.Info("Starting the Target Allocator")