Documentation ¶
Index ¶
- Constants
- type AgentConfig
- type BasicMetric
- type BasicMetrics
- type Config
- type ContainerInfo
- type KubernetesConfig
- type NexAgent
- func (s *NexAgent) ApiHealth(c *gin.Context)
- func (s *NexAgent) InitWithDefault()
- func (s *NexAgent) IsDiskDevice(deviceName string) bool
- func (s *NexAgent) IsNetDevice(deviceName string) bool
- func (s *NexAgent) LoadConfig(configPath string) error
- func (s *NexAgent) SetAgentCluster(agentCluster string)
- func (s *NexAgent) SetApiPort(restApiPort int)
- func (s *NexAgent) SetK8sCluster(k8sCluster string)
- func (s *NexAgent) SetK8sNamespace(k8sNamespace string)
- func (s *NexAgent) SetReportInterval(reportInterval int)
- func (s *NexAgent) SetServerAddress(serverAddress string)
- func (s *NexAgent) SetupApiHandler()
- func (s *NexAgent) Start() error
- type NodeMetricsList
- type PodMetricsList
- type ProcessInfo
- type TLSConfig
Constants ¶
View Source
const ( AppName = "NexAgent" AppDescription = "NexAgent for NexClipper Monitoring System" NexAgentVersion = "0.3.0" K8sLeaseLockName = "nexagent-lease-lock" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentConfig ¶
type BasicMetrics ¶
type BasicMetrics []*BasicMetric
type Config ¶
type Config struct { Agent AgentConfig TLS TLSConfig Kubernetes KubernetesConfig }
type ContainerInfo ¶
type ContainerInfo struct {
// contains filtered or unexported fields
}
type KubernetesConfig ¶
type NexAgent ¶
type NexAgent struct {
// contains filtered or unexported fields
}
func NewNexAgent ¶
func NewNexAgent() *NexAgent
func (*NexAgent) InitWithDefault ¶
func (s *NexAgent) InitWithDefault()
func (*NexAgent) IsDiskDevice ¶
func (*NexAgent) IsNetDevice ¶
func (*NexAgent) LoadConfig ¶
func (*NexAgent) SetAgentCluster ¶
func (*NexAgent) SetApiPort ¶
func (*NexAgent) SetK8sCluster ¶
func (*NexAgent) SetK8sNamespace ¶
func (*NexAgent) SetReportInterval ¶
func (*NexAgent) SetServerAddress ¶
func (*NexAgent) SetupApiHandler ¶
func (s *NexAgent) SetupApiHandler()
type NodeMetricsList ¶
type NodeMetricsList struct { Kind string `json:"kind"` APIVersion string `json:"apiVersion"` Metadata struct { SelfLink string `json:"selfLink"` } `json:"metadata"` Items []struct { Metadata struct { Name string `json:"name"` SelfLink string `json:"selfLink"` CreationTimestamp time.Time `json:"creationTimestamp"` } `json:"metadata"` Timestamp time.Time `json:"timestamp"` Window string `json:"window"` Usage struct { CPU string `json:"cpu"` Memory string `json:"memory"` } `json:"usage"` } `json:"items"` }
type PodMetricsList ¶
type PodMetricsList struct { Kind string `json:"kind"` APIVersion string `json:"apiVersion"` Metadata struct { SelfLink string `json:"selfLink"` } `json:"metadata"` Items []struct { Metadata struct { Name string `json:"name"` Namespace string `json:"namespace"` SelfLink string `json:"selfLink"` CreationTimestamp time.Time `json:"creationTimestamp"` } `json:"metadata"` Timestamp time.Time `json:"timestamp"` Window string `json:"window"` Containers []struct { Name string `json:"name"` Usage struct { CPU string `json:"cpu"` Memory string `json:"memory"` } `json:"usage"` } `json:"containers"` } `json:"items"` }
type ProcessInfo ¶
type ProcessInfo struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.