metrics

package
v0.9.15 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WorkerPoolWorkerCountGauge = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Namespace: "drc_v2",
		Subsystem: "scheduler_worker_pool",
		Name:      "nr_worker",
		Help:      "number of workers",
	}, []string{metrics.PipelineTag})

	WorkerPoolQueueSizeGauge = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Namespace: "drc_v2",
		Subsystem: "scheduler_worker_pool",
		Name:      "queue_size",
		Help:      "size of queue",
	}, []string{metrics.PipelineTag, "idx"})

	WorkerPoolProcessedMsgCount = prometheus.NewCounterVec(prometheus.CounterOpts{
		Namespace: "drc_v2",
		Subsystem: "scheduler_worker_pool",
		Name:      "processed_msg_count",
		Help:      "processed msg count of this worker",
	}, []string{metrics.PipelineTag, "idx"})

	WorkerPoolMsgExecLatency = prometheus.NewHistogramVec(prometheus.HistogramOpts{
		Namespace: "drc_v2",
		Subsystem: "scheduler_worker_pool",
		Name:      "msg_exec_latency",
		Help:      "latency of process a job",
	}, []string{metrics.PipelineTag, "idx"})

	//
	// batch scheduler specific metrics
	//
	WorkerPoolJobBatchSizeGauge = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Namespace: "drc_v2",
		Subsystem: "scheduler_worker_pool",
		Name:      "batch_size",
		Help:      "batch size",
	}, []string{metrics.PipelineTag, "idx"})

	WorkerPoolSlidingWindowSize = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Namespace: "drc_v2",
			Subsystem: "scheduler_worker_pool",
			Name:      "sliding_window_size",
			Help:      "sliding window size",
		}, []string{metrics.PipelineTag, "input_stream_key"})

	WorkerPoolSlidingWindowRatio = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Namespace: "drc_v2",
			Subsystem: "scheduler_worker_pool",
			Name:      "sliding_window_ratio",
			Help:      "sliding window ratio",
		}, []string{metrics.PipelineTag, "input_stream_key"})
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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