Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VisitSampleSeries ¶
func VisitSampleSeriesBy ¶ added in v1.14.0
func VisitSampleSeriesBy( profile *profilev1.Profile, labels phlaremodel.Labels, rules []*relabel.Config, visitor SampleSeriesVisitor, names ...string, ) error
VisitSampleSeriesBy visits samples in a profile, splitting them by the specified labels. Labels shared by all samples in a group (intersection) are passed to the visitor, while the rest of the labels are added to each sample.
Types ¶
type SampleSeriesVisitor ¶
type SampleSeriesVisitor interface {
// VisitProfile is called when no sample labels are present in
// the profile, or if all the sample labels are identical.
// Provided labels are the series labels processed with relabeling rules.
VisitProfile(phlaremodel.Labels)
VisitSampleSeries(phlaremodel.Labels, []*profilev1.Sample)
// ValidateLabels is called to validate the labels before
// they are passed to the visitor.
ValidateLabels(phlaremodel.Labels) error
Discarded(profiles, bytes int)
}
Click to show internal directories.
Click to hide internal directories.