Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAlreadyRegisteredError ¶
IsAlreadyRegisteredError asserts alreadyRegisteredError.
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
Types ¶
type Interface ¶
type Interface interface {
// Collect should align with the monitoring system's implementation
// requirements. In this case Prometheus. See also
// https://godoc.org/github.com/prometheus/client_golang/prometheus#Collector.
// The difference here is that this specific interface provides additional
// error handling capabilities.
Collect(ch chan<- prometheus.Metric) error
// Describe should align with the monitoring system's implementation
// requirements. In this case Prometheus. See also
// https://godoc.org/github.com/prometheus/client_golang/prometheus#Collector.
// The difference here is that this specific interface provides additional
// error handling capabilities.
Describe(ch chan<- *prometheus.Desc) error
}
Interface defines how a collector implementation should look like.
type Set ¶
type Set struct {
// contains filtered or unexported fields
}
func (*Set) Collect ¶
func (s *Set) Collect(ch chan<- prometheus.Metric)
func (*Set) Describe ¶
func (s *Set) Describe(ch chan<- *prometheus.Desc)
type SetConfig ¶
type SetConfig struct {
Collectors []Interface
Logger micrologger.Logger
}
Click to show internal directories.
Click to hide internal directories.