...

Package metrics

import "github.com/GoogleCloudPlatform/k8s-config-connector/pkg/metrics"
Overview
Index

Overview ▾

Variables

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

func GetControllerViews() []*view.View

func GetControllerViewsWithResourceNameLabel

func GetControllerViewsWithResourceNameLabel() []*view.View

func NewAppliedResourcesCollector

func NewAppliedResourcesCollector() *prometheus.GaugeVec

metrics defined in the format of prometheus/client_golang

func NewBuildInfoCollector

func NewBuildInfoCollector(version string) prometheus.Collector

func RecordProcessStartTime

func RecordProcessStartTime() error

func RegisterControllerOpenCensusViews

func RegisterControllerOpenCensusViews() error

func RegisterControllerOpenCensusViewsWithResourceNameLabel

func RegisterControllerOpenCensusViewsWithResourceNameLabel() error

func RegisterPrometheusExporter

func RegisterPrometheusExporter(addr string) error