renamed ssh_pxy_sessions to pxy_ssh_sessions

This commit is contained in:
hyung-hwan 2025-01-28 01:29:21 +09:00
parent c5f63328b2
commit 2655da937f
4 changed files with 13 additions and 2 deletions

View File

@ -51,6 +51,7 @@ type BasicAuthConfig struct {
type CTLServiceConfig struct { type CTLServiceConfig struct {
Prefix string `yaml:"prefix"` // url prefix for control channel endpoints Prefix string `yaml:"prefix"` // url prefix for control channel endpoints
Addrs []string `yaml:"addresses"` Addrs []string `yaml:"addresses"`
BasicAuth BasicAuthConfig `yaml:"basic-auth"`
} }
type PXYServiceConfig struct { type PXYServiceConfig struct {

View File

@ -26,7 +26,7 @@ type json_out_server_stats struct {
ServerRoutes int64 `json:"server-routes"` ServerRoutes int64 `json:"server-routes"`
ServerPeers int64 `json:"server-peers"` ServerPeers int64 `json:"server-peers"`
SshProxySessions int64 `json:"ssh-pxy-sessions"` SshProxySessions int64 `json:"pxy-ssh-sessions"`
} }
// ------------------------------------ // ------------------------------------

View File

@ -46,7 +46,7 @@ func NewServerCollector(server *Server) ServerCollector {
nil, nil, nil, nil,
), ),
SshProxySessions: prometheus.NewDesc( SshProxySessions: prometheus.NewDesc(
prefix + "ssh_pxy_sessions", prefix + "pxy_ssh_sessions",
"Number of SSH proxy sessions", "Number of SSH proxy sessions",
nil, nil, nil, nil,
), ),

View File

@ -42,6 +42,16 @@ type ServerSvcPortMap = map[PortId]ConnRouteId
type ServerWpxResponseTransformer func(r *ServerRouteProxyInfo, resp *http.Response) io.Reader type ServerWpxResponseTransformer func(r *ServerRouteProxyInfo, resp *http.Response) io.Reader
type ServerWpxForeignPortProxyMaker func(wpx_type string, port_id string) (*ServerRouteProxyInfo, error) type ServerWpxForeignPortProxyMaker func(wpx_type string, port_id string) (*ServerRouteProxyInfo, error)
type ServerCTLConfig struct {
prefix string
addrs []string
basic_auth struct {
enabled bool
users []string
}
tls *tls.Config
}
type Server struct { type Server struct {
UnimplementedHoduServer UnimplementedHoduServer
Named Named