Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyMetricOpts ¶
func ApplyMetricOpts(opts ...MetricsOption) *metricOpts
Types ¶
type MetricsOption ¶
type MetricsOption func(*metricOpts)
MetricsOption is an option used by a metric middleware.
func WithSuffix ¶
func WithSuffix(suffix string) MetricsOption
WithSuffix returns a metric option that applies a suffix to the service name of the metric.
type REDClient ¶
type REDClient struct {
// contains filtered or unexported fields
}
REDClient is a metrics client for collection RED metrics.
func New ¶
func New(reg prometheus.Registerer, service string) *REDClient
New creates a new REDClient.
Click to show internal directories.
Click to hide internal directories.