redismetrics

package
v0.0.0-...-dd060e2 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package redismetrics implements metric collection for the Redis workload agent service.

Index

Constants

View Source
const (
	// RedisProcessName is the systemd process name for Redis on RHEL and SLES.
	RedisProcessName = "redis"
	// RedisServerProcessName is the systemd process name for Redis on Debian.
	RedisServerProcessName = "redis-server"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisMetrics

type RedisMetrics struct {
	Config *configpb.Configuration

	WLMClient   workloadmanager.WLMWriter
	OSData      osinfo.Data
	CurrentRole string
	// contains filtered or unexported fields
}

RedisMetrics contains variables and methods to collect metrics for Redis databases running on the current host.

func New

New creates a new RedisMetrics object initialized with default values.

func (*RedisMetrics) CollectMetricsOnce

func (r *RedisMetrics) CollectMetricsOnce(ctx context.Context, dwActivated bool) (*workloadmanager.WorkloadMetrics, error)

CollectMetricsOnce collects metrics for Redis databases running on the host.

func (*RedisMetrics) InitDB

func (r *RedisMetrics) InitDB(ctx context.Context, gceService gceInterface) error

InitDB initializes the Redis database client.

Jump to

Keyboard shortcuts

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