Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultMetricsPort = 9148 DefaultStatisticsIntervalSeconds = 10 TaskDelayUpdateModMask = 1023 TaskQPSGaugeName = "task_qps" TaskDelayGaugeName = "task_delay" )
Variables ¶
This section is empty.
Functions ¶
func AddEventCount ¶
func AddEventCount()
func UpdateTaskBinlogDelay ¶
func UpdateTaskBinlogDelay(positionTimestamp uint32)
Types ¶
type TaskMetrics ¶
type TaskMetrics struct { *core.BaseComponent // contains filtered or unexported fields }
var MetricsInstance *TaskMetrics
MetricsInstance is the Global TaskMetrics singleton
func NewTaskMetrics ¶
func NewTaskMetrics(taskName string) *TaskMetrics
func (*TaskMetrics) AddEventCount ¶
func (m *TaskMetrics) AddEventCount()
func (*TaskMetrics) SetTaskDelay ¶
func (m *TaskMetrics) SetTaskDelay(delay float64)
func (*TaskMetrics) Start ¶
func (m *TaskMetrics) Start() (err error)
Click to show internal directories.
Click to hide internal directories.