Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // FunctionMeshControllerReconcileCount will count how many reconcile operations been done. FunctionMeshControllerReconcileCount = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: metricDescription["FunctionMeshControllerReconcileCount"].Name, Help: metricDescription["FunctionMeshControllerReconcileCount"].Help, }, []string{"type", "name", "namespace"}, ) // FunctionMeshControllerReconcileLatency will measure the latency of reconcile operations. FunctionMeshControllerReconcileLatency = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Name: metricDescription["FunctionMeshControllerReconcileLatency"].Name, Help: metricDescription["FunctionMeshControllerReconcileLatency"].Help, Buckets: []float64{ 10, 100, 1000, 10000, 30000, 60000, }, }, []string{"type", "name", "namespace"}, ) )
Functions ¶
func RegisterMetrics ¶
func RegisterMetrics()
RegisterMetrics will register metrics with the global prometheus registry
Types ¶
type MetricDescription ¶
MetricDescription is an exported struct that defines the metric description (Name, Help) as a new type named MetricDescription.
func ListMetrics ¶
func ListMetrics() []MetricDescription
ListMetrics will create a slice with the metrics available in metricDescription
Click to show internal directories.
Click to hide internal directories.