Comments (10)
this is also relevant, in case you want to handle it with a similar approach: #125
from witchcraft-go-server.
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
andstddev
- For example, we could declare that all timer metrics should only emit
- Configure on a per-metric basis
- For example, for
server.request.size
, we could specify that only certain keys should be recorded
- For example, for
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.
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.
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.
by metric type makes sense to me
from witchcraft-go-server.
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.
This is already what we do in witchcraft server implementations for other languages (java in particular)
from witchcraft-go-server.
Yes, in sync with setting sane defaults. Anything else beyond the things you listed there?
from witchcraft-go-server.
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.
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)
- Runtime config refreshable produces zero value if cannot parse yaml
- pprof/goroutine returns 404 HOT 2
- Add a default health check for a sliding window of events HOT 1
- TestNewInflightLimitMiddleware test flakes
- Separate out trace sampling for application routes and management routes
- Allow selecting which go metrics you care about to emit HOT 4
- log canceled request as 499 instead of 500 HOT 8
- Ability to shutdown server with error HOT 3
- Reduce default trace rate to 1%
- 404s do not produce request logs
- Opt-in diagnostic log upon turning unhealthy HOT 5
- Improved panic logging
- Liveness endpoint should return non-empty JSON object
- Metric loggers should emit 0 value before regular value for certain metric types HOT 1
- connection metrics
- Encrypted values in configuration should be decoded while maintaining YAML structure
- RouteHandlerMiddleware unwieldy for endpoint-specific handling
- Missing pprof routes
- Library equivalent to Java's ManagedScheduledTask
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 witchcraft-go-server.