linkerd2/controller/api/destination/watcher
Alejandro Pedraza 147c8dc07c
Add metrics to server and service watchers (#10213)
* 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.
2023-02-07 08:51:09 -05:00
..
endpoints_watcher.go Add metrics to server and service watchers (#10213) 2023-02-07 08:51:09 -05:00
endpoints_watcher_test.go Support service internal traffic policy (#10186) 2023-02-06 13:53:07 -07:00
k8s.go Add metrics to server and service watchers (#10213) 2023-02-07 08:51:09 -05:00
opaque_ports_watcher.go Add metrics to server and service watchers (#10213) 2023-02-07 08:51:09 -05:00
opaque_ports_watcher_test.go build(deps): bump sigs.k8s.io/gateway-api from 0.5.1 to 0.6.0 (#10038) 2023-01-16 09:38:09 -05:00
profile_watcher.go build(deps): bump sigs.k8s.io/gateway-api from 0.5.1 to 0.6.0 (#10038) 2023-01-16 09:38:09 -05:00
profile_watcher_test.go build(deps): bump sigs.k8s.io/gateway-api from 0.5.1 to 0.6.0 (#10038) 2023-01-16 09:38:09 -05:00
prometheus.go Add support for stateful sets (#3113) 2019-07-24 14:09:46 -07:00
server_watcher.go Add metrics to server and service watchers (#10213) 2023-02-07 08:51:09 -05:00
test_util.go Use go-test/deep for comparisons in tests (#8427) 2022-05-05 09:31:07 -07:00