metrics

package
v1.0.2-0...-81fcf91 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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 Register

func Register()

func StartForStateReachTime

func StartForStateReachTime(f serverlessv1alpha2.Function)

Types

This section is empty.

Jump to

Keyboard shortcuts

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