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

prometheus_mock test fails #404

Closed
jefchien opened this issue Nov 15, 2021 · 0 comments · Fixed by #406
Closed

prometheus_mock test fails #404

jefchien opened this issue Nov 15, 2021 · 0 comments · Fixed by #406

Comments

@jefchien
Copy link
Member

awscollector logs

2021-11-15T16:46:38.844Z info service/collector.go:132 Everything is ready. Begin running and processing data.

panic: runtime error: invalid memory address or nil pointer dereference

[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xcbba3d]


goroutine 86 [running]:

github.com/open-telemetry/opentelemetry-collector-contrib/exporter/awsprometheusremotewriteexporter.(*signingRoundTripper).RoundTrip(0xc000661220, 0xc0007b2b00)

github.com/open-telemetry/opentelemetry-collector-contrib/exporter/awsprometheusremotewriteexporter@v0.38.0/auth.go:47 +0x3d

net/http.send(0xc0007b2a00, {0x3778ea0, 0xc000661220}, {0x31c1f60, 0x4af101, 0x533ab20})

net/http/client.go:252 +0x5d8

net/http.(*Client).send(0xc000824900, 0xc0007b2a00, {0x7f62c12e3518, 0xc000114b20, 0x533ab20})

net/http/client.go:176 +0x9b

net/http.(*Client).do(0xc000824900, 0xc0007b2a00)

net/http/client.go:725 +0x908

net/http.(*Client).Do(...)

net/http/client.go:593

github.com/open-telemetry/opentelemetry-collector-contrib/exporter/prometheusremotewriteexporter.(*PRWExporter).execute(0xc00051f1a0, {0x37e1408, 0xc000500660}, 0x5e9d6a)

github.com/open-telemetry/opentelemetry-collector-contrib/exporter/prometheusremotewriteexporter@v0.38.0/exporter.go:277 +0x4c5

github.com/open-telemetry/opentelemetry-collector-contrib/exporter/prometheusremotewriteexporter.(*PRWExporter).export.func1()

github.com/open-telemetry/opentelemetry-collector-contrib/exporter/prometheusremotewriteexporter@v0.38.0/exporter.go:241 +0xf3

created by github.com/open-telemetry/opentelemetry-collector-contrib/exporter/prometheusremotewriteexporter.(*PRWExporter).export

github.com/open-telemetry/opentelemetry-collector-contrib/exporter/prometheusremotewriteexporter@v0.38.0/exporter.go:237 +0x256

It seems to be an issue with the configuration. Since stopping the sample app and restarting the collector yields the same result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant