Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultEnabled = true DefaultDisabled = false )
Variables ¶
This section is empty.
Functions ¶
func RegisterAPI ¶
func RegisterAPI(clientAPI ClientAPI)
Types ¶
type Collector ¶
type Collector interface {
Update(ch chan<- prometheus.Metric, namespace string, clientAPI ClientAPI, clientData map[string]interface{}, extraParams map[string]string) error
}
Collector is the interface a collector has to implement.
type CollectorSet ¶
type CollectorSet struct { Collectors map[string]Collector ScrapeMetrics ScrapeMetrics // contains filtered or unexported fields }
func NewCollectorSet ¶
func (*CollectorSet) Collect ¶
func (cs *CollectorSet) Collect(ch chan<- prometheus.Metric)
func (*CollectorSet) Describe ¶
func (cs *CollectorSet) Describe(ch chan<- *prometheus.Desc)
type ScrapeMetrics ¶
type ScrapeMetrics struct { Success *prometheus.Desc Duration *prometheus.Desc }
Click to show internal directories.
Click to hide internal directories.