Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( JoinResultMetrics = prometheus.NewCounterVec(prometheus.CounterOpts{ Name: "join_result_counter", Help: "Number of successful Join operations", }, []string{"result"}) LeaveResultMetrics = prometheus.NewCounterVec(prometheus.CounterOpts{ Name: "leave_result_counter", Help: "Number of successful Leave operations", }, []string{"result"}) WorkApplyTime = prometheus.NewHistogramVec(prometheus.HistogramOpts{ Name: "work_apply_time_seconds", Help: "Length of time between when a work resource is created/updated to when it is applied on the member cluster", Buckets: []float64{0.01, 0.025, 0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.4, 0.5, 0.7, 0.9, 1.0, 1.25, 1.5, 1.75, 2.0, 2.5, 3.0, 3.5, 4.0, 4.5, 5, 7, 9, 10, 15, 20, 30, 60, 120}, }, []string{"name"}) PlacementApplyFailedCount = prometheus.NewCounterVec(prometheus.CounterOpts{ Name: "placement_apply_failed_counter", Help: "Number of failed to apply cluster resource placement", }, []string{"name"}) PlacementApplySucceedCount = prometheus.NewCounterVec(prometheus.CounterOpts{ Name: "placement_apply_succeed_counter", Help: "Number of successfully applied cluster resource placement", }, []string{"name"}) )
View Source
var ( ReportJoinResultMetric = func() { JoinResultMetrics.With(prometheus.Labels{ "result": "success", }).Inc() } ReportLeaveResultMetric = func() { LeaveResultMetrics.With(prometheus.Labels{ "result": "success", }).Inc() } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.