metrics

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2025 License: MIT Imports: 6 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 {
	Enabled               bool     `yaml:"enabled" json:"enabled"`
	EndpointPath          string   `yaml:"endpoint_path" json:"endpoint_path"`
	ExcludedRoutes        []string `yaml:"excluded_routes" json:"excluded_routes"`
	CollectProcessMetrics bool     `yaml:"collect_process_metrics" json:"collect_process_metrics"`
}

func DefaultConfig

func DefaultConfig() Config

type Metrics

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

func New

func New(config Config) *Metrics

metrics collector

func (*Metrics) Handler

func (m *Metrics) Handler() fiber.Handler

func (*Metrics) RegisterEndpoint

func (m *Metrics) RegisterEndpoint(app *fiber.App)

func (*Metrics) SetAppInfo

func (m *Metrics) SetAppInfo(name, version string)

Jump to

Keyboard shortcuts

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