You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove muxConnectionManager and replace with MuxManager (#149)
* Remove muxConnectionManager and replace with MuxManager
* Fix unit tests, improve muxManager lifecycle
* Fix shutdownch fake in mux_manager_test
* Add missing channels to test
* Clean up signaling logic, remove generics
* Remove redundant IsShutdown check
* Add metrics and logging for muxmanager
* Ensure metricLabels is set, metrics are configured
* Fix mux_manager_test
* Refine connection metrics
* have mux observer ping the session to get latency stats
* Add more metrics
* More metrics, wrap yamux logger
* Move waiting for client metric close to include error case
* Change to 30s stream timeout
* Enable server log debugging
* more logs
* more logs
* Include details about the replacement connection
* Ensure grpc server restarts on error
* fmt
* Update metrics/prometheus_defs.go
Co-authored-by: Paul Glass <pnglass@gmail.com>
* Requested PR fixes
* fmt
---------
Co-authored-by: Paul Glass <pnglass@gmail.com>
Copy file name to clipboardExpand all lines: metrics/prometheus_defs.go
+41-7Lines changed: 41 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -11,12 +11,13 @@ var (
11
11
12
12
// /proxy/adminservice.go
13
13
14
-
AdminServiceStreamsActive=DefaultGaugeVec("admin_service_streams_active", "Number of admin service streams open", "direction")
15
-
AdminServiceStreamDuration=DefaultHistogramVec("admin_service_stream_duration", "The length of time each stream was open", "direction")
16
-
AdminServiceStreamsOpenedCount=DefaultCounterVec("admin_service_streams_opened_count", "Number of streams opened", "direction")
17
-
AdminServiceStreamsClosedCount=DefaultCounterVec("admin_service_streams_closed_count", "Number of streams closed", "direction")
18
-
AdminServiceStreamReqCount=DefaultCounterVec("admin_service_stream_request_count", "Number of messages received", "direction")
19
-
AdminServiceStreamRespCount=DefaultCounterVec("admin_service_stream_response_count", "Number of messages received", "direction")
14
+
AdminServiceStreamsActive=DefaultGaugeVec("admin_service_streams_active", "Number of admin service streams open", "direction")
15
+
AdminServiceStreamDuration=DefaultHistogramVec("admin_service_stream_duration", "The length of time each stream was open", "direction")
16
+
AdminServiceWaitingForConnection=DefaultGaugeVec("admin_service_waiting_for_connection", "Indicates the number of requests waiting on a client", "direction")
17
+
AdminServiceStreamsOpenedCount=DefaultCounterVec("admin_service_streams_opened_count", "Number of streams opened", "direction")
18
+
AdminServiceStreamsClosedCount=DefaultCounterVec("admin_service_streams_closed_count", "Number of streams closed", "direction")
19
+
AdminServiceStreamReqCount=DefaultCounterVec("admin_service_stream_request_count", "Number of messages received", "direction")
20
+
AdminServiceStreamRespCount=DefaultCounterVec("admin_service_stream_response_count", "Number of messages received", "direction")
20
21
// AdminServiceStreamTerminatedCount's labels are direction (inbound/outbound) and terminated_by (source/target)
21
22
AdminServiceStreamTerminatedCount=DefaultCounterVec("admin_service_stream_terminated_count", "Stream was terminated by remote server", "direction", "terminated_by")
22
23
@@ -35,14 +36,19 @@ var (
35
36
ProxyServiceStopped=DefaultCounterVec("proxy_service_stopped", "Emitted on service shutdown", "direction")
36
37
ProxyServiceRestarted=DefaultCounterVec("proxy_service_restarted", "Emitted on service shutdown", "direction")
37
38
39
+
// /proxy/temporal_api_server.go
40
+
41
+
GRPCServerStarted=DefaultCounterVec("grpc_server_started", "Emits when the grpc server is started", "service_name")
42
+
GRPCServerStopped=DefaultCounterVec("grpc_server_stopped", "Emits when the grpc server is stopped", "service_name", "error")
43
+
38
44
// /transport/grpc.go
39
45
// Gratuitous hack: Until https://github.com/grpc-ecosystem/go-grpc-middleware/issues/783 is addressed,
40
46
// we need to register a dependent registry with constant labels applied.
MuxErrors=DefaultCounterVec("mux_errors", "Number of errors observed from mux", muxManagerLabels...)
57
72
MuxConnectionEstablish=DefaultCounterVec("mux_connection_establish", "Number of times mux has established", muxManagerLabels...)
73
+
MuxWaitingConnections=DefaultGaugeVec("mux_waiting_connections", "Number of goroutines waiting for a mux connection", muxManagerLabels...)
74
+
MuxConnectionProvided=DefaultCounterVec("mux_connection_provided", "Number of times a connection was provided from WithConnection", muxManagerLabels...)
75
+
MuxDialFailed=DefaultCounterVec("mux_dial_failed", "Mux failed when dialing", muxManagerLabels...)
76
+
MuxDialSuccess=DefaultCounterVec("mux_dial_success", "Mux succeeded on dial", muxManagerLabels...)
0 commit comments