worker

package
v0.0.0-...-0d28830 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HistogramPromQL = "histogram_quantile(%.2f, sum(rate(%s[1m])) by (temporal_namespace,operation,le))"
	RatePromQL      = "rate(%s[1m])"
	RetryInterval   = 3 * time.Second
)

Variables

This section is empty.

Functions

func PromCountToDatadogCount

func PromCountToDatadogCount(name string, matrix model.Matrix) []datadogV2.MetricSeries

func PromHistogramToDatadogGauge

func PromHistogramToDatadogGauge(name string, quantile float64, matrix model.Matrix) []datadogV2.MetricSeries

Types

type Worker

type Worker struct {
	prometheus.Querier
	datadog.Submitter
	Quantiles     []float64
	QueryInterval time.Duration
	StepDuration  time.Duration
}

func (*Worker) QueryWindow

func (w *Worker) QueryWindow() time.Duration

func (*Worker) Run

func (w *Worker) Run()

Jump to

Keyboard shortcuts

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