Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetricsOptions ¶
type MetricsOptions struct {
Datadog struct {
ApiKey string `long:"datadog-apikey" description:"Datadog app key to enable datadog metrics reporting."`
Tags string `` /* 126-byte string literal not displayed */
Interval time.Duration `long:"datadog-report-interval" default:"60s" description:"Data collection and reporting interval."`
StatsDAddress string `long:"datadog-statsd-address" description:"Address of statsd,e.g. 127.0.0.1:8125"`
}
PrometheusConfig PrometheusConfig
Inputs struct {
// Prefix to apply to all metrics. This must not be empty.
MetricsPrefix string `validate:"required"`
// Disable capture of runtime metrics for some reason
NoRuntimeMetrics bool
}
// 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" 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" description:"Disable Prometheus metrics endpoint"`
Path string `long:"prometheus-path" default:"/metrics" description:"Path for Prometheus metrics endpoint"`
Port string `long:"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.