optin

package
v2.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL