Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
Metrics contains the set of Prometheus metric objects used to store counter and histograms for a variety of data points
func NewMetrics ¶
NewMetrics returns a pointer to a Metrics struct that can be used to collect and expose various Prometheus metrics
func (*Metrics) Collectors ¶ added in v0.0.2
func (m *Metrics) Collectors() []prometheus.Collector
Collectors simply provides an iterator over the `prometheus.Collector` interface pointers of the underlying metrics. This allows a `prometheus.Registerer` (like controller-runtime's metrics.Registry) to register the metrics.
Click to show internal directories.
Click to hide internal directories.