Skip to content

Commit

Permalink
Merge pull request #42 from solarwinds/NH-67227
Browse files Browse the repository at this point in the history
update hardcoded default collector
  • Loading branch information
swi-jared authored Nov 28, 2023
2 parents 562b0ef + 56bc05a commit 1926c40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const (
// max config file size = 1MB
maxConfigFileSize = 1024 * 1024
// the default collector url
defaultSSLCollector = "apm.collector.cloud.solarwinds.com:443"
defaultSSLCollector = "apm.collector.na-01.cloud.solarwinds.com:443"
maxTokenBucketCapacity = 8
maxTokenBucketRate = 4
)
Expand Down Expand Up @@ -85,7 +85,7 @@ type Config struct {
sync.RWMutex `yaml:"-"`

// Collector defines the host and port of the SolarWinds Observability collector
Collector string `yaml:"Collector,omitempty" env:"SW_APM_COLLECTOR" default:"apm.collector.cloud.solarwinds.com:443"`
Collector string `yaml:"Collector,omitempty" env:"SW_APM_COLLECTOR" default:"apm.collector.na-01.cloud.solarwinds.com:443"`

// ServiceKey defines the service key and service name
ServiceKey string `yaml:"ServiceKey,omitempty" env:"SW_APM_SERVICE_KEY"`
Expand Down
2 changes: 1 addition & 1 deletion internal/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func TestPrintDelta(t *testing.T) {
changed.ReporterProperties.EventFlushInterval = 100

assert.Equal(t,
` - Collector (SW_APM_COLLECTOR) = test.com:443 (default: apm.collector.cloud.solarwinds.com:443)
` - Collector (SW_APM_COLLECTOR) = test.com:443 (default: apm.collector.na-01.cloud.solarwinds.com:443)
- PrependDomain (SW_APM_PREPEND_DOMAIN) = true (default: false)
- ReporterProperties.EventFlushInterval (SW_APM_EVENTS_FLUSH_INTERVAL) = 100 (default: 2)`,
getDelta(newConfig().reset(), changed, "").sanitize().String())
Expand Down

0 comments on commit 1926c40

Please sign in to comment.