prometheus

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Default bucket count for histogram metrics.
	DefaultBucketCount = 10
)

Variables

This section is empty.

Functions

func NewMetrics

func NewMetrics(cfg *Config) (*metrics, error)

NewMetrics initializes a new instance of Prometheus metrics.

Types

type Config

type Config struct {
	Enabled              bool
	Namespace            string // optional
	Subsystem            string // optional
	HistogramBucketCount int    // Number of linear buckets for histogram, default to 10
}

func (*Config) Validate

func (c *Config) Validate() error

Jump to

Keyboard shortcuts

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