linkerd2/controller/api/destination/watcher
Alejandro Pedraza 5d7499dc84
Avoid the dashboard requesting stats when not needed (#3338)
* Avoid the dashboard requesting stats when not needed

Create an alternative to `urlsForResource` called
`urlsForResourceNoStats` that makes use of the `skip_stats` parameter in
the stats API (created in #1871) that doesn't query Prometheus when not needed.

When testing using the dashboard looking at the linkerd namespace,
queries per second went down from 2874 to 2756, a 4% decrease.

Signed-off-by: Alejandro Pedraza <alejandro@buoyant.io>
2019-08-29 05:52:44 -05:00
..
endpoints_watcher.go Avoid the dashboard requesting stats when not needed (#3338) 2019-08-29 05:52:44 -05:00
endpoints_watcher_test.go Return invalid argument for external name services (#3120) 2019-07-29 16:31:22 -07:00
k8s.go Return invalid argument for external name services (#3120) 2019-07-29 16:31:22 -07:00
profile_watcher.go Cleanup: fix some typos in code comment (#3296) 2019-08-21 09:40:43 -07:00
profile_watcher_test.go Add support for stateful sets (#3113) 2019-07-24 14:09:46 -07:00
prometheus.go Add support for stateful sets (#3113) 2019-07-24 14:09:46 -07:00
test_util.go Update ServiceProfile CRD to version v1alpha2 and remove validation (#3078) 2019-07-23 11:46:31 -07:00
traffic_split_watcher.go Cleanup: fix some typos in code comment (#3296) 2019-08-21 09:40:43 -07:00
traffic_split_watcher_test.go Add traffic splitting to destination profiles (#2931) 2019-06-28 13:19:47 -07:00