Documentation
¶
Index ¶
- type MySQLChecker
- type MySQLConfig
- type MySQLStats
- type RedisChecker
- func (r *RedisChecker) Check() (bool, string)
- func (r *RedisChecker) GetClient() *redis.Client
- func (r *RedisChecker) GetCtx() context.Context
- func (r *RedisChecker) GetHeartbeat() time.Duration
- func (r *RedisChecker) Name() string
- func (r *RedisChecker) StartMonitoring()
- func (r *RedisChecker) Stop()
- type RedisConfig
- type RedisStats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MySQLChecker ¶
type MySQLChecker struct {
// contains filtered or unexported fields
}
func NewMySQLChecker ¶
func NewMySQLChecker(cfg MySQLConfig) (*MySQLChecker, error)
func (*MySQLChecker) Check ¶
func (m *MySQLChecker) Check() (bool, string)
func (*MySQLChecker) GetCtx ¶
func (m *MySQLChecker) GetCtx() context.Context
func (*MySQLChecker) GetDB ¶
func (m *MySQLChecker) GetDB() *sql.DB
func (*MySQLChecker) GetHeartbeat ¶
func (m *MySQLChecker) GetHeartbeat() time.Duration
func (*MySQLChecker) Name ¶
func (m *MySQLChecker) Name() string
func (*MySQLChecker) StartMonitoring ¶
func (m *MySQLChecker) StartMonitoring()
StartMonitoring will start logging at regular intervals (heartbeat)
type MySQLConfig ¶
type MySQLStats ¶ added in v0.0.2
type RedisChecker ¶
type RedisChecker struct {
// contains filtered or unexported fields
}
func NewRedisChecker ¶
func NewRedisChecker(cfg RedisConfig) *RedisChecker
func (*RedisChecker) Check ¶
func (r *RedisChecker) Check() (bool, string)
func (*RedisChecker) GetClient ¶
func (r *RedisChecker) GetClient() *redis.Client
func (*RedisChecker) GetCtx ¶
func (r *RedisChecker) GetCtx() context.Context
func (*RedisChecker) GetHeartbeat ¶
func (r *RedisChecker) GetHeartbeat() time.Duration
func (*RedisChecker) Name ¶
func (r *RedisChecker) Name() string
func (*RedisChecker) StartMonitoring ¶
func (r *RedisChecker) StartMonitoring()
StartMonitoring will start logging at regular intervals (heartbeat)
type RedisConfig ¶
type RedisStats ¶ added in v0.0.2
type RedisStats struct { ConnectedClients int64 UsedMemory int64 UsedMemoryHuman string TotalKeys int64 TotalConnections int64 OpsPerSecond int64 KeyspaceHits int64 KeyspaceMisses int64 KeyspaceHitRatio float64 UptimeInSeconds int64 RejectedConnections int64 ReplBacklogSize int64 UsedCpuSys float64 UsedCpuUser float64 MaxMemory int64 MaxMemoryHuman string MemFragmentationRatio float64 }
Click to show internal directories.
Click to hide internal directories.