patterns

package
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2026 License: AGPL-3.0 Imports: 23 Imported by: 0

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

Query runs the pattern query and returns the matched patterns.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL