-
Notifications
You must be signed in to change notification settings - Fork 63
[Golang] OpenCensus Agent sample appears to not work #456
Comments
Thank you for this report @DazWilkin! The problem suffices because I believe the version of your opencensus-proto at $GOPATH/src/github.com/census-instrumentation/opencensus-proto is stale. To get this sample running, please prefix GO111MODULE=on go run example/main.go /cc @bogdandrutu @songy23 in regards to publishing opencensus-proto updates |
Thanks @odeke-em! I am using the release binary after having problems building the agent from source. |
@DazWilkin did |
@odeke-em I'm using one of the release binaries because I had problems building from sources. |
@DazWilkin yes I got that thanks! However, my question was about running the sample example that you said isn't working |
@odeke-em will try this today |
No joy but it's probably me and my lack of familiarity with I copied the sample from the OpenCensus Agent page to a local directory... no Then I tried getting what appears to be a most recent commit for
Then I tried using modules.... possibly incorrectly:
But the
and it modifies
but, by the time the code's running,
If this is just dumb-user error, let's drop it as I don't want to waste more of your time. If it's not, would a good next step be for you to provide me with a definitive |
@odeke-em what do you think: drop it or pursue? I'm interested in revising some existing OpenCensus code to replace backend exporter-specific code (Datadog, Prometheus, Stackdriver) with the Agent Exporter. I'm unable to pursue this until I can get the Agent Exporter working correctly. Am I alone in having challenges with it? If so, I'll continue to try to get it to work. I did try again with a clean project, clean install on Thursday but same-same behavior. |
@DazWilkin wanna have a call?
The go.mod file is the one in this repository which is what is missing. You had filed this issue for this repository hence the assumption that you were still using the entire repo. I have solved the exact same issue for others just by using this repo as is and running |
I think I've uncovered an issue. The sample works after removing (!) the I revised the sample to use the
No matter how I tweaked the distribution buckets, the error merely revised So I removed the |
Created an issue for this in the OpenCensus Go Exportoer for Stackdriver: |
#490 bumps up the oc-proto version. |
I'll keep an eye on it, thank you @songy23! When it's merged, you are confident this will then work for me? |
Agent-Exporter should work fine with Agent after that PR. Though we may need to do a bit more debugging with census-ecosystem/opencensus-go-exporter-stackdriver#98. |
On the proto (used internally on the service) it is expected that if there are N-1 bucket bounds, there should be N bucket counts so this really seems an issue for the exporter (incorrect translation from proto). |
Folks -- willing to do legwork to get this issue resolved but, I'd really like to wait until there's assurance that the agent works with Stackdriver. What can I do to help get this progressed? |
https://opencensus.io/exporters/supported-exporters/go/ocagent/
With a configuration
The agent (!) appears to receive no data from the sample.
The agent isn't verbose (#453) but tweaking the configuration to use a Prometheus receiver and tweaking the sample to use the Prometheus exporter, works better (albeit imperfectly):
and then
NB retained
oce
for convenience.I'm then able to curl the Prometheus exporter's metrics (
:9090/metrics
) which shows that the agent is proxying them from the receiver (:8889/metrics
)The Stackdriver Account receives the metrics (created) but no data is received:
The Datadog agent receives no data... I think the agent's Datadog metrics functionality is broken (#454)
The text was updated successfully, but these errors were encountered: