-
Notifications
You must be signed in to change notification settings - Fork 471
Initial version of the OpenTelemetry System content pack #14400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial version of the OpenTelemetry System content pack #14400
Conversation
Signed-off-by: Alexander Wert <[email protected]>
Looks like the build is failing because there's no codeowner specified in |
Signed-off-by: Alexander Wert <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I went through the OTel onboarding screen here:
I ran this on a default Ubuntu VM through Multipass.
I checked out the PR branch here using gh pr checkout
and built the integration, e.g.
$ cd packages/system_otel
$ elastic-package build
Then, I generated an API key, and uploaded this content pack directly to a serverless observability project via cURL
e.g.
# Find the built zip in your integration repo's `build` directory
$ cd build/packages
$ curl -XPOST -H 'content-type: application/zip' -H 'kbn-xsrf: true' -H 'Authorization: ApiKey <redacted>' --data-binary @system_otel-1.0.0.zip https://otel-content-pack-test-ff3198.kb.us-east-1.aws.elastic.cloud/api/fleet/epm/packages
I waited a while and went through the provided dashboards. There are some expected errors in the cloud visualizations, but some other ones related to data views that I'm not sure on:
Screen.Recording.2025-07-02.at.9.33.16.AM.mov
packages/system_otel/kibana/dashboard/system_otel-8905d3c2-508b-4b43-a0eb-f03864dd64f6.json
Outdated
Show resolved
Hide resolved
packages/system_otel/kibana/dashboard/system_otel-8905d3c2-508b-4b43-a0eb-f03864dd64f6.json
Outdated
Show resolved
Hide resolved
packages/system_otel/kibana/dashboard/system_otel-329ee135-f301-4dab-91f4-af52cd58cb88.json
Outdated
Show resolved
Hide resolved
packages/system_otel/kibana/dashboard/system_otel-329ee135-f301-4dab-91f4-af52cd58cb88.json
Outdated
Show resolved
Hide resolved
packages/system_otel/kibana/dashboard/system_otel-e21fc868-3857-47f8-88b0-7ff94a1eb8a9.json
Show resolved
Hide resolved
15b4a91
to
40d9357
Compare
Signed-off-by: Alexander Wert <[email protected]>
Signed-off-by: Alexander Wert <[email protected]>
Looks like the recent commit fixed my dataview issue in serverless In testing against my local dev cluster, though, my OTel data seems to be in the wrong index: Here's my receivers:
# Receiver for platform specific log files
filelog/platformlogs:
include: [ /var/log/*.log ]
retry_on_failure:
enabled: true
start_at: end
storage: file_storage
# start_at: beginning
# Receiver for CPU, Disk, Memory, and Filesystem metrics
hostmetrics/system:
collection_interval: 30s
scrapers:
disk:
filesystem:
cpu:
metrics:
system.cpu.utilization:
enabled: true
system.cpu.logical.count:
enabled: true
memory:
metrics:
system.memory.utilization:
enabled: true
# process scraper is disabled for now: https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/39423
#process:
# mute_process_exe_error: true
# mute_process_io_error: true
# mute_process_user_error: true
# metrics:
# process.threads:
# enabled: true
# process.open_file_descriptors:
# enabled: true
# process.memory.utilization:
# enabled: true
# process.disk.operations:
# enabled: true
network:
processes:
load:
extensions:
file_storage:
directory: /home/ubuntu/elastic-distro-9.0.3-linux-arm64/data/otelcol
processors:
elasticinframetrics:
resourcedetection:
detectors: ["system"]
system:
hostname_sources: ["os"]
resource_attributes:
host.name:
enabled: true
host.id:
enabled: false
host.arch:
enabled: true
host.ip:
enabled: true
host.mac:
enabled: true
host.cpu.vendor.id:
enabled: true
host.cpu.family:
enabled: true
host.cpu.model.id:
enabled: true
host.cpu.model.name:
enabled: true
host.cpu.stepping:
enabled: true
host.cpu.cache.l2.size:
enabled: true
os.description:
enabled: true
os.type:
enabled: true
attributes/dataset:
actions:
- key: event.dataset
from_attribute: data_stream.dataset
action: upsert
resource/process:
attributes:
- key: process.executable.name
action: delete
- key: process.executable.path
action: delete
exporters:
# Exporter to send logs and metrics to Elasticsearch
elasticsearch/ecs:
endpoints: ["http://192.168.4.117:9200"]
api_key: RjVHWHk1Y0JVSkNybnZtNE9MNmU6LTNLVEpRVmFPZ0tfelhjamdxakZvdw==
mapping:
mode: ecs
logs_dynamic_index:
enabled: true
metrics_dynamic_index:
enabled: true
traces_dynamic_index:
enabled: true
elasticsearch/otel:
endpoints: [ "http://192.168.4.117:9200" ]
api_key: RjVHWHk1Y0JVSkNybnZtNE9MNmU6LTNLVEpRVmFPZ0tfelhjamdxakZvdw==
mapping:
mode: otel
logs_dynamic_index:
enabled: true
metrics_dynamic_index:
enabled: true
traces_dynamic_index:
enabled: true
service:
extensions: [file_storage]
pipelines:
metrics/hostmetrics:
receivers: [hostmetrics/system]
processors: [elasticinframetrics, resourcedetection, attributes/dataset, resource/process]
exporters: [elasticsearch/ecs]
logs/platformlogs:
receivers: [filelog/platformlogs]
processors: [resourcedetection]
exporters: [elasticsearch/otel] |
packages/system_otel/kibana/dashboard/system_otel-329ee135-f301-4dab-91f4-af52cd58cb88.json
Outdated
Show resolved
Hide resolved
packages/system_otel/kibana/dashboard/system_otel-329ee135-f301-4dab-91f4-af52cd58cb88.json
Outdated
Show resolved
Hide resolved
packages/system_otel/kibana/dashboard/system_otel-329ee135-f301-4dab-91f4-af52cd58cb88.json
Outdated
Show resolved
Hide resolved
@kpollich This
|
Co-authored-by: Christos Markou <[email protected]>
Co-authored-by: Christos Markou <[email protected]>
Signed-off-by: Alexander Wert <[email protected]>
Signed-off-by: Alexander Wert <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just a small comment regarding the cpu utilization line tag
packages/system_otel/kibana/dashboard/system_otel-329ee135-f301-4dab-91f4-af52cd58cb88.json
Outdated
Show resolved
Hide resolved
packages/system_otel/kibana/dashboard/system_otel-c505790f-b3ef-4ca8-81a6-3554be676272.json
Show resolved
Hide resolved
packages/system_otel/kibana/dashboard/system_otel-c2749107-6de5-49b5-b007-582a88de8d7c.json
Outdated
Show resolved
Hide resolved
packages/system_otel/kibana/dashboard/system_otel-e21fc868-3857-47f8-88b0-7ff94a1eb8a9.json
Show resolved
Hide resolved
Thanks @AlexanderWert - I made those changes and everything looks good to me in my local cluster now. |
Signed-off-by: Alexander Wert <[email protected]>
Co-authored-by: Christos Markou <[email protected]>
Signed-off-by: Alexander Wert <[email protected]>
Signed-off-by: Alexander Wert <[email protected]>
Co-authored-by: Christos Markou <[email protected]>
Co-authored-by: Christos Markou <[email protected]>
Co-authored-by: Christos Markou <[email protected]>
Co-authored-by: Christos Markou <[email protected]>
Co-authored-by: Christos Markou <[email protected]>
Co-authored-by: Christos Markou <[email protected]>
Co-authored-by: Christos Markou <[email protected]>
Co-authored-by: Christos Markou <[email protected]>
Co-authored-by: Christos Markou <[email protected]>
Co-authored-by: Christos Markou <[email protected]>
Co-authored-by: Christos Markou <[email protected]>
Signed-off-by: Alexander Wert <[email protected]>
|
💚 Build Succeeded
History
|
Package system_otel - 0.1.0 containing this change is available at https://epr.elastic.co/package/system_otel/0.1.0/ |
…integration for observability onboarding (#226238) ## Summary Blocked by elastic/integrations#14400 Replace the installation of the `system` integration with the new `system_otel` content pack in the Observability "add data" flow. --------- Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Alexander Wert <[email protected]>
Proposed commit message
Checklist
changelog.yml
file.Author's Checklist
How to test this PR locally
Related issues
Screenshots
Closes #14304