patrol

package
v0.0.0-...-7f009f3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ExplodingLabelGauge = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Namespace: "bomb_squad",
			Name:      "exploding_label_distinct_values",
			Help:      "Track which series have been identified as having exploding cardinality",
		},
		[]string{"metric_name", "label_name"},
	)
)

Functions

func MetricResetHandler

func MetricResetHandler() http.Handler

Types

type Patrol

type Patrol struct {
	PromURL           *url.URL
	Interval          time.Duration
	HighCardN         int
	HighCardThreshold float64
	HTTPClient        *http.Client
	PromConfigurator  config.Configurator
	BSConfigurator    config.Configurator
}

func (*Patrol) Run

func (p *Patrol) Run()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL