Documentation ¶
Index ¶
Constants ¶
View Source
const ( CodeLabel = "code" MethodLabel = "method" URLLabel = "url" WarmupLabel = "warmup" )
Variables ¶
This section is empty.
Functions ¶
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 (*Clients) WaitForReady ¶
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.
Click to show internal directories.
Click to hide internal directories.