Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GeneralCollector ¶
type GeneralCollector struct { StartTime *prometheus.Desc BuildInfo *prometheus.Desc // contains filtered or unexported fields }
GeneralCollector collects metrics, mostly runtime, about this exporter in general.
func NewGeneralCollector ¶
func NewGeneralCollector(version string, revision string, buildDate string, goVersion string, startTime time.Time) *GeneralCollector
NewGeneralCollector returns a new GeneralCollector.
func (*GeneralCollector) Collect ¶
func (c *GeneralCollector) Collect(ch chan<- prometheus.Metric)
Collect is called by the Prometheus registry when collecting metrics.
func (*GeneralCollector) Describe ¶
func (c *GeneralCollector) Describe(ch chan<- *prometheus.Desc)
Describe sends the super-set of all possible descriptors of metrics collected by this Collector.
Click to show internal directories.
Click to hide internal directories.