Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadProgressFile ¶
ReadPRogressFile reads the progress file in the given directory and returns the saved offset.
func SaveProgressFile ¶
SaveProgressFile saves a progress file with the given offset in directory.
Types ¶
type Appender ¶
type Appender interface {
Append(ctx context.Context, hash uint64, s *metric_pb.ResourceMetrics) error
}
Appender appends a time series with exactly one data point. A hash for the series (but not the data point) must be provided. The client may cache the computed hash more easily, which is why its part of the call and not done by the Appender's implementation.
type MetadataGetter ¶
type PrometheusReader ¶
type PrometheusReader struct {
// contains filtered or unexported fields
}
func NewPrometheusReader ¶
func NewPrometheusReader( logger log.Logger, walDirectory string, tailer *tail.Tailer, filters [][]*labels.Matcher, metricRenames map[string]string, targetGetter TargetGetter, metadataGetter MetadataGetter, appender Appender, metricsPrefix string, maxPointAge time.Duration, ) *PrometheusReader
NewProemtheusReader is the PrometheusReader constructor
Click to show internal directories.
Click to hide internal directories.