Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents local pmm-agent API server.
func NewServer ¶
func NewServer(cfg *config.Config, supervisor supervisor, client client, configFilepath string) *Server
NewServer creates new server.
Caller should call Run.
func (*Server) Reload ¶
func (s *Server) Reload(ctx context.Context, req *agentlocalpb.ReloadRequest) (*agentlocalpb.ReloadResponse, error)
Reload reloads pmm-agent and it configuration.
func (*Server) Run ¶
Run runs gRPC and JSON servers with API and debug endpoints until ctx is canceled.
Run exits when ctx is canceled, or when a request to reload configuration is received.
func (*Server) Status ¶
func (s *Server) Status(ctx context.Context, req *agentlocalpb.StatusRequest) (*agentlocalpb.StatusResponse, error)
Status returns current pmm-agent status.
Click to show internal directories.
Click to hide internal directories.