redis

package
v0.36.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultArguments = Arguments{
	IncludeExporterMetrics:  false,
	Namespace:               "redis",
	ConfigCommand:           "CONFIG",
	ConnectionTimeout:       15 * time.Second,
	SetClientName:           true,
	CheckKeyGroupsBatchSize: 10000,
	MaxDistinctKeyGroups:    100,
}

DefaultArguments holds non-zero default options for Arguments when it is unmarshaled from river.

Functions

This section is empty.

Types

type Arguments added in v0.33.0

type Arguments struct {
	IncludeExporterMetrics bool `river:"include_exporter_metrics,attr,optional"`

	// exporter-specific config.
	//
	// The exporter binary config differs to this, but these
	// are the only fields that are relevant to the exporter struct.
	RedisAddr               string            `river:"redis_addr,attr"`
	RedisUser               string            `river:"redis_user,attr,optional"`
	RedisPassword           rivertypes.Secret `river:"redis_password,attr,optional"`
	RedisPasswordFile       string            `river:"redis_password_file,attr,optional"`
	RedisPasswordMapFile    string            `river:"redis_password_map_file,attr,optional"`
	Namespace               string            `river:"namespace,attr,optional"`
	ConfigCommand           string            `river:"config_command,attr,optional"`
	CheckKeys               []string          `river:"check_keys,attr,optional"`
	CheckKeyGroups          []string          `river:"check_key_groups,attr,optional"`
	CheckKeyGroupsBatchSize int64             `river:"check_key_groups_batch_size,attr,optional"`
	MaxDistinctKeyGroups    int64             `river:"max_distinct_key_groups,attr,optional"`
	CheckSingleKeys         []string          `river:"check_single_keys,attr,optional"`
	CheckStreams            []string          `river:"check_streams,attr,optional"`
	CheckSingleStreams      []string          `river:"check_single_streams,attr,optional"`
	CountKeys               []string          `river:"count_keys,attr,optional"`
	ScriptPath              string            `river:"script_path,attr,optional"`
	ScriptPaths             []string          `river:"script_paths,attr,optional"`
	ConnectionTimeout       time.Duration     `river:"connection_timeout,attr,optional"`
	TLSClientKeyFile        string            `river:"tls_client_key_file,attr,optional"`
	TLSClientCertFile       string            `river:"tls_client_cert_file,attr,optional"`
	TLSCaCertFile           string            `river:"tls_ca_cert_file,attr,optional"`
	SetClientName           bool              `river:"set_client_name,attr,optional"`
	IsTile38                bool              `river:"is_tile38,attr,optional"`
	IsCluster               bool              `river:"is_cluster,attr,optional"`
	ExportClientList        bool              `river:"export_client_list,attr,optional"`
	ExportClientPort        bool              `river:"export_client_port,attr,optional"`
	RedisMetricsOnly        bool              `river:"redis_metrics_only,attr,optional"`
	PingOnConnect           bool              `river:"ping_on_connect,attr,optional"`
	InclSystemMetrics       bool              `river:"incl_system_metrics,attr,optional"`
	SkipTLSVerification     bool              `river:"skip_tls_verification,attr,optional"`
}

func (*Arguments) Convert added in v0.33.0

func (a *Arguments) Convert() *redis_exporter.Config

func (*Arguments) SetToDefault added in v0.35.0

func (a *Arguments) SetToDefault()

SetToDefault implements river.Defaulter.

func (*Arguments) Validate added in v0.33.0

func (a *Arguments) Validate() error

Validate implements river.Validator.

Jump to

Keyboard shortcuts

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