prometheus

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstrumentClientMetrics

func InstrumentClientMetrics(rdb redis.UniversalClient, opts ...Option) error

InstrumentClientMetrics adds instrumentation to the official Go Redis client/driver using Prometheus.

func InstrumentMetrics

func InstrumentMetrics(c *cache.Cache, opts ...Option) error

InstrumentMetrics enables instrumentation of a Cache using Prometheus.

Types

type Option

type Option func(c *config)

func WithBuckets

func WithBuckets(buckets []float64) Option

WithBuckets overrides the default buckets used for Prometheus histograms

func WithConstLabels

func WithConstLabels(labels map[string]string) Option

WithConstLabels sets const labels for all Prometheus time series

func WithMGETKeysBuckets added in v1.5.1

func WithMGETKeysBuckets(buckets []float64) Option

WithMGETKeysBuckets overrides the default buckets used for the Prometheus histogram that tracks the number of keys requested in MGET commands

func WithNamespace

func WithNamespace(namespace string) Option

WithNamespace overrides the default namespace used for Prometheus time series

func WithSubsystem

func WithSubsystem(subSystem string) Option

WithSubsystem overrides the default subsystem used for Prometheus time series

Jump to

Keyboard shortcuts

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