Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DumpGoroutinePprof ¶ added in v1.14.0
Types ¶
type AgentDumper ¶
type AgentDumper interface {
// DumpFlows should create files that contains flows under the basedir.
DumpFlows(basedir string) error
// DumpHostNetworkInfo should create files that contains host network
// information under the basedir. Host network information should include
// links, routes, addresses and etc.
DumpHostNetworkInfo(basedir string) error
// DumpLog should create files that contains container logs of the agent
// Pod under the basedir.
DumpLog(basedir string) error
// DumpAgentInfo should create a file that contains AgentInfo of the agent Pod
// under the basedir.
DumpAgentInfo(basedir string) error
// DumpNetworkPolicyResources should create files that contains networkpolicy
// resources on the agent Pod under the base dir.
DumpNetworkPolicyResources(basedir string) error
// DumpHeapPprof should create a pprof file of heap usage of the agent.
DumpHeapPprof(basedir string) error
// DumpGoroutinePprof should create a pprof file of goroutine stacks of the agent.
DumpGoroutinePprof(basedir string) error
// DumpOVSPorts should create file that contains OF port descriptions under the basedir.
DumpOVSPorts(basedir string) error
// DumpMemberlist should create a file that contains state of Memberlist
// cluster of the agent Pod under the basedir.
DumpMemberlist(basedir string) error
}
AgentDumper is the interface for dumping runtime information of the agent. Its functions should only work in an agent Pod or a Windows Node which has an agent installed.
func NewAgentDumper ¶
func NewAgentDumper(fs afero.Fs, executor exec.Interface, ovsCtlClient ovsctl.OVSCtlClient, aq agentquerier.AgentQuerier, npq querier.AgentNetworkPolicyInfoQuerier, since string, v4Enabled, v6Enabled bool) AgentDumper
type ControllerDumper ¶
type ControllerDumper interface {
// DumpLog should create files that contains container logs of the controller
// Pod under the basedir.
DumpLog(basedir string) error
// DumpControllerInfo should create a file that contains ControllerInfo of
// the controller Pod under the basedir.
DumpControllerInfo(basedir string) error
// DumpNetworkPolicyResources should create files that contains networkpolicy
// resources on the controller Pod under the base dir.
DumpNetworkPolicyResources(basedir string) error
// DumpHeapPprof should create a pprof file of the heap usage of the controller.
DumpHeapPprof(basedir string) error
// DumpGoroutinePprof should create a pprof file of goroutine stacks of the controller.
DumpGoroutinePprof(basedir string) error
}
ControllerDumper is the interface for dumping runtime information of the controller. Its functions should only work in the controller Pod.
func NewControllerDumper ¶
Click to show internal directories.
Click to hide internal directories.