Skip to content

Commit

Permalink
Update test case as per latest otel
Browse files Browse the repository at this point in the history
  • Loading branch information
lahsivjar committed Sep 6, 2024
1 parent 6baf414 commit 3397c48
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions input/otlp/metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ func TestConsumeMetricsWithOTelRemapper(t *testing.T) {
metrics := pmetric.NewMetrics()
sm := metrics.ResourceMetrics().AppendEmpty().
ScopeMetrics().AppendEmpty()
sm.Scope().SetName("otelcol/hostmetricsreceiver/load")
sm.Scope().SetName("github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver/loadscraper")

metric := sm.Metrics().AppendEmpty()
metric.SetName("system.cpu.load_average.1m")
Expand All @@ -884,7 +884,7 @@ func TestConsumeMetricsWithOTelRemapper(t *testing.T) {
Service: &modelpb.Service{
Name: "unknown",
Language: &modelpb.Language{Name: "unknown"},
Framework: &modelpb.Framework{Name: "otelcol/hostmetricsreceiver/load"},
Framework: &modelpb.Framework{Name: "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver/loadscraper"},
},
Agent: &modelpb.Agent{Name: "otlp", Version: "unknown"},
Timestamp: modelpb.FromTime(ts),
Expand All @@ -903,7 +903,7 @@ func TestConsumeMetricsWithOTelRemapper(t *testing.T) {
Service: &modelpb.Service{
Name: "unknown",
Language: &modelpb.Language{Name: "unknown"},
Framework: &modelpb.Framework{Name: "otelcol/hostmetricsreceiver/load"},
Framework: &modelpb.Framework{Name: "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver/loadscraper"},
},
Agent: &modelpb.Agent{Name: "otlp", Version: "unknown"},
Timestamp: modelpb.FromTime(ts),
Expand Down Expand Up @@ -943,7 +943,7 @@ func TestConsumeMetricsWithOTelRemapper(t *testing.T) {
rm.Resource().Attributes().PutStr("process.owner", "testowner")
rm.Resource().Attributes().PutStr("process.command_line", "testcmdline")
sm := rm.ScopeMetrics().AppendEmpty()
sm.Scope().SetName("otelcol/hostmetricsreceiver/process")
sm.Scope().SetName("github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver/processscraper")

metric := sm.Metrics().AppendEmpty()
metric.SetName("process.memory.usage")
Expand All @@ -959,7 +959,7 @@ func TestConsumeMetricsWithOTelRemapper(t *testing.T) {
Service: &modelpb.Service{
Name: "unknown",
Language: &modelpb.Language{Name: "unknown"},
Framework: &modelpb.Framework{Name: "otelcol/hostmetricsreceiver/process"},
Framework: &modelpb.Framework{Name: "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver/processscraper"},
},
Agent: &modelpb.Agent{Name: "otlp", Version: "unknown"},
Timestamp: modelpb.FromTime(ts),
Expand All @@ -984,7 +984,7 @@ func TestConsumeMetricsWithOTelRemapper(t *testing.T) {
Service: &modelpb.Service{
Name: "unknown",
Language: &modelpb.Language{Name: "unknown"},
Framework: &modelpb.Framework{Name: "otelcol/hostmetricsreceiver/process"},
Framework: &modelpb.Framework{Name: "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver/processscraper"},
},
Agent: &modelpb.Agent{Name: "otlp", Version: "unknown"},
Timestamp: modelpb.FromTime(ts),
Expand Down

0 comments on commit 3397c48

Please sign in to comment.