package
0.37.2
Repository: https://github.com/pyroscope-io/pyroscope.git
Documentation: pkg.go.dev

# Functions

Now returns the current time as a Time.
ParseDuration parses a string into a time.Duration, assuming that a year always has 365d, a week always has 7d, and a day always has 24h.
TimeFromUnix returns the Time equivalent to the Unix Time t provided in seconds.
TimeFromUnixNano returns the Time equivalent to the Unix Time t provided in nanoseconds.

# Constants

AddressLabel is the name of the label that holds the address of a scrape target.
AlertNameLabel is the name of the label containing the an alert's name.
No description provided by the author
BucketLabel is used for the label that defines the upper bound of a bucket of a histogram ("le" -> "less or equal").
Earliest is the earliest Time representable.
ExportedLabelPrefix is the prefix to prepend to the label names present in exported metrics if a label of the same name is added by the server.
InstanceLabel is the label name used for the instance label.
JobLabel is the label name indicating the job from which a timeseries was scraped.
Latest is the latest Time representable.
MetaLabelPrefix is a prefix for labels that provide meta information.
MetricNameLabel is the label name indicating the metric name of a timeseries.
MetricsPathLabel is the name of the label that holds the path on which to scrape a target.
ParamLabelPrefix is a prefix for labels that provide URL parameters used to scrape a target.
No description provided by the author
No description provided by the author
No description provided by the author
QuantileLabel is used for the label that defines the quantile in a summary.
ReservedLabelPrefix is a prefix which is not legal in user-supplied label names.
SchemeLabel is the name of the label that holds the scheme on which to scrape a target.
ScrapeIntervalLabel is the name of the label that holds the scrape interval used to scrape a target.
ScrapeTimeoutLabel is the name of the label that holds the scrape timeout used to scrape a target.
No description provided by the author
TmpLabelPrefix is a prefix for temporary labels as part of relabelling.

# Structs

Interval describes an interval between two timestamps.
LabelPair pairs a name with a value.

# Type aliases

Duration wraps time.Duration.
A LabelName is a key for a LabelSet or Metric.
LabelNames is a sortable LabelName slice.
LabelPairs is a sortable slice of LabelPair pointers.
A LabelSet is a collection of LabelName and LabelValue pairs.
A LabelValue is an associated value for a LabelName.
LabelValues is a sortable LabelValue slice.
Time is the number of milliseconds since the epoch (1970-01-01 00:00 UTC) excluding leap seconds.