Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetricFamilyFilter ¶
type MetricFamilyFilter struct {
// contains filtered or unexported fields
}
MetricFamilyFilter filters metric families which are defined as opt-in by their generator.FamilyGenerator
func NewMetricFamilyFilter ¶
func NewMetricFamilyFilter(metrics map[string]struct{}) (*MetricFamilyFilter, error)
NewMetricFamilyFilter creates new MetricFamilyFilter instances.
func (MetricFamilyFilter) Count ¶
func (filter MetricFamilyFilter) Count() int
Count returns the amount of metrics contained within the filter
func (MetricFamilyFilter) Status ¶
func (filter MetricFamilyFilter) Status() string
Status returns the metrics contained within the filter as a comma-separated string
func (MetricFamilyFilter) Test ¶
func (filter MetricFamilyFilter) Test(generator generator.FamilyGenerator) bool
Test tests if a given generator is an opt-in metric family and was passed as an opt-in metric family at startup
Click to show internal directories.
Click to hide internal directories.