Documentation ¶
Index ¶
- Constants
- func EscapeTag(tag string) string
- func MustGetBenchmark() *string
- func MustGetTags() []string
- func NewCrossRunConfig(runCount int32, tags ...string) *tpb.CrossRunConfig
- func Setup(ctx context.Context, extraTags ...string) (context.Context, *quickstore.Quickstore, func(context.Context), error)
- func XTime(t time.Time) float64
- type Config
Constants ¶
const (
// ConfigName is the name of the config map for mako options.
ConfigName = "config-mako"
)
Variables ¶
This section is empty.
Functions ¶
func MustGetBenchmark ¶
func MustGetBenchmark() *string
MustGetBenchmark wraps getBenchmark in log.Fatalf
func MustGetTags ¶
func MustGetTags() []string
MustGetTags returns the additional tags from the configmap, or dies.
func NewCrossRunConfig ¶
func NewCrossRunConfig(runCount int32, tags ...string) *tpb.CrossRunConfig
NewCrossRunConfig returns a config that can be used in ThresholdAnalyzer. By using it, the Analyzer will only fail if there are xx continuous runs that cross the threshold.
func Setup ¶
func Setup(ctx context.Context, extraTags ...string) (context.Context, *quickstore.Quickstore, func(context.Context), error)
Setup sets up the mako client for the provided benchmarkKey. It will add a few common tags and allow each benchmark to add custm tags as well. It returns the mako client handle to store metrics, a method to close the connection to mako server once done and error in case of failures.
Types ¶
type Config ¶
type Config struct { // Environment holds the name of the environement, // where the test runs, e.g. `dev`. Environment string // List of additional tags to apply to the run. AdditionalTags []string }
Config defines the mako configuration options.
func NewConfigFromConfigMap ¶
NewConfigFromConfigMap creates a Config from the supplied ConfigMap