Documentation ¶
Overview ¶
Package prometheus implements a Prometheus metrics exporter.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrometheusCollector ¶
type PrometheusCollector struct {
// contains filtered or unexported fields
}
PrometheusCollector implemnts the metrics exporter
func Exporter ¶
func Exporter(ctx context.Context, cfg config.PrometheusExporter) (*PrometheusCollector, error)
Exporter creates a Prometheus exporter instance.
func (*PrometheusCollector) MetricDefaultReporting ¶
func (c *PrometheusCollector) MetricDefaultReporting() bool
func (*PrometheusCollector) MetricReader ¶
func (c *PrometheusCollector) MetricReader(_ time.Duration) sdkmetric.Reader
MetricReader implements the interface to exporte metrics.
Click to show internal directories.
Click to hide internal directories.