Comments (2)
I prefer the second one.
Benchmark results are not accurate, if we cache things in a hashmap, because hashmap is relatively slow in Rust.
from rust-prometheus.
Sometimes we can't call the metric too frequently, so we should cache it and call the metric in batch.
Is HashMap really slow for the above case?
Or we can use BTreeMap or even define a structure for the multi metrics.
What I want here is to supply a optimization guide for user when they find metrics reduce the performance.
Btw, Benchmark may be not accurate, but it can still show something for us.
from rust-prometheus.
Related Issues (20)
- Using a prefixed registry, valid metric names are incorrectly marked as invalid
- Dose histogram support merge operation?
- U64 and U128 Guage Types HOT 7
- Question: can arguments for .with_label_values() be returned from the function?
- Allow for merging of Text outputs
- Can the collector be mutable?
- Duplicate metrics
- Support for multiprocess statistics
- Feedback on experimental tokio runtime metrics support
- Need to add timestamp in data series before reporting to prometheus
- Is there a way to cleanup older metrics stored? HOT 1
- Registering the same metric multiple times HOT 1
- Support LocalIntGauge.
- Arbitrary headers for `push_metrics`
- Gathering empty MetricFamily HOT 1
- Add a Cargo optional feature to replace `std::time::Instant` with `tikv/minstant::Instant` HOT 1
- LabelPair PartialOrd inconsistent with PartialEq
- Metric Persistance
- Don't panic in `with_label_values` HOT 1
- Adding optional prefixes and labels to `ProcessCollector` metrics via custom registry initialization
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 rust-prometheus.