Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisCollector ¶
type RedisCollector struct {
*collector.BaseCollector
}
func NewRedisCollector ¶
func NewRedisCollector() *RedisCollector
type RedisCommand ¶
type RedisCommand struct { Command []string `label:"Command" json:"command,required" example:"get sample_key" description:"redis-cli command"` Field string `label:"Field" json:"field,required" example:"sample_key" description:"metric name"` Type string `label:"Type" json:"type" enum:"[\"float\", \"integer\"]" default:"float" description:"metric type"` }
type RedisRule ¶
type RedisRule struct { Servers []string `label:"Servers" json:"servers,required" description:"specify servers" example:"tcp://localhost:6379"` Commands []*RedisCommand `label:"Commands" json:"commands" description:"Optional. Specify redis commands to retrieve values"` Password string `label:"Password" json:"password" format:"password" description:"specify server password"` plugins.ClientConfig }
Click to show internal directories.
Click to hide internal directories.