linkerd2/controller/api/destination/watcher
Alejandro Pedraza 69ecb7f10d
Replace `server_port_subscribers` metric (#11206)
Fixes #10764

Removed the `server_port_subscribers` gauge, as it wasn't distiguishing
amongst different pods, and the number of subscribers for each pod were
conflicting with one another when updating the metric (see more details
[here](https://github.com/linkerd/linkerd2/issues/10764#issuecomment-1650835823)).

Besides carying an invalid value, this was generating the warning
`unable to delete server_port_subscribers metric with labels`

The metric was replaced with the `server_port_subscribes` and
`server_port_unsubscribes` counters, which track the overall number of
subscribes and unsubscribes to the particular pod port.

🌮 to @adleong for the diagnosis and the fix!
2023-08-08 11:28:51 -05:00
..
cluster_store.go Introduce an EndpointsWatcher cache structure (#11190) 2023-08-04 13:59:21 -07:00
cluster_store_test.go Introduce an EndpointsWatcher cache structure (#11190) 2023-08-04 13:59:21 -07:00
endpoints_watcher.go Introduce an EndpointsWatcher cache structure (#11190) 2023-08-04 13:59:21 -07:00
endpoints_watcher_test.go Fix bug where topology routing would not disable while service was under load. (#10925) 2023-05-26 10:31:14 -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 Replace `server_port_subscribers` metric (#11206) 2023-08-08 11:28:51 -05:00
test_util.go destination: Avoid sending spurious profile updates (#10517) 2023-03-13 13:36:18 -07:00