Skip to content
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

Import hostmetricsreceiver from contrib #182

Merged
merged 1 commit into from
Feb 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ require (
github.com/open-telemetry/opentelemetry-collector-contrib/processor/metricstransformprocessor v0.40.0
github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourcedetectionprocessor v0.40.0
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/filelogreceiver v0.40.0
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver v0.40.0
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/jmxreceiver v0.40.0
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sclusterreceiver v0.40.0
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/kubeletstatsreceiver v0.40.0
Expand Down Expand Up @@ -123,6 +124,7 @@ require (
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/klauspost/compress v1.13.6 // indirect
github.com/knadh/koanf v1.3.2 // indirect
github.com/leoluk/perflib_exporter v0.1.0 // indirect
github.com/libp2p/go-reuseport v0.0.1 // indirect
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
github.com/magiconair/properties v1.8.5 // indirect
Expand Down Expand Up @@ -161,6 +163,7 @@ require (
github.com/prometheus/procfs v0.7.3 // indirect
github.com/prometheus/statsd_exporter v0.21.0 // indirect
github.com/rs/cors v1.8.0 // indirect
github.com/shirou/gopsutil v3.21.10+incompatible // indirect
github.com/shirou/gopsutil/v3 v3.21.10 // indirect
github.com/sirupsen/logrus v1.8.1 // indirect
github.com/spf13/cast v1.4.1 // indirect
Expand Down
3 changes: 3 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1074,6 +1074,7 @@ github.com/kylelemons/godebug v0.0.0-20160406211939-eadb3ce320cb/go.mod h1:B69LE
github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw=
github.com/leodido/go-urn v1.1.0/go.mod h1:+cyI34gQWZcE1eQU7NVgKkkzdXDQHr1dBMtdAPozLkw=
github.com/leodido/ragel-machinery v0.0.0-20181214104525-299bdde78165/go.mod h1:WZxr2/6a/Ar9bMDc2rN/LJrE/hF6bXE4LPyDSIxwAfg=
github.com/leoluk/perflib_exporter v0.1.0 h1:fXe/mDaf9jR+Zk8FjFlcCSksACuIj2VNN4GyKHmQqtA=
github.com/leoluk/perflib_exporter v0.1.0/go.mod h1:rpV0lYj7lemdTm31t7zpCqYqPnw7xs86f+BaaNBVYFM=
github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
github.com/libp2p/go-reuseport v0.0.1 h1:7PhkfH73VXfPJYKQ6JwS5I/eVcoyYi9IMNGc6FWpFLw=
Expand Down Expand Up @@ -1316,6 +1317,8 @@ github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourceproc
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/filelogreceiver v0.40.0 h1:/6/a6zSeD5jMIXRkZayIDDQPGcTijTpGYT+c7y5fpQs=
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/filelogreceiver v0.40.0/go.mod h1:qvc8SCvGCmjKPwb4xAiEglLPfW/VDbe3bcf8hnTxNcQ=
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver v0.39.0/go.mod h1:u92ws0hIomOsHEL32494akt2JC0XbusL2evgIvx3GXs=
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver v0.40.0 h1:kxUcVT8yV/PheivBrpqsa3NTAmnX+vJAhWkmNnmc2Pg=
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver v0.40.0/go.mod h1:a7owhwOzXe+z0n9GeeKCqeXUelNkv+qHFCZeS8KtCDA=
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/httpdreceiver v0.38.0/go.mod h1:tvWshCgICLV8z0jEsmSf7VnWBOGH+sInfk4SsdQ3XwA=
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/jmxreceiver v0.39.0/go.mod h1:X/cejCDPYQHeelAFRQzrgJ1dWY2bhDkdI3p7yu6na04=
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/jmxreceiver v0.40.0 h1:tJTbCvaIFSRWFeL3z6Efpdq0nn2ZHSK6rNvr0W1xY2E=
Expand Down
2 changes: 2 additions & 0 deletions pkg/collector/factories.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourcedetectionprocessor"
"github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourceprocessor"
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/filelogreceiver"
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver"
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/jmxreceiver"
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/k8sclusterreceiver"
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/kubeletstatsreceiver"
Expand Down Expand Up @@ -56,6 +57,7 @@ var defaultReceivers = []component.ReceiverFactory{
mysqlreceiver.NewFactory(),
statsdreceiver.NewFactory(),
postgresqlreceiver.NewFactory(),
hostmetricsreceiver.NewFactory(),
}

var defaultProcessors = []component.ProcessorFactory{
Expand Down