Documentation ¶
Index ¶
Constants ¶
View Source
const ( GCProcess = "GC" SyncProcess = "Sync" )
Variables ¶
View Source
var ( PSCProcessLatency = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Subsystem: pscControllerSubsystem, Name: pscProcessLatency, Help: "Latency of a PSC Process", Buckets: prometheus.ExponentialBuckets(1, 2, 13), }, pscProcessMetricsLabels, ) LastProcessTimestamp = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Subsystem: pscControllerSubsystem, Name: lastProcessTimestamp, Help: "The timestamp of the last execution of a PSC process loop.", }, pscProcessTSMetricsLabels, ) )
Functions ¶
func PublishLastProcessTimestampMetrics ¶
func PublishLastProcessTimestampMetrics(process string)
PublishLastProcessTimestampMetrics publishes the last timestamp of the provided process
func PublishPSCProcessMetrics ¶
PublishLastProcessTimestampMetrics calculates and publishes the process latency
func RegisterMetrics ¶
func RegisterMetrics()
Types ¶
type PSCMetricsCollector ¶
type PSCMetricsCollector interface { SetServiceAttachment(saKey string, state PSCState) DeleteServiceAttachment(saKey string) }
PSCMetricsCollector is used to publish usage metrics
Click to show internal directories.
Click to hide internal directories.