Giter Site home page Giter Site logo

Comments (10)

mahmoudm avatar mahmoudm commented on May 31, 2024

this is also relevant, in case you want to handle it with a similar approach: #125

from witchcraft-go-server.

nmiyake avatar nmiyake commented on May 31, 2024

Right now, the values are determined based on the metric type. For example, timer metrics emit 12 values as described in the ticket (https://github.com/palantir/pkg/blob/master/metrics/value.go#L123), while meter values emit 5 (https://github.com/palantir/pkg/blob/master/metrics/value.go#L105).

The interesting thing to me here is how we want to go about configuring what is outputted. Broadly, the options are:

  • Configure globally per metric type
    • For example, we could declare that all timer metrics should only emit Count, p99 and stddev
  • Configure on a per-metric basis
    • For example, for server.request.size, we could specify that only certain keys should be recorded

If we take the latter approach, we may want to have it be part of the same config as proposed for #125

from witchcraft-go-server.

mahmoudm avatar mahmoudm commented on May 31, 2024

good question -- my personal preference is to do the global one, as I find it unlikely that i care about specifying this differently on a per metric basis.

from witchcraft-go-server.

nmiyake avatar nmiyake commented on May 31, 2024

For global, the basic choices are blacklisting specific keys for specific types, or blacklisting specific keys globally.

For example, "meter" and "timer" metrics both have keys such as "count", "1m", "5m".

We could imagine either a blacklist like:

meter:
  - 1m
timer:
  - count

(the above would omit the "1m" key for all "meter" metrics, but the "timer" metrics would still have the "1m" key)

Or a global blacklist like:

- "p50"
- "1m"

That would blacklist the keys across all metrics.

Between those 2 options I'd lean towards keying by metric type (since it offers more flexibility), but open to suggestions.

from witchcraft-go-server.

mahmoudm avatar mahmoudm commented on May 31, 2024

by metric type makes sense to me

from witchcraft-go-server.

ashrayjain avatar ashrayjain commented on May 31, 2024

I would also suggest taking a stance on some of these instead of leaving it up to consumers to decide. For example, meanRate should be blacklisted across the board as should the 1m/5m/15m. Count is enough to get the rate over time.

from witchcraft-go-server.

ashrayjain avatar ashrayjain commented on May 31, 2024

This is already what we do in witchcraft server implementations for other languages (java in particular)

from witchcraft-go-server.

nmiyake avatar nmiyake commented on May 31, 2024

Yes, in sync with setting sane defaults. Anything else beyond the things you listed there?

from witchcraft-go-server.

ashrayjain avatar ashrayjain commented on May 31, 2024

We also don't publish p50,stddev,mean,min for java. so I think we should also remove those. Don't think there are legit usecases for them either.

from witchcraft-go-server.

nmiyake avatar nmiyake commented on May 31, 2024

Updated PR with these defaults. Next step is to iterate with @bmoylan on the feedback he provided (he flagged a good point about validating values and I outlined some possible approaches and am waiting to hear back).

from witchcraft-go-server.

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.