Documentation ¶
Index ¶
- type Prometheus
- func (prom *Prometheus) CanHandleSelector(labels entities.Selector) bool
- func (prom *Prometheus) Close() error
- func (prom *Prometheus) ComputeObjective(o *entities.Objective, from time.Time, to time.Time) (*entities.Indicator, error)
- func (prom *Prometheus) ResourceFromSelector(labels entities.Selector) string
- type PrometheusAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Prometheus ¶
type Prometheus struct {
// contains filtered or unexported fields
}
func NewPrometheus ¶
func NewPrometheus() (*Prometheus, error)
func (*Prometheus) CanHandleSelector ¶
func (prom *Prometheus) CanHandleSelector(labels entities.Selector) bool
CanHandleSelector returns true only if both prometheus query/url are defined
func (*Prometheus) ComputeObjective ¶
func (*Prometheus) ResourceFromSelector ¶
func (prom *Prometheus) ResourceFromSelector(labels entities.Selector) string
No resource identifier can be found, this is part of prom env vars as we are running queries to Prometheus api
Click to show internal directories.
Click to hide internal directories.