metrics

package
v0.0.0-...-76050e6 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

View Source
const (
	Succeeded = "succeeded"
	Failed    = "failed"
)

Variables

View Source
var (
	TaskRequeueCount = promauto.NewCounterVec(prometheus.CounterOpts{
		Name: "kuscia_task_requeue_count",
		Help: "Counts number of kuscia tasks requeue",
	}, []string{"task_name"})

	WorkerQueueSize = promauto.NewGauge(prometheus.GaugeOpts{
		Name: "kuscia_task_worker_queue_size",
		Help: "Size of kusciatask worker queue",
	})

	SyncDurations = promauto.NewSummaryVec(
		prometheus.SummaryOpts{
			Name:       "kuscia_task_sync_durations_seconds",
			Help:       "Sync latency distributions of kuscia tasks.",
			Objectives: map[float64]float64{0.5: 0.05, 0.9: 0.01, 0.99: 0.001},
		},
		[]string{"condition", "status"},
	)

	TaskResultStats = promauto.NewCounterVec(
		prometheus.CounterOpts{
			Name: "kuscia_task_result_stats",
			Help: "Counts number of successful or failed kuscia tasks",
		},
		[]string{"result"},
	)
)

Functions

func ClearDeadMetrics

func ClearDeadMetrics(key string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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