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
Inputs struct {
// Prefix to apply to all metrics. This must not be empty.
MetricsPrefix string `validate:"required"`
}
// contains filtered or unexported fields
}
func (*MetricsOptions) Initialize ¶
func (opts *MetricsOptions) Initialize()
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
}
Click to show internal directories.
Click to hide internal directories.