From 79a28393d73e6c22abbd967aca2105570b018bfa Mon Sep 17 00:00:00 2001 From: Alexis Date: Fri, 3 Jun 2022 09:45:53 -0700 Subject: [PATCH] Update comments to reflect correct name of component --- cmd/otel-allocator/allocation/allocator.go | 6 +++--- cmd/otel-allocator/config/config.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/otel-allocator/allocation/allocator.go b/cmd/otel-allocator/allocation/allocator.go index 4b155632ea..ad1ddfb99f 100644 --- a/cmd/otel-allocator/allocation/allocator.go +++ b/cmd/otel-allocator/allocation/allocator.go @@ -10,8 +10,8 @@ import ( ) /* - Load balancer will serve on an HTTP server exposing /jobs//targets <- these are configured using least connection - Load balancer will need information about the collectors in order to set the URLs + Target Allocator will serve on an HTTP server exposing /jobs//targets <- these are configured using least connection + 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 */ @@ -65,7 +65,7 @@ func (allocator *Allocator) findNextCollector() *collector { } // SetTargets accepts the a list of targets that will be used to make -// load balancing decisions. This method should be called when where are +// target allocation decisions. This method should be called when where are // new targets discovered or existing targets are shutdown. func (allocator *Allocator) SetWaitingTargets(targets []TargetItem) { // Dump old data diff --git a/cmd/otel-allocator/config/config.go b/cmd/otel-allocator/config/config.go index d1776506e0..ac36b503c2 100644 --- a/cmd/otel-allocator/config/config.go +++ b/cmd/otel-allocator/config/config.go @@ -24,7 +24,7 @@ import ( // ErrInvalidYAML represents an error in the format of the original YAML configuration file. var ( - ErrInvalidYAML = errors.New("couldn't parse the loadbalancer configuration") + ErrInvalidYAML = errors.New("couldn't parse the targetallocator configuration") ) const DefaultResyncTime = 5 * time.Minute