Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetricsExporter ¶
type MetricsExporter interface {
// Evaluate evaluates metrics export rules against the input key and creates
// prometheus counters for new time series, if required. Returned observer can
// be used to evaluate and observe particular samples.
//
// If there are no matching rules, the function returns false.
Evaluate(*PutInput) (SampleObserver, bool)
}
MetricsExporter exports values of particular stack traces sample from profiling data as a Prometheus metrics.
type PutInput ¶
type PutInput struct {
// OriginalStartTimeNanos excludes server-generated defaults, so conversion
// to pprof can preserve the absence of a caller-supplied timestamp.
OriginalStartTimeNanos int64
StartTime time.Time
EndTime time.Time
LabelSet *labelset.LabelSet
Val *tree.Tree
SpyName string
SampleRate uint32
Units metadata.Units
AggregationType metadata.AggregationType
}
type SampleObserver ¶
Click to show internal directories.
Click to hide internal directories.