prometheus

package
v0.0.0-...-15ec0e9 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CodeLabel   = "code"
	MethodLabel = "method"
	URLLabel    = "url"
	WarmupLabel = "warmup"
)

Variables

This section is empty.

Functions

func CreateClientCertAuthPromConfig

func CreateClientCertAuthPromConfig(c *Config) (*promapi.Config, error)

func TargetReady

func TargetReady(testName string, targets *promv1.TargetsResult) (bool, error)

Types

type Clients

type Clients struct {
	// contains filtered or unexported fields
}

func NewClients

func NewClients(cfgs ...*Config) (*Clients, error)

func (*Clients) Get

func (cs *Clients) Get(name string) promv1.API

func (*Clients) WaitForReady

func (cs *Clients) WaitForReady(testName string) error

type Config

type Config struct {
	Name           string
	Endpoint       string
	ClientCertFile string
	ClientKeyFile  string
	CAFile         string
}

type PrometheusStatsReporter

type PrometheusStatsReporter struct {
	// contains filtered or unexported fields
}

PrometheusStatsReporter structure represents a prometheus stats reporter.

func NewPrometheusStatsReporter

func NewPrometheusStatsReporter(warmup bool) (*PrometheusStatsReporter, error)

NewPrometheusStatsReporter creates a reporter that collects and reports vegita metrics.

func (*PrometheusStatsReporter) Handler

func (r *PrometheusStatsReporter) Handler() http.Handler

Handler returns an uninstrumented http.Handler used to serve stats registered by this PrometheusStatsReporter.

func (*PrometheusStatsReporter) Report

func (r *PrometheusStatsReporter) Report(res *vegeta.Result)

Report captures request metrics.

Jump to

Keyboard shortcuts

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