Documentation
¶
Index ¶
- Variables
- type Configuration
- type Prometheus
- func (p *Prometheus) Collect(ch chan<- prometheus.Metric)
- func (p *Prometheus) Describe(ch chan<- *prometheus.Desc)
- func (p *Prometheus) Gather() ([]*io_prometheus_client.MetricFamily, error)
- func (p *Prometheus) Register(c prometheus.Collector) error
- func (p *Prometheus) Unregister(c prometheus.Collector) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module("prometheus", fx.Provide(NewPrometheus), )
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct {
Address string `hcl:"address"`
}
type Prometheus ¶
func NewPrometheus ¶
func NewPrometheus(config Configuration, log *zap.Logger, lc fx.Lifecycle) *Prometheus
func (*Prometheus) Collect ¶ added in v0.4.0
func (p *Prometheus) Collect(ch chan<- prometheus.Metric)
func (*Prometheus) Describe ¶ added in v0.4.0
func (p *Prometheus) Describe(ch chan<- *prometheus.Desc)
func (*Prometheus) Gather ¶ added in v0.4.0
func (p *Prometheus) Gather() ([]*io_prometheus_client.MetricFamily, error)
func (*Prometheus) Register ¶ added in v0.4.0
func (p *Prometheus) Register(c prometheus.Collector) error
func (*Prometheus) Unregister ¶ added in v0.4.0
func (p *Prometheus) Unregister(c prometheus.Collector) bool
Click to show internal directories.
Click to hide internal directories.