Documentation
¶
Index ¶
- func CreateResource(job, instance string, serviceDiscoveryLabels labels.Labels) pcommon.Resource
- func NewAppendable(sink consumer.Metrics, set receiver.Settings, gcInterval time.Duration, ...) (storage.Appendable, error)
- func NewZapToGokitLogAdapter(logger *zap.Logger) gokitLog.Logger
- type JobsMap
- type MetricsAdjuster
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateResource ¶ added in v0.59.0
CreateResource creates the resource data added to OTLP payloads.
func NewAppendable ¶ added in v0.51.0
func NewAppendable( sink consumer.Metrics, set receiver.Settings, gcInterval time.Duration, useStartTimeMetric bool, startTimeMetricRegex *regexp.Regexp, useCreatedMetric bool, enableNativeHistograms bool, externalLabels labels.Labels, trimSuffixes bool, ) (storage.Appendable, error)
NewAppendable returns a storage.Appendable instance that emits metrics to the sink.
Types ¶
type JobsMap ¶
JobsMap maps from a job instance to a map of timeseries instances for the job.
func NewJobsMap ¶
NewJobsMap creates a new (empty) JobsMap.
type MetricsAdjuster ¶
func NewInitialPointAdjuster ¶ added in v0.60.0
func NewInitialPointAdjuster(logger *zap.Logger, gcInterval time.Duration, useCreatedMetric bool) MetricsAdjuster
NewInitialPointAdjuster returns a new MetricsAdjuster that adjust metrics' start times based on the initial received points.
func NewStartTimeMetricAdjuster ¶ added in v0.60.0
func NewStartTimeMetricAdjuster(logger *zap.Logger, startTimeMetricRegex *regexp.Regexp, gcInterval time.Duration) MetricsAdjuster
NewStartTimeMetricAdjuster returns a new MetricsAdjuster that adjust metrics' start times based on a start time metric.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.