Giter Site home page Giter Site logo

Comments (3)

songy23 avatar songy23 commented on August 19, 2024

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.

semistrict avatar semistrict commented on August 19, 2024

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.

songy23 avatar songy23 commented on August 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.