Documentation
¶
Index ¶
Constants ¶
View Source
const ( MetricTypeGauge = "Gauge" MetricTypeCounter = "Counter" MetricTypeHistogram = "Histogram" MetricTypeSummary = "Summary" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetricRecorder ¶
type MetricRecorder struct { Logger *zap.SugaredLogger Project string Cluster string Slice string Namespace string Subsystem string }
MetricRecorder provides a container with config parameters for the Prometheus Exporter
func (*MetricRecorder) Copy ¶
func (mr *MetricRecorder) Copy() *MetricRecorder
Copy returns a Provider that produces Prometheus metrics. Namespace and subsystem are applied to all produced metrics.
func (*MetricRecorder) RecordMetric ¶
func (mr *MetricRecorder) RecordMetric(ctx context.Context, m *Metric) error
RecordMetric records a metric to the Prometheus Exporter
type MetricType ¶
type MetricType string
Click to show internal directories.
Click to hide internal directories.