Documentation ¶
Index ¶
Constants ¶
View Source
const ( DynamicFlags flagType = "dynamic" StaticFlags flagType = "static" )
Variables ¶
This section is empty.
Functions ¶
func MustRegisterFlagSet ¶
MustRegisterFlagSet adds relevant Prometheus collectors for the checksum of the FlagSet. If the FlagSet is already registered for colletion, this code panics.
func NewFlagSetCollector ¶
func NewFlagSetCollector(name string, typ flagType, flagSet *flag.FlagSet) prometheus.Collector
NewFlagSetCollector returns a Prometheus collector that computes the FlagSet checksum on every scrape.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.