You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.
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:
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.
The text was updated successfully, but these errors were encountered:
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.
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.
The text was updated successfully, but these errors were encountered: