Documentation ¶
Index ¶
- Constants
- func ExportersEnabled(configPath string) bool
- func GetMemInuse() uint64
- func GetNetIO() (uint64, uint64)
- func NewDiskMonitor(paths []string, hostIp string)
- type Config
- type ControllerIngesterShared
- type Counter
- type DiskCounter
- type DiskMonitor
- type ExportersConfig
- type IngesterConfig
- type Monitor
Constants ¶
View Source
const DEFAULT_HOST = "127.0.0.1"
View Source
const ENV_K8S_NODE_IP = "K8S_NODE_IP_FOR_DEEPFLOW"
View Source
const QUEUE_SIZE = 1 << 16
Variables ¶
This section is empty.
Functions ¶
func ExportersEnabled ¶
func GetMemInuse ¶
func GetMemInuse() uint64
func NewDiskMonitor ¶
Types ¶
type Config ¶
type Config struct {
Ingester IngesterConfig `yaml:"ingester"`
}
type ControllerIngesterShared ¶
type ControllerIngesterShared struct {
}func NewControllerIngesterShared ¶
func NewControllerIngesterShared() *ControllerIngesterShared
type Counter ¶
type Counter struct { CpuPercent float64 `statsd:"cpu-percent"` MemRSS uint64 `statsd:"mem-rss"` MemInuse uint64 `statsd:"mem-inuse"` BytesSend uint64 `statsd:"bytes-send"` BytesRecv uint64 `statsd:"bytes-recv"` BytesRead uint64 `statsd:"bytes-read"` BytesWrite uint64 `statsd:"bytes-write"` Load1 float64 `statsd:"load1"` CPUNum uint64 `statsd:"cpu-num"` }
type DiskCounter ¶
type DiskMonitor ¶
func (*DiskMonitor) GetCounter ¶
func (m *DiskMonitor) GetCounter() interface{}
func (*DiskMonitor) Stop ¶
func (m *DiskMonitor) Stop()
type ExportersConfig ¶
type ExportersConfig struct {
Enabled bool `yaml:"enabled"`
}
type IngesterConfig ¶
type IngesterConfig struct {
Exporters []ExportersConfig `yaml:"exporters"`
}
type Monitor ¶
func NewMonitor ¶
func (*Monitor) GetCounter ¶
func (m *Monitor) GetCounter() interface{}
func (*Monitor) GetCpuPercent ¶
Click to show internal directories.
Click to hide internal directories.