Documentation ¶
Overview ¶
Package channels implements fetching and exporting NixOS channel metadata as Prometheus metrics.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExporter ¶
NewExporter constructs a prometheus.Collector which gathers NixOS channel metadata about the channels defined in data, from the HTTP server specified by baseURL.
If baseURL is empty, a sane default is used. If client is nil, a default HTTP client with timeouts is used.
Types ¶
type Exporter ¶
type Exporter struct { ChannelRevision *prometheus.Desc ChannelUpdateTime *prometheus.Desc ChannelCurrent *prometheus.Desc ChannelRequestFailures *prometheus.Desc // contains filtered or unexported fields }
An Exporter is a prometheus.Collector for NixOS channel metadata.
func (*Exporter) Collect ¶
func (e *Exporter) Collect(ch chan<- prometheus.Metric)
Collect implements prometheus.Collector.
func (*Exporter) Describe ¶
func (e *Exporter) Describe(ch chan<- *prometheus.Desc)
Describe implements prometheus.Collector.
Click to show internal directories.
Click to hide internal directories.