Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidConfig = errors.New("invalid configuration for cw exporter") ErrMissingConfig = errors.New("missing configuration for cw exporter") )
Functions ¶
This section is empty.
Types ¶
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
func NewExporter ¶
func NewExporter(options ...ExporterOption) *Exporter
func (*Exporter) UpdateCache ¶
func (e *Exporter) UpdateCache()
type ExporterOption ¶
type ExporterOption func(*Exporter)
func WithLogger ¶
func WithLogger(l *zerolog.Logger) ExporterOption
func WithViper ¶
func WithViper(v *viper.Viper) ExporterOption
type PrometheusCollector ¶
type PrometheusCollector struct {
// contains filtered or unexported fields
}
func NewPrometheusCollector ¶
func NewPrometheusCollector() *PrometheusCollector
func (*PrometheusCollector) Collect ¶
func (p *PrometheusCollector) Collect(metrics chan<- prometheus.Metric)
func (*PrometheusCollector) Describe ¶
func (p *PrometheusCollector) Describe(descs chan<- *prometheus.Desc)
Click to show internal directories.
Click to hide internal directories.