package
1.0.0
Repository: https://github.com/grafana/metrictank.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

No description provided by the author
No description provided by the author
EatDots removes multiple consecutive, leading, and trailing dots from name.
GetAMKey helps to easily get an AMKey from a given MKey.
No description provided by the author
No description provided by the author
MetricDefinitionFromMetricData yields a MetricDefinition that has no references to the original MetricData.
KeyFromString parses a string id to an MKey string id must be of form orgid.<hexadecimal 128bit hash>.
important: caller must make sure to call IsSpanValid first.
No description provided by the author
Reslice reslices a slice into smaller slices of the given max size.
SanitizeNameAsTagValue takes a name and potentially modifies it to ensure it is a valid value that can be used as a tag value.
No description provided by the author
ValidateTagKey validates tag key requirements as defined in graphite docs.
ValidateTags returns whether all tags are in a valid format.
ValidateTagValue is the same as the above ValidateTagKey, but for the tag value.

# Constants

avg.
cnt.
lst.
max.
min.
partition by organization id only.
partition by the metric name only.
partition by metric name and tags, with the best distribution recommended for new deployments.
partition by metric name and tags, with a sub-optimal distribution when using tags.
sum.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

AMKey is a multi-tenant key with archive extension so you can refer to rollup archives.
MetricData contains all metric metadata (some as fields, some as tags) and a datapoint.
No description provided by the author
MetricPoint is a simple way to represent a point of a metric it can be serialized/deserialized with and without the Org field of the key.
MKey uniquely identifies a metric in a multi-tenant context.
go:generate msgp.

# Interfaces

No description provided by the author

# Type aliases

Archive represents a metric archive the zero value represents a raw metric any non-zero value represents a certain aggregation method (lower 8 bits) and aggregation span (higher 8 bits).
Key identifies a metric.
No description provided by the author
can be used by some encoders, such as msgp.
No description provided by the author