linkerd2/controller/api/destination
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
..
watcher Replace `server_port_subscribers` metric (#11206) 2023-08-08 11:28:51 -05:00
client.go Add `--destination-pod flag` to `linkerd diagnostics endpoints` subcommand (#9200) 2022-08-18 15:37:29 -06:00
dedup_profile_listener.go destination: Avoid sending spurious profile updates (#10517) 2023-03-13 13:36:18 -07:00
default_profile_listener.go destination: Avoid sending spurious profile updates (#10517) 2023-03-13 13:36:18 -07:00
destination_fuzzer.go Fuzzing: Move fuzzers upstream (#7419) 2022-05-05 13:01:00 -06:00
endpoint_profile_translator.go Add `gosec` and `errcheck` lints (#7954) 2022-03-03 10:09:51 -07:00
endpoint_translator.go Fix bug where topology routing would not disable while service was under load. (#10925) 2023-05-26 10:31:14 -07:00
endpoint_translator_test.go destination: send `Opaque` protocol hint for opaque ports (#10301) 2023-04-14 16:48:03 -07:00
fallback_profile_listener.go destination: Avoid sending spurious profile updates (#10517) 2023-03-13 13:36:18 -07:00
fallback_profile_listener_test.go destination: Avoid sending spurious profile updates (#10517) 2023-03-13 13:36:18 -07:00
opaque_ports_adaptor.go destination: Avoid sending spurious profile updates (#10517) 2023-03-13 13:36:18 -07:00
profile_translator.go destination: Avoid sending spurious profile updates (#10517) 2023-03-13 13:36:18 -07:00
profile_translator_test.go enable `staticcheck` (#8037) 2022-03-10 15:43:35 -08:00
server.go inject: don't expand opaque port ranges (#10827) 2023-04-27 11:27:40 -07:00
server_test.go destination: Avoid sending spurious profile updates (#10517) 2023-03-13 13:36:18 -07:00
test_util.go destination: Avoid sending spurious profile updates (#10517) 2023-03-13 13:36:18 -07:00