Documentation
¶
Index ¶
Constants ¶
View Source
const ( PrometheusBackend = "prometheus" ExpvarBackend = "expvar" NoneBackend = "" )
Variables ¶
View Source
var ( NullFactory = metrics.NullFactory NullCounter = metrics.NullCounter NullGauge = metrics.NullGauge NullTimer = metrics.NullTimer NullHistogram = metrics.NullHistogram MustInit = metrics.MustInit Init = metrics.Init )
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct { AppName string JobName string PushTo string PushInterval time.Duration Backend string HTTPRoute string // endpoint name to expose metrics, e.g. for scraping // contains filtered or unexported fields }
Builder provides command line options to configure metrics backend used by Jaeger executables.
func NewBuilder ¶
func (*Builder) CreateMetricsFactory ¶
CreateMetricsFactory creates a metrics factory based on the configured type of the backend. If the metrics backend supports HTTP endpoint for scraping, it is stored in the builder and can be later added by RegisterHandler function.
type HistogramOptions ¶
type HistogramOptions = metrics.HistogramOptions
type TimerOptions ¶
type TimerOptions = metrics.TimerOptions
Click to show internal directories.
Click to hide internal directories.