redis

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BaseDir           string        `toml:"-"`
	User              string        `toml:"user"`
	Password          string        `toml:"password"`
	Namespace         string        `toml:"namespace"`
	ConnectionTimeout time.Duration `toml:"connection_timeout"`
	PingOnConnect     bool          `toml:"ping_on_connect"`
	ConfigCommand     string        `toml:"config_command"`
	SetClientName     *bool         `toml:"set_client_name"`

	IsTile38  bool `toml:"is_tile38"`
	IsCluster bool `toml:"is_cluster"`

	SkipTLSVerification bool   `toml:"skip_tls_verification"`
	ClientCertFile      string `toml:"client_cert_file"`
	ClientKeyFile       string `toml:"client_key_file"`
	CaCertFile          string `toml:"ca_cert_file"`

	IncludeSystemMetrics *bool `toml:"include_system_metrics"`
	IncludeConfigMetrics *bool `toml:"include_config_metrics"`
	RedactConfigMetrics  *bool `toml:"redact_config_metrics"`

	CheckKeys                 []string `toml:"check_keys"`
	CheckSingleKeys           []string `toml:"check_single_keys"`
	CheckKeysBatchSize        int64    `toml:"check_keys_batch_size"`
	CheckKeyGroups            []string `toml:"check_key_groups"`
	MaxDistinctKeyGroups      int64    `toml:"max_distinct_key_groups"`
	CheckStreams              []string `toml:"check_streams"`
	CheckSingleStreams        []string `toml:"check_single_streams"`
	CountKeys                 []string `toml:"count_keys"`
	LuaScriptFiles            []string `toml:"lua_script_files"`
	DisableExportingKeyValues bool     `toml:"disable_exporting_key_values"`

	ExportClientList         bool `toml:"export_client_list"`
	ExportClientsIncludePort bool `toml:"export_clients_include_port"`
}

type Redis

type Redis struct {
}

func (*Redis) ParseConfig

func (*Redis) ParseConfig(baseDir string, bs []byte) (any, error)

func (*Redis) Scrape

func (*Redis) Scrape(ctx context.Context, target string, c any, ss *types.Samples) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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