Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
Write(ctx context.Context, req *mimirpb.WriteRequest) error
}
Client provides Prometheus Remote Write API access functionality
func NewClient ¶
func NewClient(cfg Config, metricsRecorder Recorder, tripperware querymiddleware.Tripperware) (Client, error)
NewClient creates the default http implementation of the Client
type Config ¶
type Config struct { Endpoint string `yaml:"endpoint"` Timeout time.Duration `yaml:"timeout"` KeepAlive time.Duration `yaml:"keep_alive"` MaxIdleConns int `yaml:"max_idle_conns"` MaxConns int `yaml:"max_conns"` SkipLabelValidation bool `yaml:"skip_label_validation"` UserAgent string `yaml:"user_agent"` }
func (*Config) RegisterFlags ¶
RegisterFlags implements flagext.Registerer
type MeasuredClient ¶
type MeasuredClient struct {
// contains filtered or unexported fields
}
func (*MeasuredClient) Write ¶
func (mc *MeasuredClient) Write(ctx context.Context, req *mimirpb.WriteRequest) (err error)
type Recorder ¶
type Recorder interface {
// contains filtered or unexported methods
}
func NewRecorder ¶
func NewRecorder(prefix string, reg prometheus.Registerer) Recorder
NewRecorder returns a new Prometheus metrics Recorder. It ensures that the ingester metrics are properly registered.
Click to show internal directories.
Click to hide internal directories.