linkerd2/proxy
Oliver Gould 6512b02780
proxy: Group metrics by label (#879)
Previously, we maintained a map of labels for each metric. Because the same keys are used
in multiple scopes, this causes redundant hashing & map lookup when updating metrics.

With this change, there is now only one map per unique label scope and all of the metrics
for each scope are stored in the value. This makes metrics inserting faster and prepares
for eviction of idle metrics.

The Metric type has been split into Metric, which now only holds metric metadata and is
responsible for printing a given metric, and Scopes which holds groupings of metrics by
label.

The metrics! macro is provided to make it easy to define Metric instances statically.
2018-04-30 15:33:09 -07:00
..
benches proxy: Implement benchmarks for telemetry recording (#874) 2018-04-29 12:55:26 -07:00
controller-grpc proxy: Support destination label matching for tap (#817) 2018-04-19 17:58:45 -07:00
convert Prepare for the v0.3.0 release (#406) 2018-02-21 11:14:11 -08:00
futures-mpsc-lossy Prepare for the v0.3.0 release (#406) 2018-02-21 11:14:11 -08:00
router Proxy: Upgrade h2 and indexmap crates (#572) 2018-03-14 12:35:38 -07:00
src proxy: Group metrics by label (#879) 2018-04-30 15:33:09 -07:00
tests proxy: wrap connections in Transport sensor before peeking (#851) 2018-04-27 14:18:23 -07:00
Cargo.toml Proxy: Use trust-dns-resolver for DNS. (#834) 2018-04-25 10:04:49 -10:00
Dockerfile Revert "Avoid `cargo fetch --locked` in proxy/Dockerfile. (#593)" (#767) 2018-04-16 13:27:49 -10:00
assert_macro proxy: Unbreak process_start_time_seconds metric (#825) 2018-04-20 15:59:08 -07:00