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.
Click to show internal directories.
Click to hide internal directories.