Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeAndRegister ¶ added in v1.11.7
func MakeAndRegister(gatherer MultiGatherer, name string) (*prometheus.Registry, error)
Types ¶
type Client ¶ added in v1.11.7
type Client struct {
// contains filtered or unexported fields
}
Client for requesting metrics from a remote AvalancheGo instance
func (*Client) GetMetrics ¶ added in v1.11.7
GetMetrics returns the metrics from the connected node. The metrics are returned as a map of metric family name to the metric family.
type MultiGatherer ¶ added in v1.7.0
type MultiGatherer interface { prometheus.Gatherer // Register adds the outputs of [gatherer] to the results of future calls to // Gather with the provided [namespace] added to the metrics. Register(namespace string, gatherer prometheus.Gatherer) error }
MultiGatherer extends the Gatherer interface by allowing additional gatherers to be registered.
func NewMultiGatherer ¶ added in v1.7.0
func NewMultiGatherer() MultiGatherer
Click to show internal directories.
Click to hide internal directories.