Versions in this module Expand all Collapse all v0 v0.5.1 May 31, 2021 v0.5.0 May 30, 2021 Changes in this version + const DefaultRemoteWrite + var DefaultConfig = Config + type Client interface + WriteProto func(ctx context.Context, req *prompb.WriteRequest, opts WriteOptions) (WriteResult, WriteError) + WriteTimeSeries func(ctx context.Context, ts TSList, opts WriteOptions) (WriteResult, WriteError) + func NewClient(c Config) (Client, error) + type Config struct + HTTPClient *http.Client + HTTPClientTimeout time.Duration + UserAgent string + WriteURL string + func NewConfig(opts ...ConfigOption) Config + type ConfigOption func(*Config) + func HTTPClientOption(httpClient *http.Client) ConfigOption + func HTTPClientTimeoutOption(httpClientTimeout time.Duration) ConfigOption + func UserAgent(userAgent string) ConfigOption + func WriteURLOption(writeURL string) ConfigOption + type Datapoint struct + Timestamp int64 + Value float64 + type Label struct + Name string + Value string + type TSList []TimeSeries + type TimeSeries struct + Datapoint Datapoint + Labels []Label + type WriteError interface + StatusCode func() int + type WriteOptions struct + Headers map[string]string + type WriteResult struct + StatusCode int