Skip to content

Commit

Permalink
Update apm-server spec (#23856) (#24210)
Browse files Browse the repository at this point in the history
* Copy fleet to inputs to make Kibana host available to apm-server

* Remove unneeded keys
# Conflicts:
#	x-pack/elastic-agent/pkg/agent/program/supported.go
  • Loading branch information
jalvz authored Feb 25, 2021
1 parent 0231262 commit b7111ed
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/elastic-agent/pkg/agent/program/supported.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions x-pack/elastic-agent/spec/apm-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,19 @@ cmd: apm-server
artifact: apm-server
args: ["-E", "management.enabled=true", "-E", "management.mode=x-pack-fleet", "-E", "apm-server.data_streams.enabled=true"]
rules:
- copy_to_list:
item: fleet
to: inputs
on_conflict: noop
- map:
path: fleet
rules:
- remove_key:
key: access_api_key
- remove_key:
key: reporting
- remove_key:
key: agent
- fix_stream: {}
- filter_values:
selector: inputs
Expand All @@ -13,4 +26,5 @@ rules:
selectors:
- inputs
- output
- fleet
when: length(${inputs}) > 0 and hasKey(${output}, 'elasticsearch')

0 comments on commit b7111ed

Please sign in to comment.