MM-22786 enterprise metrics for logging (#15313)
Adds metrics for logging engine which are collected by Prometheus. - current queue level(s) - rate of logging records emitted - rate of logging errors
Этот коммит содержится в:
@@ -4,7 +4,10 @@
|
||||
|
||||
package mocks
|
||||
|
||||
import mock "github.com/stretchr/testify/mock"
|
||||
import (
|
||||
logr "github.com/mattermost/logr"
|
||||
mock "github.com/stretchr/testify/mock"
|
||||
)
|
||||
|
||||
// MetricsInterface is an autogenerated mock type for the MetricsInterface type
|
||||
type MetricsInterface struct {
|
||||
@@ -31,6 +34,22 @@ func (_m *MetricsInterface) DecrementWebSocketBroadcastUsersRegistered(hub strin
|
||||
_m.Called(hub, amount)
|
||||
}
|
||||
|
||||
// GetLoggerMetricsCollector provides a mock function with given fields:
|
||||
func (_m *MetricsInterface) GetLoggerMetricsCollector() logr.MetricsCollector {
|
||||
ret := _m.Called()
|
||||
|
||||
var r0 logr.MetricsCollector
|
||||
if rf, ok := ret.Get(0).(func() logr.MetricsCollector); ok {
|
||||
r0 = rf()
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(logr.MetricsCollector)
|
||||
}
|
||||
}
|
||||
|
||||
return r0
|
||||
}
|
||||
|
||||
// IncrementChannelIndexCounter provides a mock function with given fields:
|
||||
func (_m *MetricsInterface) IncrementChannelIndexCounter() {
|
||||
_m.Called()
|
||||
|
||||
Ссылка в новой задаче
Block a user