Skip to content

Add hostmetrics, collectd receivers and otlphttp exporter#2046

Merged
JayPolanco merged 2 commits into
feature-otlp-exportfrom
otel-native
Mar 10, 2026
Merged

Add hostmetrics, collectd receivers and otlphttp exporter#2046
JayPolanco merged 2 commits into
feature-otlp-exportfrom
otel-native

Conversation

@JayPolanco
Copy link
Copy Markdown
Contributor

Description of the issue

Add upstream OTEL receivers and exporters to support YAML-only configuration for
native OTLP metrics ingestion.

Related: #2029 (Support YAML only configuration)

Description of changes

Added the following components to service/defaultcomponents/components.go:

Receivers:

  • hostmetricsreceiver - collect host-level metrics (CPU, memory, disk, etc.)
  • collectdreceiver - ingest metrics from collectd via binary protocol
  • statsdreceiver - (already present) ingest StatsD metrics

Exporters:

  • otlphttpexporter - export metrics via OTLP/HTTP

Cherry picked the change to support configuring the agent with YAML-only OTEL pipelines
without requiring JSON translation.

License

By submitting this pull request, I confirm that you can use, modify, copy, and
redistribute this contribution, under the terms of your choice.

Tests

  1. Updated components_test.go with new expected receivers (collectd, hostmetrics)
    and exporter (otlphttp)
  2. Ran go test ./service/defaultcomponents/... - all tests pass
  3. Ran go build ./service/defaultcomponents/... - compilation successful
  4. Manual E2E testing on EC2 with YAML-only config using hostmetrics receiver →
    otlphttp exporter pipeline

Requirements

Before committing your code, please do the following steps.

  1. Run make fmt and make fmt-sh
  2. Run make lint

Integration Tests

To run integration tests against this PR, add the ready for testing label.

@JayPolanco JayPolanco requested a review from a team as a code owner March 9, 2026 19:41
@JayPolanco JayPolanco added the ready for testing Indicates this PR is ready for integration tests to run label Mar 9, 2026
@JayPolanco JayPolanco merged commit a80ad9c into feature-otlp-export Mar 10, 2026
277 of 279 checks passed
@JayPolanco JayPolanco deleted the otel-native branch March 10, 2026 16:24
mitali-salvi added a commit that referenced this pull request Mar 18, 2026
Add upstream OTEL receivers and exporters to support YAML-only configuration
for native OTLP metrics ingestion. Includes hostmetricsreceiver, collectdreceiver,
and otlphttpexporter in default components. Cherry-picked support for configuring
the agent with YAML-only OTEL pipelines without requiring JSON translation.
mitali-salvi pushed a commit that referenced this pull request Mar 18, 2026
Add upstream OTEL receivers and exporters to support YAML-only configuration
for native OTLP metrics ingestion. Includes hostmetricsreceiver, collectdreceiver,
and otlphttpexporter in default components. Cherry-picked support for configuring
the agent with YAML-only OTEL pipelines without requiring JSON translation.
JayPolanco added a commit that referenced this pull request Mar 24, 2026
Co-authored-by: Jeffrey Chien <chienjef@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready for testing Indicates this PR is ready for integration tests to run

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants