Skip to content
2 changes: 1 addition & 1 deletion agentcfg/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ type Fetcher interface {

// NewFetcher returns a new Fetcher based on the provided config.
func NewFetcher(cfg *config.Config) Fetcher {
if cfg.AgentConfigs != nil {
if cfg.AgentConfigs != nil || !cfg.Kibana.Enabled {
// Direct agent configuration is present, disable communication
// with kibana.
return NewDirectFetcher(cfg.AgentConfigs)
Expand Down
2 changes: 0 additions & 2 deletions apmpackage/apm/0.3.0/agent/input/template.yml.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ apm-server:
max_event_size: {{max_event_bytes}}
capture_personal_data: {{capture_personal_data}}
default_service_environment: {{default_service_environment}}
kibana:
api_key: {{kibana_api_key}}
rum:
enabled: {{enable_rum}}
source_mapping.elasticsearch.api_key: {{sourcemap_api_key}}
Expand Down
6 changes: 0 additions & 6 deletions apmpackage/apm/0.3.0/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,6 @@ policy_templates:
required: false
show_user: true
default: false
- name: kibana_api_key
type: text
title: API Key for Central Configuration
required: false
description: API Key for APM central configuration feature. Enter as <Id>:<API Key>
show_user: true
- name: enable_rum
type: bool
title: Enable RUM
Expand Down
7 changes: 0 additions & 7 deletions beater/config/agentconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ type AgentConfig struct {
}

func (s *AgentConfig) setup() error {
if !s.Service.isValid() {
return errInvalidAgentConfigServiceName
}
if s.Config == nil {
return errInvalidAgentConfigMissingConfig
}
Expand Down Expand Up @@ -87,7 +84,3 @@ func (s *Service) String() string {
}
return strings.Join([]string{name, env}, " ")
}

func (s *Service) isValid() bool {
return s.Name != "" || s.Environment != ""
}
1 change: 0 additions & 1 deletion beater/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ const (
)

var (
errInvalidAgentConfigServiceName = errors.New("agent_config: either service.name or service.environment must be set")
errInvalidAgentConfigMissingConfig = errors.New("agent_config: no config set")
)

Expand Down