Documentation
¶
Index ¶
Constants ¶
View Source
const RedisType = "redis"
RedisType defines the type name of redis backend
View Source
const StatsPushInterval = 2 * time.Second
StatsPushInterval defines how many times we push metrics
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Metrics ¶
type Metrics struct {
Timestamp int64 `json:"timestamp"`
MemoryUsage uint64 `json:"memory_usage"`
MemoryLimit uint64 `json:"memory_limit"`
MemoryCache uint64 `json:"memory_cache"`
CPUUsage uint64 `json:"cpu_usage"`
PidsCurrent uint64 `json:"pids_current"`
}
Metrics define a one-shot set of stats with differents metrics
type Redis ¶
type Redis struct {
Endpoint string `bson:"stdout" json:"endpoint"`
}
Redis defines how to connect a stats redis backend
type RedisBackend ¶
type RedisBackend struct {
// contains filtered or unexported fields
}
RedisBackend define an internal redis backend
Click to show internal directories.
Click to hide internal directories.