metrics

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Dummy = &dummy{}

Dummy is a Dummy implementation of the metrics service.

Functions

This section is empty.

Types

type Service

type Service interface {
	// ObserveSLIRetrieveDuration will monitoring the duration of the process of gathering the group of
	// SLIs for a SLO.
	ObserveSLIRetrieveDuration(sli *monitoringv1alpha1.SLI, kind string, startTime time.Time)
	// IncSLIRetrieveError will increment the number of errors on the retrieval of the SLIs.
	IncSLIRetrieveError(sli *monitoringv1alpha1.SLI, kind string)
	// ObserveOuputCreateDuration monitorings the duration of the process of creating the output for the SLO
	ObserveOuputCreateDuration(slo *monitoringv1alpha1.SLO, kind string, startTime time.Time)
	// IncOuputCreateError will increment the number of errors on the SLO output creation.
	IncOuputCreateError(slo *monitoringv1alpha1.SLO, kind string)
}

Service knows how to monitoring the different parts, flows and processes of the application to give more insights and improve the observability of the application.

func NewPrometheus

func NewPrometheus(reg prometheus.Registerer) Service

NewPrometheus returns a new metrics.Service implementation that knows how to monitor gusing Prometheus as backend.

Jump to

Keyboard shortcuts

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