acoustic-carpenter-78188
07/06/2026, 10:08 PMGetTask (RUNNING/SUCCEEDED/FAILED/…).
Neither was answerable: the connector gRPC client had no Prometheus interceptor, and the returned task status was never recorded. This PR adds the metrics needed to build a Connectors dashboard.
Note on running-task count: an earlier revision of this PR added anWhat changes were proposed in this pull request? • gRPC client interceptors on the connector dial (gauge. It was dropped — review found the manual Inc/Dec bookkeeping was fragile (the persistedactive_tasksis terminal bystate.Phase, so it would leak upward). The number of in-flight connector tasks is instead derived from the plugin's existing autorefresh cache size (Finalize), which needs no new metric.…:cache:cache:size
flyteplugins/.../webapi/connector/client.go) → caller→connector-pod RPCs now emit the standard v2_grpc_client_* series with grpc_service=\"flyteidl2.connector.*\" (rate via handled_total, errors via grpc_code, latency via the histogram below).
• connector_get_task_phase CounterVec (flyteplugins/.../webapi/connector/plugin.go) → GetTask responses keyed by the task phase the connector returns. Registered under the connector plugin's metrics scope (repurposing the previously-dead connector_plugin scope to the real plugin metrics scope).
• Enable the gRPC client handling-time histogram (flytestdlib/grpcutils/factory.go) so v2_grpc_client_handling_seconds exists and RPC latency is chartable.
How was this patch tested?
• Updated the connector integration-test plugin loaders to initialize the new connector_get_task_phase counter (otherwise Get() would nil-panic).
• go build, go vet, and package tests pass for flytestdlib/grpcutils, pluginmachinery/internal/webapi, and plugins/webapi/connector.
Labels
added
Check all the applicable boxes
• I updated the documentation accordingly.
• All new and existing tests passed.
• All commits are signed-off.
flyteorg/flyteacoustic-carpenter-78188
07/07/2026, 9:28 AMacoustic-carpenter-78188
07/14/2026, 3:31 AM