redis

package
v4.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

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
}

func (*RedisRule) TelegrafInput

func (p *RedisRule) TelegrafInput() (telegraf.Input, error)

func (*RedisRule) Validate

func (p *RedisRule) Validate() error

Jump to

Keyboard shortcuts

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