Add prometheous metrics for each api handler (#12254)

Этот коммит содержится в:
Jesús Espino
2019-09-20 15:09:58 +02:00
коммит произвёл GitHub
родитель 05fae599b8
Коммит e236eb74fa
3 изменённых файлов: 26 добавлений и 0 удалений

Просмотреть файл

@@ -44,4 +44,5 @@ type MetricsInterface interface {
IncrementPostsSearchCounter()
ObservePostsSearchDuration(elapsed float64)
ObserveStoreMethodDuration(method string, success string, elapsed float64)
ObserveApiEndpointDuration(endpoint string, elapsed float64)
}