Documentation
¶
Overview ¶
Package patterns serves /loki/api/v1/patterns by running Loki's Drain over the stored rows at query time, configured and iterated like Loki's pattern ingester.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Querier ¶
type Querier struct {
Q *chstore.Querier
Limits drain.Limits
MaxLines int
Logger log.Logger // optional; when set, MaxLines truncation is logged
}
Querier answers pattern queries. MaxLines caps the rows read per query (default 1_000_000); rows past it are not trained (docs/divergences.md).
func (*Querier) Query ¶
func (p *Querier) Query(ctx context.Context, req *logproto.QueryPatternsRequest) (*logproto.QueryPatternsResponse, error)
Query runs the pattern query and returns the matched patterns.
Click to show internal directories.
Click to hide internal directories.