diff --git a/go.mod b/go.mod index 961290b9da6..c6867511889 100644 --- a/go.mod +++ b/go.mod @@ -104,6 +104,7 @@ require ( github.com/open-telemetry/opentelemetry-collector-contrib/receiver/httpcheckreceiver v0.104.0 github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sclusterreceiver v0.104.0 github.com/open-telemetry/opentelemetry-collector-contrib/receiver/kubeletstatsreceiver v0.104.0 + github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sobjectsreceiver v0.104.0 go.opentelemetry.io/collector/component v0.104.0 go.opentelemetry.io/collector/confmap v0.104.0 go.opentelemetry.io/collector/confmap/converter/expandconverter v0.104.0 diff --git a/go.sum b/go.sum index 5b06459620e..b0f56af35fc 100644 --- a/go.sum +++ b/go.sum @@ -1337,6 +1337,8 @@ github.com/open-telemetry/opentelemetry-collector-contrib/receiver/httpcheckrece github.com/open-telemetry/opentelemetry-collector-contrib/receiver/httpcheckreceiver v0.104.0/go.mod h1:htiBg7qA+iHbvEuvLXYFzKfN7YWjzIrAl8kn7p3AGCk= github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sclusterreceiver v0.104.0 h1:+5FViBkbBvewH5huajEx8yW5YWB+CbBzDLlRQITxxFg= github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sclusterreceiver v0.104.0/go.mod h1:dSGkzxCCrAZ4mpZ4cGt+cWOStvB894ONaHLue/SKqWg= +github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sobjectsreceiver v0.104.0 h1:SuPRmVqCgeXKnlRu4VxEes2UIeWzgaRG7Y8hxEUJEVc= +github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sobjectsreceiver v0.104.0/go.mod h1:Uwpe7RTa/VAU5eLoisBbhD5jSI/BHKyQIq8RQnrfG58= github.com/open-telemetry/opentelemetry-collector-contrib/receiver/kubeletstatsreceiver v0.104.0 h1:54u8jFK575BEX94f9tWgdopyojOCjUps0Myms+50irA= github.com/open-telemetry/opentelemetry-collector-contrib/receiver/kubeletstatsreceiver v0.104.0/go.mod h1:YJoZUI6IZ0IJnZsYifJjNkQU9DxiVkO3zU2QbWBaXBg= github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= diff --git a/internal/pkg/otel/README.md b/internal/pkg/otel/README.md index f4f5c58e0db..42e5b8af928 100644 --- a/internal/pkg/otel/README.md +++ b/internal/pkg/otel/README.md @@ -35,6 +35,7 @@ This section provides a summary of components included in the Elastic Distributi | [k8sclusterreceiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/receiver/k8sclusterreceiver/v0.104.0/receiver/k8sclusterreceiver/README.md) | v0.104.0 | | [kubeletstatsreceiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/receiver/kubeletstatsreceiver/v0.104.0/receiver/kubeletstatsreceiver/README.md) | v0.104.0 | | [otlpreceiver](https://github.com/open-telemetry/opentelemetry-collector/blob/receiver/otlpreceiver/v0.104.0/receiver/otlpreceiver/README.md) | v0.104.0 | +| [k8sobjectsreceiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/receiver/k8sobjectsreceiver/v0.104.0/receiver/k8sobjectsreceiver/README.md) | v0.104.0 | ### Exporters diff --git a/internal/pkg/otel/components.go b/internal/pkg/otel/components.go index e395c6cf4c0..fccd1fd0e1d 100644 --- a/internal/pkg/otel/components.go +++ b/internal/pkg/otel/components.go @@ -19,6 +19,7 @@ import ( hostmetricsreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver" httpcheckreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/httpcheckreceiver" k8sclusterreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sclusterreceiver" + k8sobjectsreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sobjectsreceiver" kubeletstatsreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/kubeletstatsreceiver" otlpreceiver "go.opentelemetry.io/collector/receiver/otlpreceiver" @@ -60,6 +61,7 @@ func components() (otelcol.Factories, error) { k8sclusterreceiver.NewFactory(), hostmetricsreceiver.NewFactory(), httpcheckreceiver.NewFactory(), + k8sobjectsreceiver.NewFactory(), ) if err != nil { return otelcol.Factories{}, err