Documentation ¶
Index ¶
Constants ¶
View Source
const Namespace = "namespace"
Variables ¶
View Source
var Factories = make(map[string]func() (Collector, error))
Functions ¶
func DelegateHandler ¶
func DelegateHandler(w http.ResponseWriter, r *http.Request)
Types ¶
type Collector ¶
type Collector interface { // Get new metrics and expose them via prometheus registry. Update(ch chan<- prometheus.Metric) error }
type DelegateCollector ¶
func (DelegateCollector) Collect ¶
func (c DelegateCollector) Collect(ch chan<- prometheus.Metric)
func (DelegateCollector) Describe ¶
func (c DelegateCollector) Describe(ch chan<- *prometheus.Desc)
type NodeCollector ¶
type NodeCollector struct {
// contains filtered or unexported fields
}
func (NodeCollector) Collect ¶
func (n NodeCollector) Collect(ch chan<- prometheus.Metric)
Collect implements the prometheus.Collector interface.
func (NodeCollector) Describe ¶
func (n NodeCollector) Describe(ch chan<- *prometheus.Desc)
Describe implements the prometheus.Collector interface.
Click to show internal directories.
Click to hide internal directories.