Documentation
¶
Index ¶
- Variables
- type PrintMode
- type Printer
- func (p *Printer) Print(counts, errors map[string]int, latencies map[string]*ring.Ring[time.Duration])
- func (p *Printer) PrintConfig(cfg *model.Drk)
- func (p *Printer) PrintLine(counts, errors map[string]int, latencies map[string]*ring.Ring[time.Duration])
- func (p *Printer) PrintTable(counts, errors map[string]int, latencies map[string]*ring.Ring[time.Duration])
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // MetricRequestDuration measures the latency of successful requests, // grouped by workflow and query. MetricRequestDuration = promauto.NewHistogramVec(prometheus.HistogramOpts{ Name: "drk_request_duration", Buckets: []float64{ 0.001, 0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1.0, 2.5, 5.0, }, }, []string{ "workflow", "query", }) // MetricErrorDuration measures the latency of failed requests, // grouped by workflow and query. MetricErrorDuration = promauto.NewHistogramVec(prometheus.HistogramOpts{ Name: "drk_error_duration", Buckets: []float64{ 0.001, 0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1.0, 2.5, 5.0, }, }, []string{ "workflow", "query", }) // MetricRequestCount is a running total of the successful requests, // grouped by workflow and query. MetricRequestCount = promauto.NewCounterVec(prometheus.CounterOpts{ Name: "drk_request_count", }, []string{ "workflow", "query", }) // MetricErrorCount is a running total of the failed requests, // grouped by workflow and query. MetricErrorCount = promauto.NewCounterVec(prometheus.CounterOpts{ Name: "drk_error_count", }, []string{ "workflow", "query", }) )
View Source
var ( ValidPrintModes = map[string]struct{}{ string(PrintModeTable): {}, string(PrintModeLog): {}, } )
Functions ¶
This section is empty.
Types ¶
type Printer ¶
type Printer struct {
// contains filtered or unexported fields
}
func NewPrinter ¶
func (*Printer) PrintConfig ¶
PrintConfig displays the applications configuration in the terminal.
Click to show internal directories.
Click to hide internal directories.