Metrics for shared channels (#26199)
* add metrics definitions for shared channels
Этот коммит содержится в:
@@ -79,6 +79,14 @@ type MetricsInterface interface {
|
||||
ObserveRemoteClusterClockSkew(remoteID string, skew float64)
|
||||
IncrementRemoteClusterConnStateChangeCounter(remoteID string, online bool)
|
||||
|
||||
IncrementSharedChannelsSyncCounter(remoteID string)
|
||||
ObserveSharedChannelsTaskInQueueDuration(elapsed float64)
|
||||
ObserveSharedChannelsQueueSize(size int64)
|
||||
ObserveSharedChannelsSyncCollectionDuration(remoteID string, elapsed float64)
|
||||
ObserveSharedChannelsSyncSendDuration(remoteID string, elapsed float64)
|
||||
ObserveSharedChannelsSyncCollectionStepDuration(remoteID string, step string, elapsed float64)
|
||||
ObserveSharedChannelsSyncSendStepDuration(remoteID string, step string, elapsed float64)
|
||||
|
||||
IncrementJobActive(jobType string)
|
||||
DecrementJobActive(jobType string)
|
||||
|
||||
|
||||
@@ -204,6 +204,11 @@ func (_m *MetricsInterface) IncrementRemoteClusterMsgSentCounter(remoteID string
|
||||
_m.Called(remoteID)
|
||||
}
|
||||
|
||||
// IncrementSharedChannelsSyncCounter provides a mock function with given fields: remoteID
|
||||
func (_m *MetricsInterface) IncrementSharedChannelsSyncCounter(remoteID string) {
|
||||
_m.Called(remoteID)
|
||||
}
|
||||
|
||||
// IncrementUserIndexCounter provides a mock function with given fields:
|
||||
func (_m *MetricsInterface) IncrementUserIndexCounter() {
|
||||
_m.Called()
|
||||
@@ -294,6 +299,36 @@ func (_m *MetricsInterface) ObserveRemoteClusterPingDuration(remoteID string, el
|
||||
_m.Called(remoteID, elapsed)
|
||||
}
|
||||
|
||||
// ObserveSharedChannelsQueueSize provides a mock function with given fields: size
|
||||
func (_m *MetricsInterface) ObserveSharedChannelsQueueSize(size int64) {
|
||||
_m.Called(size)
|
||||
}
|
||||
|
||||
// ObserveSharedChannelsSyncCollectionDuration provides a mock function with given fields: remoteID, elapsed
|
||||
func (_m *MetricsInterface) ObserveSharedChannelsSyncCollectionDuration(remoteID string, elapsed float64) {
|
||||
_m.Called(remoteID, elapsed)
|
||||
}
|
||||
|
||||
// ObserveSharedChannelsSyncCollectionStepDuration provides a mock function with given fields: remoteID, step, elapsed
|
||||
func (_m *MetricsInterface) ObserveSharedChannelsSyncCollectionStepDuration(remoteID string, step string, elapsed float64) {
|
||||
_m.Called(remoteID, step, elapsed)
|
||||
}
|
||||
|
||||
// ObserveSharedChannelsSyncSendDuration provides a mock function with given fields: remoteID, elapsed
|
||||
func (_m *MetricsInterface) ObserveSharedChannelsSyncSendDuration(remoteID string, elapsed float64) {
|
||||
_m.Called(remoteID, elapsed)
|
||||
}
|
||||
|
||||
// ObserveSharedChannelsSyncSendStepDuration provides a mock function with given fields: remoteID, step, elapsed
|
||||
func (_m *MetricsInterface) ObserveSharedChannelsSyncSendStepDuration(remoteID string, step string, elapsed float64) {
|
||||
_m.Called(remoteID, step, elapsed)
|
||||
}
|
||||
|
||||
// ObserveSharedChannelsTaskInQueueDuration provides a mock function with given fields: elapsed
|
||||
func (_m *MetricsInterface) ObserveSharedChannelsTaskInQueueDuration(elapsed float64) {
|
||||
_m.Called(elapsed)
|
||||
}
|
||||
|
||||
// ObserveStoreMethodDuration provides a mock function with given fields: method, success, elapsed
|
||||
func (_m *MetricsInterface) ObserveStoreMethodDuration(method string, success string, elapsed float64) {
|
||||
_m.Called(method, success, elapsed)
|
||||
|
||||
Ссылка в новой задаче
Block a user