query

package
v0.0.0-...-d5fa8a2 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const SCRAPE_ITERVAL = 15 * time.Second

Variables

This section is empty.

Functions

func CreateAvgClientLatencyQuery

func CreateAvgClientLatencyQuery(namespace string, rateDuration time.Duration) *promql.Query

CreateAvgClientLatencyQuery creates query for average client response time

func CreateAvgK6IterationDurationQuery

func CreateAvgK6IterationDurationQuery(testName string) *promql.Query

CreateAvgK6IterationDurationQuery create query for average duration for each request

func CreateAvgServerLatencyFromClientQuery

func CreateAvgServerLatencyFromClientQuery(namespace string, rateDuration time.Duration) *promql.Query

CreateAvgServerLatencyFromClientQuery creates query for average server response time

func CreateAvgServerLatencyQuery

func CreateAvgServerLatencyQuery(namespace string, rateDuration time.Duration) *promql.Query

CreateAvgServerLatencyQuery creates query for average server response time

func CreateClientReadBytesQuery

func CreateClientReadBytesQuery(namespace string, rateDuration time.Duration) *promql.Query

CreateClientReadBytesQuery create query for bytes read by client

func CreateClientWriteBytesQuery

func CreateClientWriteBytesQuery(namespace string, rateDuration time.Duration) *promql.Query

CreateClientWriteBytesQuery create query for bytes written by client

func CreateK6BytesReceivedQuery

func CreateK6BytesReceivedQuery(testName string, rateDuration time.Duration) *promql.Query

CreateK6BytesReceivedQuery create query for bytes received by loadgenerator

func CreateK6BytesSentQuery

func CreateK6BytesSentQuery(testName string, rateDuration time.Duration) *promql.Query

CreateK6BytesSentQuery create query for bytes sent by loadgenerator

func CreateK6DroppedIterationRateQuery

func CreateK6DroppedIterationRateQuery(testName string, rateConfig RateConfig) *promql.Query

CreateK6DroppedIterationRateQuery create query for iteration per second (rps)

func CreateK6IterationRateQuery

func CreateK6IterationRateQuery(testName string, rateConfig RateConfig) *promql.Query

CreateK6IterationRateQuery create query for iteration per second (rps)

func CreateP95K6IterationDurationQuery

func CreateP95K6IterationDurationQuery(testName string) *promql.Query

CreateP95K6IterationDurationQuery create query for p95 duration for each request

func CreateP99K6IterationDurationQuery

func CreateP99K6IterationDurationQuery(testName string) *promql.Query

CreateP99K6IterationDurationQuery create query for p99 duration for each request

func CreatePercentileClientLatencyQuery

func CreatePercentileClientLatencyQuery(namespace string, rateDuration time.Duration, percentile float32) *promql.Query

CreatePercentileServerLatencyQuery creates query for percentile server response time

func CreatePercentileServerLatencyFromClientQuery

func CreatePercentileServerLatencyFromClientQuery(namespace string, rateDuration time.Duration, percentile float32) *promql.Query

CreatePercentileServerLatencyFromClientQuery creates query for percentile server response time

func CreatePercentileServerLatencyQuery

func CreatePercentileServerLatencyQuery(namespace string, rateDuration time.Duration, percentile float32) *promql.Query

CreatePercentileServerLatencyQuery creates query for percentile server response time

func CreateServerReadBytesQuery

func CreateServerReadBytesQuery(namespace string, rateDuration time.Duration) *promql.Query

CreateServerReadBytesQuery create query for bytes read by server

func CreateServerWriteBytesQuery

func CreateServerWriteBytesQuery(namespace string, rateDuration time.Duration) *promql.Query

CreateServerWriteBytesQuery create query for bytes written by server

Types

type MetricsName

type MetricsName string

func (MetricsName) AsString

func (m MetricsName) AsString() string

type RateConfig

type RateConfig struct {
	Name     string
	Duration time.Duration
	// Specify whether rate or irate
	IsInstant bool
}

func (RateConfig) AddSuffix

func (rc RateConfig) AddSuffix(name string) string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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