Giter Site home page Giter Site logo

Comments (3)

james-bebbington avatar james-bebbington commented on August 19, 2024

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.

ascherkus avatar ascherkus commented on August 19, 2024

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.

ascherkus avatar ascherkus commented on August 19, 2024

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)

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.