istio: istio.io/istio/pkg/test/framework/components/prometheus Index | Files

package prometheus

import "istio.io/istio/pkg/test/framework/components/prometheus"

Index

Package Files

kube.go prometheus.go

type Instance Uses

type Instance interface {
    resource.Resource

    // API Returns the core Prometheus APIs.
    API() v1.API

    // WaitForQuiesce runs the provided query periodically until the result gets stable.
    WaitForQuiesce(fmt string, args ...interface{}) (prom.Value, error)
    WaitForQuiesceOrFail(t test.Failer, fmt string, args ...interface{}) prom.Value

    // WaitForOneOrMore runs the provided query and waits until one (or more for vector) values are available.
    WaitForOneOrMore(fmt string, args ...interface{}) error
    WaitForOneOrMoreOrFail(t test.Failer, fmt string, args ...interface{})

    // Sum all the samples that has the given labels in the given vector value.
    Sum(val prom.Value, labels map[string]string) (float64, error)
    SumOrFail(t test.Failer, val prom.Value, labels map[string]string) float64
}

func New Uses

func New(ctx resource.Context) (i Instance, err error)

New returns a new instance of echo.

func NewOrFail Uses

func NewOrFail(t test.Failer, ctx resource.Context) Instance

NewOrFail returns a new Prometheus instance or fails test.

Package prometheus imports 16 packages (graph). Updated 2019-10-17. Refresh now. Tools for package owners.