Directories
¶
| Path | Synopsis |
|---|---|
|
clients
|
|
|
cmd/docker-driver
command
|
|
|
cmd/fluent-bit
command
|
|
|
cmd
|
|
|
chunks-inspect
command
|
|
|
dataobj-inspect
command
|
|
|
logcli
command
|
|
|
logline-util
command
Package main implements the logline-util CLI for inspecting and converting logline index files.
|
Package main implements the logline-util CLI for inspecting and converting logline index files. |
|
logql-analyzer
command
|
|
|
loki
command
|
|
|
loki-canary
command
|
|
|
lokitool
command
|
|
|
migrate
command
|
|
|
querytee
command
|
|
|
integration
|
|
|
pkg
|
|
|
bloomgateway
The bloom gateway is a component that can be run as a standalone microserivce target and provides capabilities for filtering ChunkRefs based on a given list of line filter expressions.
|
The bloom gateway is a component that can be run as a standalone microserivce target and provides capabilities for filtering ChunkRefs based on a given list of line filter expressions. |
|
columnar
Package columnar provides utilities for working with columnar in-memory arrays.
|
Package columnar provides utilities for working with columnar in-memory arrays. |
|
columnar/types
Package types describes a set of logical types that can be represented by an array or a scalar.
|
Package types describes a set of logical types that can be represented by an array or a scalar. |
|
compute
Package compute implements stateless computational operations over columnar data.
|
Package compute implements stateless computational operations over columnar data. |
|
dataobj
Package dataobj holds utilities for working with data objects.
|
Package dataobj holds utilities for working with data objects. |
|
dataobj/compaction/v2
Package compactionv2 plans K-way compaction from sections with inclusive ordering-key bounds.
|
Package compactionv2 plans K-way compaction from sections with inclusive ordering-key bounds. |
|
dataobj/index/indexobj
Package indexobj provides tooling for creating index-oriented data objects.
|
Package indexobj provides tooling for creating index-oriented data objects. |
|
dataobj/internal/arrowconv
Package arrowconv provides helper utilities for converting between Arrow and dataset values.
|
Package arrowconv provides helper utilities for converting between Arrow and dataset values. |
|
dataobj/internal/dataset
Package dataset contains utilities for working with datasets.
|
Package dataset contains utilities for working with datasets. |
|
dataobj/internal/result
Package result provides utilities for dealing with iterators that can fail during iteration.
|
Package result provides utilities for dealing with iterators that can fail during iteration. |
|
dataobj/internal/streamio
Package streamio defines interfaces shared by other packages for streaming binary data.
|
Package streamio defines interfaces shared by other packages for streaming binary data. |
|
dataobj/internal/util/bitmask
Package bitmask provides an API for creating and manipulating bitmasks of arbitrary length.
|
Package bitmask provides an API for creating and manipulating bitmasks of arbitrary length. |
|
dataobj/internal/util/bufpool
Package bufpool offers a pool of *bytes.Buffer objects that are placed into exponentially sized buckets.
|
Package bufpool offers a pool of *bytes.Buffer objects that are placed into exponentially sized buckets. |
|
dataobj/internal/util/protocodec
Package protocodec provides utilities for encoding and decoding protobuf messages into files.
|
Package protocodec provides utilities for encoding and decoding protobuf messages into files. |
|
dataobj/internal/util/rangeset
Package rangeset implements a half-open interval set [start, end).
|
Package rangeset implements a half-open interval set [start, end). |
|
dataobj/internal/util/sliceclear
Package sliceclear provides a way to clear and truncate the length of a slice.
|
Package sliceclear provides a way to clear and truncate the length of a slice. |
|
dataobj/internal/util/symbolizer
Package symbolizer provides a string interning mechanism to reduce memory usage by reusing identical strings.
|
Package symbolizer provides a string interning mechanism to reduce memory usage by reusing identical strings. |
|
dataobj/logsobj
Package logsobj provides tooling for creating logs-oriented data objects.
|
Package logsobj provides tooling for creating logs-oriented data objects. |
|
dataobj/objtest
Package objtest builds a data-object storage directory for testing: a bucket holding logs objects, the index objects that describe them, and the tables of contents a metastore.Metastore resolves through.
|
Package objtest builds a data-object storage directory for testing: a bucket holding logs objects, the index objects that describe them, and the tables of contents a metastore.Metastore resolves through. |
|
dataobj/sections
Package sections locates the sections of a data object that belong to one tenant.
|
Package sections locates the sections of a data object that belong to one tenant. |
|
dataobj/sections/internal/columnar
Package columnar provides a base implementation for sections which store columnar data using github.com/grafana/loki/v4/pkg/dataobj/internal/dataset.
|
Package columnar provides a base implementation for sections which store columnar data using github.com/grafana/loki/v4/pkg/dataobj/internal/dataset. |
|
dataobj/sections/logs
Package logs defines types used for the data object logs section.
|
Package logs defines types used for the data object logs section. |
|
dataobj/sections/pointers
Package pointers defines types used for the data object pointers section.
|
Package pointers defines types used for the data object pointers section. |
|
dataobj/sections/postings
Package postings defines types for the data object postings section.
|
Package postings defines types for the data object postings section. |
|
dataobj/sections/stats
Package stats defines types for the data object stats section.
|
Package stats defines types for the data object stats section. |
|
dataobj/sections/streams
Package streams defines types used for the data object streams section.
|
Package streams defines types used for the data object streams section. |
|
dataobj/sortmerge
Package sortmerge provides a k-way merge iterator over dataobj logs sections.
|
Package sortmerge provides a k-way merge iterator over dataobj logs sections. |
|
dataset/array
Package array defines the Array, which is a structured set of values stored in a dataset.
|
Package array defines the Array, which is a structured set of values stored in a dataset. |
|
dataset/buffer
Package buffer describes contigous regions of dataset memory.
|
Package buffer describes contigous regions of dataset memory. |
|
dataset/encoding
Package encoding defines shared types for dataset serialization formats.
|
Package encoding defines shared types for dataset serialization formats. |
|
dataset/encoding/wirecodec
Package wirecodec defines the wire format for datasets.
|
Package wirecodec defines the wire format for datasets. |
|
dataset/layout
Package layout defines the Layout, which groups [array.Array]s into a hierarhical structure.
|
Package layout defines the Layout, which groups [array.Array]s into a hierarhical structure. |
|
engine/compactor
Package compactor contains the dataobj compaction planner and worker service skeletons.
|
Package compactor contains the dataobj compaction planner and worker service skeletons. |
|
engine/compactor/internal/compactortest
Package compactortest provides object-backed compaction integration fixtures.
|
Package compactortest provides object-backed compaction integration fixtures. |
|
engine/internal/metrictimer
Package metrictimer provides a small helper for timing named operations.
|
Package metrictimer provides a small helper for timing named operations. |
|
engine/internal/obslock
Package obslock provides an observed sync.RWMutex that records how long callers wait to acquire a lock and how long they hold it.
|
Package obslock provides an observed sync.RWMutex that records how long callers wait to acquire a lock and how long they hold it. |
|
engine/internal/proto/ulid
Package ulid provides a ULID implementation.
|
Package ulid provides a ULID implementation. |
|
engine/internal/scheduler
Package scheduler provides an implementation of workflow.Runner that works by scheduling tasks to be executed by a set of workers.
|
Package scheduler provides an implementation of workflow.Runner that works by scheduling tasks to be executed by a set of workers. |
|
engine/internal/scheduler/schedulerstat
Package schedulerstat declares scheduler-recorded per-task observation statistics.
|
Package schedulerstat declares scheduler-recorded per-task observation statistics. |
|
engine/internal/scheduler/wire
Package wire provides the wire protocol for how peers scheduler peers communicate.
|
Package wire provides the wire protocol for how peers scheduler peers communicate. |
|
engine/internal/util/dag
Package dag provides utilities for working with directed acyclic graphs (DAGs).
|
Package dag provides utilities for working with directed acyclic graphs (DAGs). |
|
engine/internal/util/ewma
Package ewma provides an implementation of an exponentially weighted moving average (EWMA) that can be reported as a Prometheus metric.
|
Package ewma provides an implementation of an exponentially weighted moving average (EWMA) that can be reported as a Prometheus metric. |
|
engine/internal/util/queue/fair
Package fair implements a Hierarchical Fair Queue (HFQ), providing balanced service across a hierarchy of queues.
|
Package fair implements a Hierarchical Fair Queue (HFQ), providing balanced service across a hierarchy of queues. |
|
engine/internal/worker
Package worker provides a mechanism to connect to the [scheduler] for executing tasks.
|
Package worker provides a mechanism to connect to the [scheduler] for executing tasks. |
|
engine/internal/worker/workerstat
Package workerstat declares worker-recorded per-task observation statistics.
|
Package workerstat declares worker-recorded per-task observation statistics. |
|
engine/internal/workflow
Package workflow defines how to represent physical plans as distributed workflows.
|
Package workflow defines how to represent physical plans as distributed workflows. |
|
expr
Package expr provides utilities for evaluating expressions against columnar.Datum values with a selection vector.
|
Package expr provides utilities for evaluating expressions against columnar.Datum values with a selection vector. |
|
ingester/index
originally from https://github.com/cortexproject/cortex/blob/868898a2921c662dcd4f90683e8b95c927a8edd8/pkg/ingester/index/index.go but modified to support sharding queries.
|
originally from https://github.com/cortexproject/cortex/blob/868898a2921c662dcd4f90683e8b95c927a8edd8/pkg/ingester/index/index.go but modified to support sharding queries. |
|
kafka
Package kafka provides encoding and decoding functionality for Loki's Kafka integration.
|
Package kafka provides encoding and decoding functionality for Loki's Kafka integration. |
|
limits/client
Package client provides gRPC client implementation for limits service.
|
Package client provides gRPC client implementation for limits service. |
|
limits/frontend
Package frontend contains provides a frontend service for ingest limits.
|
Package frontend contains provides a frontend service for ingest limits. |
|
limits/frontend/client
Package client provides gRPC client implementation for limits-frontend.
|
Package client provides gRPC client implementation for limits-frontend. |
|
loghttp/push/otlpattrs
Package otlpattrs observes how much of an OTLP push request's ingested volume comes from resource and scope attributes being expanded onto every log record, and reports it as sampled structured logs.
|
Package otlpattrs observes how much of an OTLP push request's ingested volume comes from resource and scope attributes being expanded onto every log record, and reports it as sampled structured logs. |
|
logline/config
Package config holds the top-level logline configuration.
|
Package config holds the top-level logline configuration. |
|
logline/format
Package format defines the shared vocabulary of the on-disk index format: the term iterator contract, postings bitmaps, per-document metadata, and the postings encodings.
|
Package format defines the shared vocabulary of the on-disk index format: the term iterator contract, postings bitmaps, per-document metadata, and the postings encodings. |
|
logline/internal/v5
Package v5 is the in-development Logline index.
|
Package v5 is the in-development Logline index. |
|
logline/regexliteral
Package regexliteral finds the literal substrings that every match of a regular expression must contain, so they can be looked up in a logline index.
|
Package regexliteral finds the literal substrings that every match of a regular expression must contain, so they can be looked up in a logline index. |
|
logql
Fork of https://raw.githubusercontent.com/cockroachdb/cockroach/065aa74206c9ec9bcd8b9ea2a6c62ddde8aab0a6/pkg/util/treeprinter/tree_printer.go
|
Fork of https://raw.githubusercontent.com/cockroachdb/cockroach/065aa74206c9ec9bcd8b9ea2a6c62ddde8aab0a6/pkg/util/treeprinter/tree_printer.go |
|
logql/internal/logqlbench/report
command
Command report turns `go test -bench BenchmarkLogQLMetricQueries` output into the markdown tables pasted into a PR description.
|
Command report turns `go test -bench BenchmarkLogQLMetricQueries` output into the markdown tables pasted into a PR description. |
|
logql/log/logfmt
Adapted from https://github.com/go-logfmt/logfmt/ but []byte as parameter instead Original license is MIT.
|
Adapted from https://github.com/go-logfmt/logfmt/ but []byte as parameter instead Original license is MIT. |
|
logql/syntax
This file is taken from the golang text/scanner package so `bufLen` can be set to `maxInputSize`.
|
This file is taken from the golang text/scanner package so `bufLen` can be set to `maxInputSize`. |
|
logqlmodel/metadata
Package metadata provides primitives for recording metadata across the query path.
|
Package metadata provides primitives for recording metadata across the query path. |
|
logqlmodel/stats
Package stats provides primitives for recording metrics across the query path.
|
Package stats provides primitives for recording metrics across the query path. |
|
memory
Package memory provides support for allocating and reusing contiguous [Region]s of memory.
|
Package memory provides support for allocating and reusing contiguous [Region]s of memory. |
|
memory/internal/memalign
Package memalign provides utilities for aligning memory.
|
Package memalign provides utilities for aligning memory. |
|
memory/internal/unsafecast
Package unsafecast provides utilties for performing unsafe type casts.
|
Package unsafecast provides utilties for performing unsafe type casts. |
|
querier/queryrange
Package contains methods to marshal logqmodel types to queryrange Protobuf types.
|
Package contains methods to marshal logqmodel types to queryrange Protobuf types. |
|
ruler/storage/cleaner
This directory was copied and adapted from https://github.com/grafana/agent/tree/main/pkg/metrics.
|
This directory was copied and adapted from https://github.com/grafana/agent/tree/main/pkg/metrics. |
|
ruler/storage/instance
This directory was copied and adapted from https://github.com/grafana/agent/tree/main/pkg/metrics.
|
This directory was copied and adapted from https://github.com/grafana/agent/tree/main/pkg/metrics. |
|
ruler/storage/util
This directory was copied and adapted from https://github.com/grafana/agent/tree/main/pkg/metrics.
|
This directory was copied and adapted from https://github.com/grafana/agent/tree/main/pkg/metrics. |
|
ruler/storage/wal
This directory was copied and adapted from https://github.com/grafana/agent/tree/main/pkg/metrics.
|
This directory was copied and adapted from https://github.com/grafana/agent/tree/main/pkg/metrics. |
|
scratch
Package scratch provides an abstraction for scratch space.
|
Package scratch provides an abstraction for scratch space. |
|
storage/stores/shipper/bloomshipper/config
package bloomshipperconfig resides in its own package to prevent circular imports with storage package
|
package bloomshipperconfig resides in its own package to prevent circular imports with storage package |
|
util/arrowtest
Package arrowtest provides utilities for testing Arrow records.
|
Package arrowtest provides utilities for testing Arrow records. |
|
util/fakeauth
Package fakeauth provides middlewares that inject a tenant ID so the rest of the code can continue to be multi-tenant even when auth is disabled.
|
Package fakeauth provides middlewares that inject a tenant ID so the rest of the code can continue to be multi-tenant even when auth is disabled. |
|
util/marshal
Package marshal converts internal objects to loghttp model objects.
|
Package marshal converts internal objects to loghttp model objects. |
|
util/marshal/legacy
Package marshal converts internal objects to loghttp model objects.
|
Package marshal converts internal objects to loghttp model objects. |
|
util/rangeio
Package rangeio provides basic interfaces and utilities for reading ranges of data.
|
Package rangeio provides basic interfaces and utilities for reading ranges of data. |
|
xcap
Package xcap provides a utility to capture statistical information about the lifetime of a query.
|
Package xcap provides a utility to capture statistical information about the lifetime of a query. |
|
tools
|
|
|
bloom/filter-test
command
|
|
|
bloom/inspector
command
|
|
|
dataobj-locality
command
|
|
|
dataobj-sort
command
|
|
|
deprecated-config-checker
command
|
|
|
doc-generator
command
|
|
|
querycomparator
command
|
|
|
stream-generator
command
|
|
|
stream-generator/distributor/client
Package client provides gRPC client implementation for distributor service.
|
Package client provides gRPC client implementation for distributor service. |
|
tsdb/index-analyzer
command
|
|
|
tsdb/migrate-versions
command
|
Click to show internal directories.
Click to hide internal directories.
