# Functions
B formats a boolean value for emission.
D formats a duration for emission.
GetBufferedSamples will read all present (i.e.
GetResolversForTrendColumns checks if passed trend columns are valid for use in the summary output and then returns a map of the corresponding resolvers.
MarshalJSONWithoutHTMLEscape marshals t to JSON without escaping characters for safe use in HTML.
NewRegistry returns a new registry.
NewSink creates the related Sink for the provided MetricType.
NewSystemTagSet returns a SystemTagSet from input.
NewThresholds returns Thresholds objects representing the provided source strings.
NewTrendSink makes a Trend sink with the OpenHistogram circllhist histogram.
ParseMetricName parses a metric name expression of the form metric_name{tag_key:tag_value,...} Its first return value is the parsed metric name, second are parsed tags as as slice of "key:value" strings.
PushIfNotDone first checks if the supplied context is done and doesn't push the sample container if it is.
RegisterBuiltinMetrics register and returns the builtin metrics in the provided registry.
SystemTagString retrieves an enum value from the enum constants string name.
SystemTagValues returns all values of the enum.
ToD converts an emitted duration to a time.Duration.
ToSystemTagSet converts list of tags to SystemTagSet TODO: emit error instead of discarding invalid values.
# Constants
nolint:nolintlint // unfortunately it is having a false possitivenolint:revive.
A counter that sums its data points.
Values are data amounts (bytes).
nolint:nolintlint // unfortunately it is having a false possitivenolint:revive.
nolint:nolintlint // unfortunately it is having a false possitivenolint:revive.
Values are presented as-is.
nolint:nolintlint // unfortunately it is having a false possitivenolint:revive.
A gauge that displays the latest value.
nolint:nolintlint // unfortunately it is having a false possitivenolint:revive.
nolint:nolintlint // unfortunately it is having a false possitivenolint:revive.
nolint:nolintlint // unfortunately it is having a false possitivenolint:revive.
nolint:nolintlint // unfortunately it is having a false possitivenolint:revive.
nolint:nolintlint // unfortunately it is having a false possitivenolint:revive.
nolint:nolintlint // unfortunately it is having a false possitivenolint:revive.
nolint:nolintlint // unfortunately it is having a false possitivenolint:revive.
nolint:nolintlint // unfortunately it is having a false possitivenolint:revive.
nolint:nolintlint // unfortunately it is having a false possitivenolint:revive.
nolint:nolintlint // unfortunately it is having a false possitivenolint:revive.
nolint:nolintlint // unfortunately it is having a false possitivenolint:revive.
nolint:nolintlint // unfortunately it is having a false possitivenolint:revive.
nolint:nolintlint // unfortunately it is having a false possitivenolint:revive.
A rate, displays % of values that aren't 0.
Default system tags includes all of the system tags emitted with metrics by default.
Default system tags includes all of the system tags emitted with metrics by default.
Default system tags includes all of the system tags emitted with metrics by default.
Default system tags includes all of the system tags emitted with metrics by default.
Default system tags includes all of the system tags emitted with metrics by default.
Default system tags includes all of the system tags emitted with metrics by default.
non-indexable.
Default system tags includes all of the system tags emitted with metrics by default.
Default system tags includes all of the system tags emitted with metrics by default.
Default system tags includes all of the system tags emitted with metrics by default.
Default system tags includes all of the system tags emitted with metrics by default.
Default system tags includes all of the system tags emitted with metrics by default.
Default system tags includes all of the system tags emitted with metrics by default.
Default system tags includes all of the system tags emitted with metrics by default.
Default system tags includes all of the system tags emitted with metrics by default.
Default system tags includes all of the system tags emitted with metrics by default.
Default system tags includes all of the system tags emitted with metrics by default.
non-indexable.
Values are time durations (milliseconds).
A trend, min/max/avg/med are interesting.
nolint:nolintlint // unfortunately it is having a false possitivenolint:revive.
nolint:nolintlint // unfortunately it is having a false possitivenolint:revive.
nolint:nolintlint // unfortunately it is having a false possitivenolint:revive.
nolint:nolintlint // unfortunately it is having a false possitivenolint:revive.
nolint:nolintlint // unfortunately it is having a false possitivenolint:revive.
nolint:nolintlint // unfortunately it is having a false possitivenolint:revive.
nolint:nolintlint // unfortunately it is having a false possitivenolint:revive.
nolint:nolintlint // unfortunately it is having a false possitivenolint:revive.
# Variables
DefaultSystemTagSet includes all of the system tags emitted with metrics by default.
ErrInvalidMetricType indicates the serialized metric type is invalid.
ErrInvalidThreshold indicates a threshold is not valid.
ErrInvalidValueType indicates the serialized value type is invalid.
ErrMetricNameParsing indicates parsing a metric name failed.
NonIndexableSystemTags are high cardinality system tags (i.e.
# Structs
BuiltinMetrics represent all the builtin metrics of k6.
ConnectedSamples is the simplest ConnectedSampleContainer implementation that will be used when there's no need for extra information.
CounterSink is a sink that represents a Counter.
GaugeSink is a sink represents a Gauge.
A Metric defines the shape of a set of data.
RateSink is a sink for a rate.
Registry is what can create metrics.
A Sample is a single metric measurement at a specific point in time.
A Submetric represents a filtered dataset based on a parent metric.
TagsAndMeta is a helper type that provides easy group manipulation of the indexed Tags and the non-indexed Metadata values together.
Threshold is a representation of a single threshold for a single metric.
Thresholds is the combination of all Thresholds for a given metric.
A TimeSeries uniquely identifies the metric and the set of metric tags that a Sample (i.e.
TrendSink is a sink for a Trend.
# Interfaces
ConnectedSampleContainer is an extension of the SampleContainer interface that should be implemented when emitted samples are connected and share the same time and tags.
SampleContainer is a simple abstraction that allows sample producers to attach extra information to samples they return.
Sink is a sample sink which will accumulate data in specific way.
# Type aliases
EnabledTags is a string to bool map (for lookup efficiency) that is used to keep track of which system tags and non-system tags to include.
A MetricType specifies the type of a metric.
Samples is just the simplest SampleContainer implementation that will be used when there's no need for extra information.
SystemTag values are bit-shifted identifiers of all of the various system tags that k6 has.
SystemTagSet is a bitmask that is used to keep track which system tags should be included in metric Samples.
A TagSet represents an immutable set of metric tags.
ValueType holds the type of values a metric contains.