Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Monitoring configuration
Monitoring RegistryConfig `json:"monitoring"`
}
type RegistererGatherer ¶
type RegistererGatherer interface {
prometheus.Registerer
prometheus.Gatherer
}
type Registry ¶
type Registry struct {
// Inherited prometheus registry.
RegistererGatherer
// contains filtered or unexported fields
}
Custom prometheus registry that adds functionality to the default registry.
func NewRegistry ¶
Create a new registry with the given configuration. This registry will include the default go collector and process collector.
func WrapRegistry ¶
func WrapRegistry(registry RegistererGatherer, config Config) *Registry
type RegistryConfig ¶
type RegistryConfig struct {
// The labels to add to all metrics.
Labels map[string]string `json:"labels"`
// The port to expose the metrics on.
Port int `json:"port"`
}
Configuration for our custom registry.
Click to show internal directories.
Click to hide internal directories.