Open asutoshpalai opened 5 years ago
Thanks for reporting @asutoshpalai. This is due to the collector not implementing the metrics endpoint: the example periodically tries to send metric data and that resets the connection. The agent on the other hand implements the metrics endpoint and the reset doesn't happen. What happens if you remove the metrics from the example and go straight to the collector? Is that an option for you? That said it is a bug anyway...
Thanks @pjanotti, that's correct! When I didn't register the exporter with view, everything worked fine. It's good enough for me, but I will leave this issue open if you are looking to fix this in future.
Thanks for confirming @asutoshpalai - yes, this is a bug that needs to be fixed. Leaving the issue open.
When using the Agent exporter with OpenCensus to directly export to the Collector, instead of exporting to Agent and then to Collector, the connection keeps resetting.
Is this the intended behavior? If so, is there a way/config to maintain stable connection?
As per the blog and design doc, it looks like both the Agent and Collector are optional and we should be able to export directly to the collector.
The bug reproduction
I modified example/main.go to enable debug logs from gRPC as follows:
My Agent config:
My Collector config:
When all three are run, we get
only once in the logs of
example/main.go
.But if we don't run the agent and export directly to Collector (by changing the port in the Collector's config), we get the above the above logs multiple times.