Comments (7)
I had always hoped this day would come https://github.com/posix4e/rust-metrics. The library is really fine grained. You only need Prometheus if you want them. I'm also happy to donate this code or adapt it as people wish.
from tokio.
Hello everyone @durch is happy to help do this...
from tokio.
I suggest implementing prometheus metrics which are used by most companies for production server monitoring.
from tokio.
@lunemec I can see why you brought that point up in this thread. However, I didn't intend for this thread to be about log formats. Ideally, if we get the in memory model/code interface for Metrics correct, any application should be able to format those objects to the logs in any way they need.
To be more explicit:
Off topic: Log formats, Loggers, Log Processing/Analytics
- How do we end up getting the metrics into the log files?
- What do the log files look like?
On topic: The model/interface/implementation of Metrics.
- What does a
struct Metrics { ... }
look like? - How does
Metrics
get created/populated in an async environment?- Can this be done without allocations?
- Can we collect/expose metrics for sub-tasks, in the primary-task?
from tokio.
Oh, sorry you are right, this is about a way to collect all these metrics (generally) ...
thank you for the clarification.
from tokio.
Closing this due to inactivity. I would say that this behavior can probably be implemented in a standalone crate and mature separately.
from tokio.
from tokio.
Related Issues (20)
- Mark *Fd traits on TcpSocket as unix-only
- Add New Attribute Macro for making function run in background when called. HOT 2
- Codecs documentation could use some fully formed examples HOT 3
- Documentation of `AsyncFdReady*Guard::clear_ready` is misleading HOT 1
- Erroneous compiler error message for extra semicolon with try operator HOT 4
- Support an API to extract backtrace information from taskdump HOT 3
- Expose task ID in task dumps HOT 2
- tracing: mpsc channel size metrics HOT 5
- rt: Tolerate slow task polls HOT 5
- parking_lot mutex is slower than standard library HOT 2
- Support WASI preview 2 HOT 1
- fs: Data loss while retrying `File::flush` when disk is full HOT 3
- Document cancel safety of `AsyncReadExt`'s primitive read functions
- docs: specify the difference between `acquire` and `try_acquire` in the semaphore docs HOT 1
- tokio::select! with only an "else branch" HOT 1
- Allow runtime scaling of the number of workers HOT 1
- Automatically choose bind address in UDPSocket::connect HOT 5
- `assertion failed: next.is_notified()` during task dump with tokio v1.35.0 HOT 1
- Make AsyncFd::new return inner on error
- Documentation of `Runtime::enter` features unfortunate, slightly nondeterministic, and thus quite confusing example 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 tokio.