metrics

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: Apache-2.0 Imports: 6 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrometheusHook

type PrometheusHook struct {
	// contains filtered or unexported fields
}

func NewPrometheusHook

func NewPrometheusHook(opt prometheus.SummaryOpts, isCluster bool) *PrometheusHook

NewPrometheusHook 使用redis的hook接口采集cmd响应时间

func (*PrometheusHook) DialHook

func (p *PrometheusHook) DialHook(next redis.DialHook) redis.DialHook

func (*PrometheusHook) ProcessHook

func (p *PrometheusHook) ProcessHook(next redis.ProcessHook) redis.ProcessHook

func (*PrometheusHook) ProcessPipelineHook

func (p *PrometheusHook) ProcessPipelineHook(next redis.ProcessPipelineHook) redis.ProcessPipelineHook

Jump to

Keyboard shortcuts

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