Comments (3)
Background:
We added this task label before, since it's possible that MonitoredResource
alone cannot uniquely identify Stackdriver TimeSeries
(e.g multiple processes running on one GCE instance), and this could cause errors:
Points must be written in order. One or more of the points specified was older than the most recent stored point.: timeSeries[0-2]
There's one section in README that also explained this.
Back to the questions:
Is there a way we can avoid this?
Currently the task label will be added to Stackdriver stats exporter in C++, Java and Go by default, and we don't have an option to disable it yet.
Does exporting deltas instead of cumulative help?
Unfortunately Stackdriver doesn't allow custom metrics to be of type Delta
.
Or if we know for sure that the monitored resource is unique, can we provide an option to disable setting this label?
This could be an option. The task label is not necessary if MonitoredResource
can uniquely identify the exported stats. We can let the user choose whether they want this label or not.
Since Stackdriver has extended the definition of MonitoredResourceMetadata recently, another option is to have the task label as an optional MonitoredResourceMetadata.userLabel
.
from opencensus-go-exporter-stackdriver.
Plan of record is to replace the opencensus_task label with userLabels in the default MonitoredResourceMetadata, and users will also be able to override the default MonitoredResourceMetadata with Options.Resource.
from opencensus-go-exporter-stackdriver.
Please note that this is a breaking change, since we're modifying the definition of previous metrics (there's one less label in the metrics). Users of Stackdriver exporter may need to delete the previous metric definitions to avoid errors.
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
- Stackdriver fails to export metrics after living long enough HOT 3
- "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.