mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
* MM-25005: Remove HttpRequestsDuration bucket The ApiTimesHistograms already captures what HttpRequestsDuration does. And it's more granular than that. So there's no need to duplicate stuff. Let's remove this one. * Updating resource class to xlarge Co-authored-by: mattermod <mattermod@users.noreply.github.com> Co-authored-by: Jason Deland <jaydeland@gmail.com>
60 lines
2.0 KiB
Go
60 lines
2.0 KiB
Go
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
package einterfaces
|
|
|
|
type MetricsInterface interface {
|
|
StartServer()
|
|
StopServer()
|
|
|
|
IncrementPostCreate()
|
|
IncrementWebhookPost()
|
|
IncrementPostSentEmail()
|
|
IncrementPostSentPush()
|
|
IncrementPostBroadcast()
|
|
IncrementPostFileAttachment(count int)
|
|
|
|
IncrementHttpRequest()
|
|
IncrementHttpError()
|
|
|
|
IncrementClusterRequest()
|
|
ObserveClusterRequestDuration(elapsed float64)
|
|
IncrementClusterEventType(eventType string)
|
|
|
|
IncrementLogin()
|
|
IncrementLoginFail()
|
|
|
|
IncrementEtagHitCounter(route string)
|
|
IncrementEtagMissCounter(route string)
|
|
|
|
IncrementMemCacheHitCounter(cacheName string)
|
|
IncrementMemCacheMissCounter(cacheName string)
|
|
IncrementMemCacheInvalidationCounter(cacheName string)
|
|
IncrementMemCacheMissCounterSession()
|
|
IncrementMemCacheHitCounterSession()
|
|
IncrementMemCacheInvalidationCounterSession()
|
|
|
|
IncrementWebsocketEvent(eventType string)
|
|
IncrementWebSocketBroadcast(eventType string)
|
|
IncrementWebSocketBroadcastBufferSize(hub string, amount float64)
|
|
DecrementWebSocketBroadcastBufferSize(hub string, amount float64)
|
|
IncrementWebSocketBroadcastUsersRegistered(hub string, amount float64)
|
|
DecrementWebSocketBroadcastUsersRegistered(hub string, amount float64)
|
|
|
|
AddMemCacheHitCounter(cacheName string, amount float64)
|
|
AddMemCacheMissCounter(cacheName string, amount float64)
|
|
|
|
IncrementPostsSearchCounter()
|
|
ObservePostsSearchDuration(elapsed float64)
|
|
ObserveStoreMethodDuration(method, success string, elapsed float64)
|
|
ObserveApiEndpointDuration(endpoint, method, statusCode string, elapsed float64)
|
|
IncrementPostIndexCounter()
|
|
IncrementUserIndexCounter()
|
|
IncrementChannelIndexCounter()
|
|
|
|
ObservePluginHookDuration(pluginID, hookName string, success bool, elapsed float64)
|
|
ObservePluginMultiHookIterationDuration(pluginID string, elapsed float64)
|
|
ObservePluginMultiHookDuration(elapsed float64)
|
|
ObservePluginApiDuration(pluginID, apiName string, success bool, elapsed float64)
|
|
}
|