linkerd2/proxy/tests
Eliza Weisman b07b554d2b
Add labels from service discovery to proxy metrics reports (#661)
PR #654 adds pod-based metric labels to the Destination API responses for cluster-local services. 

This PR modifies the proxy to actually add these labels to reported Prometheus metrics for outbound requests to local services. 

It enhances the proxy's `control::discovery` module to track these labels and add a `LabelRequest` middleware to the service stack built in `Bind` for labeled services. Requests transiting `LabelRequest` are given an `Extension` which contains these labels, which are then added to events produced by the `Sensors` for these requests. When these events are aggregated to Prometheus metrics, the labels are added.

I've also added some tests in `test/telemetry.rs` ensuring that these metrics are added correctly when the Destination service provides labels.

Closes #660

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
2018-04-12 12:54:38 -07:00
..
support Add labels from service discovery to proxy metrics reports (#661) 2018-04-12 12:54:38 -07:00
discovery.rs Add labels from service discovery to proxy metrics reports (#661) 2018-04-12 12:54:38 -07:00
shutdown.rs proxy: fix flaky tcp graceful shutdown test (#735) 2018-04-10 19:47:00 -07:00
telemetry.rs Add labels from service discovery to proxy metrics reports (#661) 2018-04-12 12:54:38 -07:00
transparency.rs proxy: improve graceful shutdown process (#684) 2018-04-10 14:15:37 -07:00