monitor

package
v0.0.0-...-d38b3e6 Latest Latest
Warning

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

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

Documentation

Overview

Package monitor contains the interface for monitoring adapters.

Subpackages contain several examples of adapters.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EarlyRetriever

type EarlyRetriever interface {
	RetrieveAllValues(items []RetrievalItem) []assessment_model.GuaranteeData
}

EarlyRetriever is implemented by adapters that want to (and can) retrieve all monitoring information in one query for efficiency reasons

type MonitoringAdapter

type MonitoringAdapter interface {
	// Intialize the monitoring retrieval for one evaluation of the agreement
	//
	// A new MonitoringAdapter, copy of current adapter, must be returned
	Initialize(a *model.Agreement) MonitoringAdapter

	// GetValues retrieve the metrics corresponding to the variables found in a guarantee
	GetValues(gt model.Guarantee, vars []string, to time.Time) assessment_model.GuaranteeData
}

MonitoringAdapter is an interface which should be implemented per monitoring solution

type RetrievalItem

type RetrievalItem struct {
	Guarantee model.Guarantee
	Var       model.Variable
	From      time.Time
	To        time.Time
}

RetrievalItem contains the retrieval information for a variable

Used in EarlyRetriever interface

Directories

Path Synopsis
Package dummyadapter provides an example of MonitoringAdapter.
Package dummyadapter provides an example of MonitoringAdapter.
Package genericadapter provides a configurable MonitoringAdapter that works with advanced agreement schema.
Package genericadapter provides a configurable MonitoringAdapter that works with advanced agreement schema.
Package prometheus provides a Retriever to get monitoring metrics from a Prometheus TSDB
Package prometheus provides a Retriever to get monitoring metrics from a Prometheus TSDB
guarantees
Package guarantees contains a the monitorization of specific guarantees.
Package guarantees contains a the monitorization of specific guarantees.
Package simpleadapter provides an example of MonitoringAdapter that returns the same data passed on construction
Package simpleadapter provides an example of MonitoringAdapter that returns the same data passed on construction

Jump to

Keyboard shortcuts

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