Versions in this module Expand all Collapse all v0 v0.0.1 Dec 24, 2017 Changes in this version + type Blackhole struct + func NewBlackhole() *Blackhole + func (m *Blackhole) Collect(c chan<- prometheus.Metric) + func (m *Blackhole) Describe(c chan<- *prometheus.Desc) + func (m *Blackhole) Read(ctx context.Context, queries []Query) (*prompb.ReadResponse, error) + func (m *Blackhole) Write(ctx context.Context, data *prompb.WriteRequest) error + type ClickHouse struct + func NewClickHouse(dsn string, database string, drop bool) (*ClickHouse, error) + func (ch *ClickHouse) Collect(c chan<- prometheus.Metric) + func (ch *ClickHouse) Describe(c chan<- *prometheus.Desc) + func (ch *ClickHouse) Read(ctx context.Context, queries []Query) (res *prompb.ReadResponse, err error) + func (ch *ClickHouse) Write(ctx context.Context, data *prompb.WriteRequest) (err error) + type MatchType int + const MatchEqual + const MatchNotEqual + const MatchNotRegexp + const MatchRegexp + func (m MatchType) String() string + type Matcher struct + Name string + Type MatchType + Value string + func (m Matcher) String() string + type Matchers []Matcher + func (ms Matchers) MatchLabels(labels []*prompb.Label) bool + func (ms Matchers) String() string + type Memory struct + func NewMemory() *Memory + func (m *Memory) Collect(c chan<- prometheus.Metric) + func (m *Memory) Describe(c chan<- *prometheus.Desc) + func (m *Memory) Read(ctx context.Context, queries []Query) (*prompb.ReadResponse, error) + func (m *Memory) Write(ctx context.Context, data *prompb.WriteRequest) error + type Query struct + End model.Time + Matchers Matchers + Start model.Time + func (q Query) String() string + type Storage interface + Read func(context.Context, []Query) (*prompb.ReadResponse, error) + Write func(context.Context, *prompb.WriteRequest) error