Documentation
¶
Index ¶
Constants ¶
View Source
const JobControllerSubsystem = "job_controller"
JobControllerSubsystem - subsystem name used for this controller.
Variables ¶
View Source
var ( // JobSyncDurationSeconds tracks the latency of job syncs as // completion_mode = Indexed / NonIndexed and result = success / error. JobSyncDurationSeconds = metrics.NewHistogramVec( &metrics.HistogramOpts{ Subsystem: JobControllerSubsystem, Name: "job_sync_duration_seconds", Help: "The time it took to sync a job", StabilityLevel: metrics.ALPHA, Buckets: metrics.ExponentialBuckets(0.001, 2, 15), }, []string{"completion_mode", "result"}, ) // JobSyncNum tracks the number of job syncs as // completion_mode = Indexed / NonIndexed and result = success / error. JobSyncNum = metrics.NewCounterVec( &metrics.CounterOpts{ Subsystem: JobControllerSubsystem, Name: "job_sync_total", Help: "The number of job syncs", StabilityLevel: metrics.ALPHA, }, []string{"completion_mode", "result"}, ) // JobFinishedNum tracks the number of jobs that finish as // completion_mode = Indexed / NonIndexed and result = failed / succeeded. JobFinishedNum = metrics.NewCounterVec( &metrics.CounterOpts{ Subsystem: JobControllerSubsystem, Name: "job_finished_total", Help: "The number of finished job", StabilityLevel: metrics.ALPHA, }, []string{"completion_mode", "result"}, ) )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.