Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
factory
Browse files Browse the repository at this point in the history
lewis262626 committed Feb 12, 2023
1 parent 3733bd8 commit 612f190
Showing 3 changed files with 469 additions and 5 deletions.
21 changes: 20 additions & 1 deletion receiver/awscloudwatchmetricsreceiver/factory.go
Original file line number Diff line number Diff line change
@@ -12,4 +12,23 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package awscloudwatchmetricsreceiver
package awscloudwatchmetricsreceiver // import "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/awscloudwatchmetricsreceiver"

import (
"go.opentelemetry.io/collector/component"
"go.opentelemetry.io/collector/receiver"
)

const (
typeStr = "awscloudwatchmetrics"
stabilityLevel = component.StabilityLevelDevelopment
)

// NewFactory creates a factory for awscloudwatchmetrics receiver.
func NewFactory() component.Factory {
return receiver.NewFactory(
typeStr,
createDefaultConfig,
receiver.WithMetrics(createMetricsRceiver, stabilityLevel),
)
}
33 changes: 31 additions & 2 deletions receiver/awscloudwatchmetricsreceiver/go.mod
Original file line number Diff line number Diff line change
@@ -2,6 +2,35 @@ module github.com/open-telemetry/opentelemetry-collector-contrib/receiver/awsclo

go 1.19

require go.uber.org/multierr v1.9.0
require (
go.opentelemetry.io/collector v0.71.0
go.opentelemetry.io/collector/component v0.71.0
go.uber.org/multierr v1.9.0
)

require go.uber.org/atomic v1.7.0 // indirect
require (
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/knadh/koanf v1.5.0 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
go.opentelemetry.io/collector/confmap v0.71.0 // indirect
go.opentelemetry.io/collector/consumer v0.71.0 // indirect
go.opentelemetry.io/collector/featuregate v0.71.0 // indirect
go.opentelemetry.io/collector/pdata v1.0.0-rc5 // indirect
go.opentelemetry.io/otel v1.13.0 // indirect
go.opentelemetry.io/otel/metric v0.36.0 // indirect
go.opentelemetry.io/otel/trace v1.13.0 // indirect
go.uber.org/atomic v1.10.0 // indirect
go.uber.org/zap v1.24.0 // indirect
golang.org/x/net v0.5.0 // indirect
golang.org/x/sys v0.4.0 // indirect
golang.org/x/text v0.6.0 // indirect
google.golang.org/genproto v0.0.0-20221118155620-16455021b5e6 // indirect
google.golang.org/grpc v1.52.3 // indirect
google.golang.org/protobuf v1.28.1 // indirect
)
420 changes: 418 additions & 2 deletions receiver/awscloudwatchmetricsreceiver/go.sum

Large diffs are not rendered by default.

0 comments on commit 612f190

Please sign in to comment.