Documentation
¶
Overview ¶
nolint: varnamelen
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct { Client *monitoring.MetricsClient MetricsDesc map[string]*prometheus.Desc // all known metrics descriptions // contains filtered or unexported fields }
func GetCollector ¶
func GetCollector(c *Controller) *Collector
func (Collector) Collect ¶
func (zc Collector) Collect(ch chan<- prometheus.Metric)
Implements prometheus.Collector interface.
func (Collector) Describe ¶
func (zc Collector) Describe(ch chan<- *prometheus.Desc)
Implements prometheus.Collector interface.
type Config ¶
type Config struct { Server ServerConfig Exporter ExporterConfig }
func DefaultConfig ¶
func DefaultConfig() *Config
type Controller ¶
func NewController ¶
func NewController(cfg *Config) *Controller
func (*Controller) Run ¶
func (c *Controller) Run()
type ExporterConfig ¶
type ExporterConfig struct { Port string Log *LogConfig Metrics *MetricsConfig }
type LogConfig ¶
We export below types in order for cli package to be able to read it from configuration file.
type MetricsConfig ¶
type MetricsConfig struct {
Path string
}
type ServerConfig ¶
Click to show internal directories.
Click to hide internal directories.