redis

package
v0.0.0-...-54d14c8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2018 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RedisPerformanceFields = map[string]string{
	"aof_last_rewrite_time_sec": "aof.last_rewrite_time",
	"aof_rewrite_in_progress":   "aof.rewrite",
	"aof_current_size":          "aof.size",
	"aof_buffer_length":         "aof.buffer_length",

	"connected_clients":    "net.clients",
	"connected_slaves":     "net.slaves",
	"rejected_connections": "net.rejected",

	"blocked_clients":            "clients.blocked",
	"client_biggest_input_buf":   "clients.biggest_input_buf",
	"client_longest_output_list": "clients.longest_output_list",

	"evicted_keys": "keys.evicted",
	"expired_keys": "keys.expired",

	"keyspace_hits":    "stats.keyspace_hits",
	"keyspace_misses":  "stats.keyspace_misses",
	"latest_fork_usec": "perf.latest_fork_usec",

	"pubsub_channels": "pubsub.channels",
	"pubsub_patterns": "pubsub.patterns",

	"rdb_bgsave_in_progress":      "rdb.bgsave",
	"rdb_changes_since_last_save": "rdb.changes_since_last",
	"rdb_last_bgsave_time_sec":    "rdb.last_bgsave_time",

	"mem_fragmentation_ratio": "mem.fragmentation_ratio",
	"used_memory":             "mem.used",
	"used_memory_lua":         "mem.lua",
	"used_memory_peak":        "mem.peak",
	"used_memory_rss":         "mem.rss",

	"master_last_io_seconds_ago": "replication.last_io_seconds_ago",
	"master_sync_in_progress":    "replication.sync",
	"master_sync_left_bytes":     "replication.sync_left_bytes",
}

RedisPerformanceFields - XXX

Functions

This section is empty.

Types

type Config

type Config struct {
	Host     string
	DB       int64
	Password string
}

Config - XXX

type PerformanceStruct

type PerformanceStruct struct {
	Gauges map[string]interface{} `json:"gauges"`
}

PerformanceStruct - XXX

func (PerformanceStruct) String

func (p PerformanceStruct) String() string

type Redis

type Redis struct {
	Config Config
}

Redis - XXX

func (*Redis) Collect

func (r *Redis) Collect() (interface{}, error)

Collect - XXX

func (*Redis) Description

func (r *Redis) Description() string

Description - XXX

func (*Redis) SampleConfig

func (r *Redis) SampleConfig() string

SampleConfig - XXX

func (*Redis) SetConfigDefaults

func (r *Redis) SetConfigDefaults() error

SetConfigDefaults - XXX

func (*Redis) Start

func (r *Redis) Start() error

Start - XXX

func (*Redis) Stop

func (r *Redis) Stop()

Stop - XXX

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL