Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // GAUGES XXX GAUGES = map[string]string{ "aof_last_rewrite_time_sec": "redis.aof.last_rewrite_time", "aof_rewrite_in_progress": "redis.aof.rewrite", "aof_current_size": "redis.aof.size", "aof_buffer_length": "redis.aof.buffer_length", "connected_clients": "redis.net.clients", "connected_slaves": "redis.net.slaves", "rejected_connections": "redis.net.rejected", "blocked_clients": "redis.clients.blocked", "client_biggest_input_buf": "redis.clients.biggest_input_buf", "client_longest_output_list": "redis.clients.longest_output_list", "evicted_keys": "redis.keys.evicted", "expired_keys": "redis.keys.expired", "latest_fork_usec": "redis.perf.latest_fork_usec", "pubsub_channels": "redis.pubsub.channels", "pubsub_patterns": "redis.pubsub.patterns", "rdb_bgsave_in_progress": "redis.rdb.bgsave", "rdb_changes_since_last_save": "redis.rdb.changes_since_last", "rdb_last_bgsave_time_sec": "redis.rdb.last_bgsave_time", "mem_fragmentation_ratio": "redis.mem.fragmentation_ratio", "used_memory": "redis.mem.used", "used_memory_lua": "redis.mem.lua", "used_memory_peak": "redis.mem.peak", "used_memory_rss": "redis.mem.rss", "master_last_io_seconds_ago": "redis.replication.last_io_seconds_ago", "master_sync_in_progress": "redis.replication.sync", "master_sync_left_bytes": "redis.replication.sync_left_bytes", "repl_backlog_histlen": "redis.replication.backlog_histlen", "master_repl_offset": "redis.replication.master_repl_offset", "slave_repl_offset": "redis.replication.slave_repl_offset", } // RATES XXX RATES = map[string]string{ "used_cpu_sys": "redis.cpu.sys", "used_cpu_sys_children": "redis.cpu.sys_children", "used_cpu_user": "redis.cpu.user", "used_cpu_user_children": "redis.cpu.user_children", "total_commands_processed": "redis.net.commands", "keyspace_hits": "redis.stats.keyspace_hits", "keyspace_misses": "redis.stats.keyspace_misses", } )
Functions ¶
Types ¶
type Redis ¶
type Redis struct { Host string Port int UnixSocketPath string `yaml:"unix_socket_path"` DB int Password string SocketTimeout int `yaml:"socket_timeout"` Tags []string Keys []string WarnOnMissingKeys bool `yaml:"warn_on_missing_keys"` SlowlogMaxLen float64 `yaml:"slowlog-max-len"` // contains filtered or unexported fields }
Redis XXX
Click to show internal directories.
Click to hide internal directories.