metrics

package
v0.1.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Success = promauto.NewCounterVec(prometheus.CounterOpts{
		Name: "request_success_ops_total",
		Help: "Total execution",
	}, []string{"method"})

	InternalError = promauto.NewCounterVec(prometheus.CounterOpts{
		Name: "request_error_ops_total",
		Help: "Total execution",
	}, []string{"method"})

	BadRequestError = promauto.NewCounterVec(prometheus.CounterOpts{
		Name: "request_bad_ops_total",
		Help: "Total execution",
	}, []string{"method"})
)

Functions

This section is empty.

Types

type PrometheusMetricService

type PrometheusMetricService interface {
	Success(label string)
	InternalError(label string)
	BadRequestError(label string)
}

func NewMetricService

func NewMetricService(metricPrefix string, settings *config.Settings) PrometheusMetricService

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL