Comments (3)
Apologies for taking so long to respond to this.
I believe the first error means you are sending multiple metrics with the exact same label keys to Cloud Monitoring within a certain period of time (10s). Are you running multiple instances of your application under the same "resource" that could produce the same set of metrics?
from opencensus-go-exporter-stackdriver.
No worries! I think you tipped me off in the right direction... I run my applications as a go binary inside of a distroless docker image inside of Google Cloud Run, so I would have thought the labels should be different based on the Cloud Run instance that spins up my applications.
However, based on the documentation for DefaultMonitoringLabels it defaults to this defaults to a single label with key "opencensus_task" and value "go-<pid>@<hostname>"
Sure enough in my metrics the resulting label is go-1@localhost
since (I believe?) distroless boots my applications as PID 1. I'll see if I can key this off based on some Cloud Run metadata (or similar) and see if that helps.
from opencensus-go-exporter-stackdriver.
Yeah setting MonitoredResource
combined with DefaultMonitoringLabels
fixes things so bug was on my end. Thanks for the pointer!
from opencensus-go-exporter-stackdriver.
Related Issues (20)
- make travis-ci fails with goimports error in test.pb.go
- PushTraceSpans should return dropped spans instead of good spans
- Go exporter should detect GKE resource labels automatically HOT 10
- "panic: assignment to entry in nil map" error HOT 4
- The start time must be before the end time for the non-gauge metric HOT 6
- Can't see any metrics after running example code HOT 2
- Unexpectedly large custom metric ingest volume generated HOT 3
- Rebrand to Cloud Monitoring
- Use Zap library for logging to support JSON
- Add an option `OnExport` to exporter
- MetricDescriptor should be created as soon as the view is registered HOT 3
- Traces don't respect X-Cloud-Trace-Context
- 0.13.5 was tagged, but not yet released? HOT 1
- Stop assuming zonal cluster deployment HOT 1
- [Question] Why does this work without calling `view.RegisterExporter` from the OpenCensus library? HOT 2
- go: warning: github.com/prometheus/[email protected]+incompatible: retracted by module author HOT 1
- Security Policy violation SECURITY.md HOT 5
- GetMetricDisplayName option does not work HOT 1
- Error while updating imports: cannot find module providing package github.com/prometheus/prometheus/model/value HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opencensus-go-exporter-stackdriver.