Documentation
¶
Index ¶
- Variables
- func PublishFunctionsTotal(f serverlessv1alpha2.Function)
- func PublishReconciliationTime(f serverlessv1alpha2.Function, start time.Time)
- func PublishReconciliationsTotal(f serverlessv1alpha2.Function)
- func PublishStateReachTime(f serverlessv1alpha2.Function, toState serverlessv1alpha2.ConditionType)
- func Register()
- func StartForStateReachTime(f serverlessv1alpha2.Function)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FunctionsTotal = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "serverless_function_processed_total", Help: "Total number of functions processed (each function is counted only once, even if it is processed multiple times)", }, []string{"runtime", "source"}, ) ReconciliationsTotal = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "serverless_function_reconciliations_total", Help: "Total number of reconciliations for functions (each reconciliation is counted, even if it is for the same function)", }, []string{"runtime", "source"}, ) ReconciliationTime = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Name: "serverless_function_reconciliation_time_seconds", Help: "Time taken for a single reconciliation of a function (including all single reconciliation)", Buckets: []float64{0.1, 0.3, 1, 3, 10, 30, 90, 300}, }, []string{"runtime", "source"}, ) StateReachTime = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Name: "serverless_function_state_reach_time_seconds", Help: "Time taken for a function to reach a specific state (only generation changes are counted, not every reconciliation)", Buckets: []float64{0.1, 0.3, 1, 3, 10, 30, 90, 300}, }, []string{"runtime", "source", "state"}, ) )
Functions ¶
func PublishFunctionsTotal ¶
func PublishFunctionsTotal(f serverlessv1alpha2.Function)
func PublishReconciliationTime ¶
func PublishReconciliationTime(f serverlessv1alpha2.Function, start time.Time)
func PublishReconciliationsTotal ¶
func PublishReconciliationsTotal(f serverlessv1alpha2.Function)
func PublishStateReachTime ¶
func PublishStateReachTime(f serverlessv1alpha2.Function, toState serverlessv1alpha2.ConditionType)
func StartForStateReachTime ¶
func StartForStateReachTime(f serverlessv1alpha2.Function)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.