startup_metrics

package
v2.10.49 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 21 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricsOptions

type MetricsOptions struct {
	PrometheusConfig PrometheusConfig
	// contains filtered or unexported fields
}

func (*MetricsOptions) Initialize

func (opts *MetricsOptions) Initialize(base startup_base.BaseOptions)

func (*MetricsOptions) Shutdown added in v2.4.8

func (opts *MetricsOptions) Shutdown() error

type MetricsPrefix

type MetricsPrefix string

type OTELMetricsOptions added in v2.4.5

type OTELMetricsOptions struct {
	// Prometheus configuration
	PrometheusConfig PrometheusConfig

	Inputs struct {
		ServiceName string `long:"service-name" env:"SERVICE_NAME" description:"Service name for metrics"`
	}
	// contains filtered or unexported fields
}

func (*OTELMetricsOptions) Initialize added in v2.4.5

func (opts *OTELMetricsOptions) Initialize()

func (*OTELMetricsOptions) Shutdown added in v2.4.5

func (opts *OTELMetricsOptions) Shutdown() error

type PrometheusConfig added in v2.4.8

type PrometheusConfig struct {
	Disabled bool   `long:"prometheus-disabled" env:"PROMETHEUS_DISABLED" description:"Disable Prometheus metrics endpoint"`
	Path     string `long:"prometheus-path" env:"PROMETHEUS_PATH" default:"/metrics" description:"Path for Prometheus metrics endpoint"`
	Port     string `long:"prometheus-port" env:"PROMETHEUS_PORT" default:":9090" description:"Port for Prometheus metrics endpoint"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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