diff --git a/changelog/fragments/1679899362-pf-elastic-symbolizer.yaml b/changelog/fragments/1679899362-pf-elastic-symbolizer.yaml new file mode 100644 index 00000000000..578297781dc --- /dev/null +++ b/changelog/fragments/1679899362-pf-elastic-symbolizer.yaml @@ -0,0 +1,32 @@ +# Kind can be one of: +# - breaking-change: a change to previously-documented behavior +# - deprecation: functionality that is being removed in a later release +# - bug-fix: fixes a problem in a previous version +# - enhancement: extends functionality but does not break or fix existing behavior +# - feature: new functionality +# - known-issue: problems that we are aware of in a given version +# - security: impacts on the security of a product or a user’s deployment. +# - upgrade: important information for someone upgrading from a prior version +# - other: does not fit into any of the other categories +kind: feature + +# Change summary; a 80ish characters long description of the change. +summary: Add Universal Profiling Symbolizer + +# Long description; in case the summary is not enough to describe the change +# this field accommodate a description without length limits. +# NOTE: This field will be rendered only for breaking-change and known-issue kinds at the moment. +#description: + +# Affected component; a word indicating the component this changeset affects. +component: spec + +# PR URL; optional; the PR number that added the changeset. +# If not present is automatically filled by the tooling finding the PR where this changelog fragment has been added. +# NOTE: the tooling supports backports, so it's able to fill the original PR number instead of the backport PR number. +# Please provide it if you are adding a fragment for a different PR. +pr: https://github.com/elastic/elastic-agent/pull/2401 + +# Issue URL; optional; the GitHub issue related to this changeset (either closes or is part of). +# If not present is automatically filled by the tooling with the issue linked to the PR number. +#issue: https://github.com/owner/repo/1234 diff --git a/dev-tools/packaging/templates/docker/Dockerfile.elastic-agent.tmpl b/dev-tools/packaging/templates/docker/Dockerfile.elastic-agent.tmpl index fbcc9e45b0c..250d6fffbb9 100644 --- a/dev-tools/packaging/templates/docker/Dockerfile.elastic-agent.tmpl +++ b/dev-tools/packaging/templates/docker/Dockerfile.elastic-agent.tmpl @@ -23,6 +23,7 @@ RUN mkdir -p {{ $beatHome }}/data {{ $beatHome }}/data/elastic-agent-{{ commit_s (chmod 0755 {{ $beatHome }}/data/elastic-agent-*/components/endpoint-security || true) && \ (chmod 0755 {{ $beatHome }}/data/elastic-agent-*/components/fleet-server || true) && \ (chmod 0755 {{ $beatHome }}/data/elastic-agent-*/components/elastic-agent-shipper || true) && \ + (chmod 0755 {{ $beatHome }}/data/elastic-agent-*/components/pf-elastic-symbolizer || true) && \ (chmod 0755 {{ $beatHome }}/data/elastic-agent-*/components/pf-host-agent || true) && \ find {{ $beatHome }}/data/elastic-agent-{{ commit_short }}/components -name "*.yml*" -type f -exec chown root:root {} \; && \ find {{ $beatHome }}/data/elastic-agent-{{ commit_short }}/components -name "*.yml*" -type f -exec chmod 0644 {} \; && \ diff --git a/magefile.go b/magefile.go index 0718ee035ee..e3b720f3873 100644 --- a/magefile.go +++ b/magefile.go @@ -778,6 +778,7 @@ func packageAgent(platforms []string, packagingFn func()) { "apm-server", "endpoint-security", "fleet-server", + "pf-elastic-symbolizer", "pf-host-agent", } diff --git a/pkg/component/load_test.go b/pkg/component/load_test.go index 93288742a3b..4f5aa065487 100644 --- a/pkg/component/load_test.go +++ b/pkg/component/load_test.go @@ -85,6 +85,10 @@ func TestLoadSpec_Components(t *testing.T) { Name: "Packetbeat", Path: "packetbeat.spec.yml", }, + { + Name: "Universal Profiling Symbolizer", + Path: "pf-elastic-symbolizer.spec.yml", + }, { Name: "Universal Profiling Agent", Path: "pf-host-agent.spec.yml", diff --git a/specs/pf-elastic-symbolizer.spec.yml b/specs/pf-elastic-symbolizer.spec.yml new file mode 100644 index 00000000000..631abf6dd9c --- /dev/null +++ b/specs/pf-elastic-symbolizer.spec.yml @@ -0,0 +1,12 @@ +version: 2 +inputs: + - name: pf-elastic-symbolizer + description: "Universal Profiling Symbolizer" + platforms: + - linux/amd64 + - linux/arm64 + outputs: + - elasticsearch + command: + args: + - "-elastic"