Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector interface { Describe(chan<- *prometheus.Desc) Update(chan<- prometheus.Metric) error }
Collector must be implemented by collectors
type ServiceCollector ¶
type ServiceCollector struct {
// contains filtered or unexported fields
}
ServiceCollector combines all collectors and implements prometheus.Collector
func NewCollector ¶
func NewCollector(provider *gophercloud.ProviderClient, opts gophercloud.EndpointOpts, enabledCollectors ...string) (*ServiceCollector, error)
NewCollector creates a new prometheus.Collector which scapes all enabledCollectors
func (ServiceCollector) Collect ¶
func (c ServiceCollector) Collect(ch chan<- prometheus.Metric)
Collect all the data from all collectors
func (ServiceCollector) Describe ¶
func (c ServiceCollector) Describe(ch chan<- *prometheus.Desc)
Describe sends metrics descriptions to ch
Click to show internal directories.
Click to hide internal directories.