mirror of https://github.com/linkerd/linkerd2.git
* Add metrics to server and service watchers Closes #10202 and completes #2204 As a followup to #10201, I'm adding the following metric in `server_watcher.go`: - `server_port_subscribers`: This tracks the number of subscribers to changes to Servers associated to a port in a pod. The metric's label identify the namespace and name of the pod, and its targeted port. Additionally, `opaque_ports.go` was missing metrics as well. I added `service_subscribers` which tracks the number of subscribers to a given Service, labeled by the Service's namespace and name. `opaque_ports.go` was also leaking the subscriber's map key, so that got fixed as well. |
||
---|---|---|
.. | ||
endpoints_watcher.go | ||
endpoints_watcher_test.go | ||
k8s.go | ||
opaque_ports_watcher.go | ||
opaque_ports_watcher_test.go | ||
profile_watcher.go | ||
profile_watcher_test.go | ||
prometheus.go | ||
server_watcher.go | ||
test_util.go |