metrics defined in the format of OpenCensus
var ( MReconcileOccupiedWorkers = stats.Int64("ReconcileOccupiedWorkers", "The number of occupied reconcile workers", stats.UnitDimensionless) MReconcileTotalWorkers = stats.Int64("ReconcileTotalWorkers", "The number of total reconcile workers", stats.UnitDimensionless) MReconcileRequests = stats.Int64("ReconcileRequests", "The number of reconcile requests", stats.UnitDimensionless) MInternalErrors = stats.Int64("InternalErrorsTotal", "The number of internal errors", stats.UnitDimensionless) MReconcileDuration = stats.Float64("ReconcileDuration", "The duration of reconcile requests", "seconds") MProcessStartTime = stats.Float64("ProcessStartTimeSeconds", "Start time of the process since unix epoch in seconds", "seconds") )
var ( KindTag, _ = tag.NewKey("group_version_kind") StatusTag, _ = tag.NewKey("status") NamespaceTag, _ = tag.NewKey("namespace") ResourceNameTag, _ = tag.NewKey("name") )
func GetControllerViews() []*view.View
func GetControllerViewsWithResourceNameLabel() []*view.View
func NewAppliedResourcesCollector() *prometheus.GaugeVec
metrics defined in the format of prometheus/client_golang
func NewBuildInfoCollector(version string) prometheus.Collector
func RecordProcessStartTime() error
func RegisterControllerOpenCensusViews() error
func RegisterControllerOpenCensusViewsWithResourceNameLabel() error
func RegisterPrometheusExporter(addr string) error