jaeger: github.com/jaegertracing/jaeger/pkg/metrics Index | Files

package metrics

import "github.com/jaegertracing/jaeger/pkg/metrics"

Package metrics provides command line flags for configuring the metrics backend.


Package Files

builder.go package.go

func AddFlags Uses

func AddFlags(flags *flag.FlagSet)

AddFlags adds flags for Builder.

type Builder Uses

type Builder struct {
    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 (*Builder) CreateMetricsFactory Uses

func (b *Builder) CreateMetricsFactory(namespace string) (metrics.Factory, error)

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.

func (*Builder) Handler Uses

func (b *Builder) Handler() http.Handler

Handler returns an http.Handler for the metrics endpoint.

func (*Builder) InitFromViper Uses

func (b *Builder) InitFromViper(v *viper.Viper) *Builder

InitFromViper initializes Builder with properties retrieved from Viper.

Package metrics imports 10 packages (graph) and is imported by 2 packages. Updated 2019-08-29. Refresh now. Tools for package owners.