Skip to content

Commit

Permalink
Add spec for Universal Profiling Symbolizer (#2401)
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Lehner <[email protected]>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
florianl and mergify[bot] authored Mar 27, 2023
1 parent bf7f9f5 commit 02f2fc3
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 0 deletions.
32 changes: 32 additions & 0 deletions changelog/fragments/1679899362-pf-elastic-symbolizer.yaml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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 {} \; && \
Expand Down
1 change: 1 addition & 0 deletions magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,7 @@ func packageAgent(platforms []string, packagingFn func()) {
"apm-server",
"endpoint-security",
"fleet-server",
"pf-elastic-symbolizer",
"pf-host-agent",
}

Expand Down
4 changes: 4 additions & 0 deletions pkg/component/load_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
12 changes: 12 additions & 0 deletions specs/pf-elastic-symbolizer.spec.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 02f2fc3

Please sign in to comment.