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