metrics

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(domain string) bool

Exists returns true if a collector for the domain has been registered.

func InitFactory

func InitFactory(factories blip.Factories)

func List

func List() []string

List lists all registered metric collectors. It is used by the server API for GET /registered.

func Make

func Make(domain string, args blip.CollectorFactoryArgs) (blip.Collector, error)

Make makes a metric collector for the domain using a previously registered factory.

See types in the blip package for more details.

func PrintDomains

func PrintDomains() string

func Register

func Register(domain string, f blip.CollectorFactory) error

Register registers a factory that makes one or more collector by domain name. This is function is one several integration points because it allows users to plug in new metric collectors by providing a factory to make them. Blip calls this function in an init function to register the built-in metric collectors.

See types in the blip package for more details.

func Remove

func Remove(domain string)

Remove removes the metrics collector factory for the given domain. This is used for testing, but it can also be used to remove (or override) built-in metric collectors.

Types

This section is empty.

Directories

Path Synopsis
Package statusglobal provides the status.global metric domain collector.
Package statusglobal provides the status.global metric domain collector.

Jump to

Keyboard shortcuts

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