renamed ssh_pxy_sessions to pxy_ssh_sessions
This commit is contained in:
parent
c5f63328b2
commit
2655da937f
@ -51,6 +51,7 @@ type BasicAuthConfig struct {
|
||||
type CTLServiceConfig struct {
|
||||
Prefix string `yaml:"prefix"` // url prefix for control channel endpoints
|
||||
Addrs []string `yaml:"addresses"`
|
||||
BasicAuth BasicAuthConfig `yaml:"basic-auth"`
|
||||
}
|
||||
|
||||
type PXYServiceConfig struct {
|
||||
|
@ -26,7 +26,7 @@ type json_out_server_stats struct {
|
||||
ServerRoutes int64 `json:"server-routes"`
|
||||
ServerPeers int64 `json:"server-peers"`
|
||||
|
||||
SshProxySessions int64 `json:"ssh-pxy-sessions"`
|
||||
SshProxySessions int64 `json:"pxy-ssh-sessions"`
|
||||
}
|
||||
|
||||
// ------------------------------------
|
||||
|
@ -46,7 +46,7 @@ func NewServerCollector(server *Server) ServerCollector {
|
||||
nil, nil,
|
||||
),
|
||||
SshProxySessions: prometheus.NewDesc(
|
||||
prefix + "ssh_pxy_sessions",
|
||||
prefix + "pxy_ssh_sessions",
|
||||
"Number of SSH proxy sessions",
|
||||
nil, nil,
|
||||
),
|
||||
|
10
server.go
10
server.go
@ -42,6 +42,16 @@ type ServerSvcPortMap = map[PortId]ConnRouteId
|
||||
type ServerWpxResponseTransformer func(r *ServerRouteProxyInfo, resp *http.Response) io.Reader
|
||||
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 {
|
||||
UnimplementedHoduServer
|
||||
Named
|
||||
|
Loading…
x
Reference in New Issue
Block a user