Skip to content

Commit

Permalink
Enable k8s otel metrics remapping to elastic metrics (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
lahsivjar committed Jun 19, 2024
1 parent 54c4edf commit 430b38d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions input/otlp/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"github.com/elastic/apm-data/input"
"github.com/elastic/apm-data/model/modelpb"
"github.com/elastic/opentelemetry-lib/remappers/hostmetrics"
"github.com/elastic/opentelemetry-lib/remappers/kubernetesmetrics"
"go.opentelemetry.io/collector/consumer"
"go.opentelemetry.io/collector/pdata/pcommon"
"go.opentelemetry.io/collector/pdata/pmetric"
Expand Down Expand Up @@ -72,6 +73,7 @@ func NewConsumer(config ConsumerConfig) *Consumer {
if config.RemapOTelMetrics {
remappers = []remapper{
hostmetrics.NewRemapper(config.Logger),
kubernetesmetrics.NewRemapper(config.Logger),
}
}
return &Consumer{
Expand Down

0 comments on commit 430b38d

Please sign in to comment.