Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
runakefli
command
Command runakefli serves Loki's HTTP API on top of ClickHouse.
|
Command runakefli serves Loki's HTTP API on top of ClickHouse. |
|
internal
|
|
|
api
Package api provides the HTTP API handlers for runakefli, serving Loki's endpoints (push, query, series, labels, tail, deletes, rules) over ClickHouse.
|
Package api provides the HTTP API handlers for runakefli, serving Loki's endpoints (push, query, series, labels, tail, deletes, rules) over ClickHouse. |
|
build
Package build holds runakefli's build-time version information, following Loki's pkg/util/build: the variables are set from -ldflags (Makefile) and exposed so the binary reports them.
|
Package build holds runakefli's build-time version information, following Loki's pkg/util/build: the variables are set from -ldflags (Makefile) and exposed so the binary reports them. |
|
chstore
Package chstore implements ClickHouse-backed storage for Loki's log data.
|
Package chstore implements ClickHouse-backed storage for Loki's log data. |
|
chstore/chtest
Package chtest provides throwaway ClickHouse databases for tests.
|
Package chtest provides throwaway ClickHouse databases for tests. |
|
config
Package config loads and validates the runakefli YAML configuration file.
|
Package config loads and validates the runakefli YAML configuration file. |
|
deletes
Package deletes implements Loki's delete API: requests are stored in ClickHouse and applied at query time by Loki's own filtering pipeline.
|
Package deletes implements Loki's delete API: requests are stored in ClickHouse and applied at query time by Loki's own filtering pipeline. |
|
ingest
Package ingest handles Loki push requests, validating and writing them to ClickHouse via the chstore.Writer.
|
Package ingest handles Loki push requests, validating and writing them to ClickHouse via the chstore.Writer. |
|
ingest/distcopy
Copied from grafana/loki@39c256e5 pkg/distributor/distributor.go (processStreamEntries, normalizeMetadataGroup, normalizeStructuredMetadata, parseStreamLabels, truncateLines, missingEnforcedLabels, metadataGroup, newMetadataGroup, duplicateTimestampTracker and the push request loop); modifications: methods turned into functions on a small preparer; rate limiting, writeFailuresManager, metrics, usage tracker, ingester/ring and Kafka paths removed; labelCache inlined; processStreamEntries takes a context; Prepare returns the kept bytes/lines for rate limiting (Loki's rlBuckets accounting, tenant bucket only); ReportDiscarded records the rate-limited discard metrics.
|
Copied from grafana/loki@39c256e5 pkg/distributor/distributor.go (processStreamEntries, normalizeMetadataGroup, normalizeStructuredMetadata, parseStreamLabels, truncateLines, missingEnforcedLabels, metadataGroup, newMetadataGroup, duplicateTimestampTracker and the push request loop); modifications: methods turned into functions on a small preparer; rate limiting, writeFailuresManager, metrics, usage tracker, ingester/ring and Kafka paths removed; labelCache inlined; processStreamEntries takes a context; Prepare returns the kept bytes/lines for rate limiting (Loki's rlBuckets accounting, tenant bucket only); ReportDiscarded records the rate-limited discard metrics. |
|
logging
Package logging builds runakefli's go-kit logger from Loki's server.log_level and server.log_format keys.
|
Package logging builds runakefli's go-kit logger from Loki's server.log_level and server.log_format keys. |
|
multitenant
Package multitenant lets a single runakefli instance answer queries whose X-Scope-OrgID names several tenants ("a|b"): one sub-query per tenant, each result labelled with __tenant_id__, merged the way Loki's multi-tenant querier does.
|
Package multitenant lets a single runakefli instance answer queries whose X-Scope-OrgID names several tenants ("a|b"): one sub-query per tenant, each result labelled with __tenant_id__, merged the way Loki's multi-tenant querier does. |
|
patterns
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.
|
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. |
|
retention
Package retention applies the current retention_period and retention_stream to the stored data (Loki's compactor.retention_enabled).
|
Package retention applies the current retention_period and retention_stream to the stored data (Loki's compactor.retention_enabled). |
|
ruler
Package ruler runs Loki's ruler (rule storage, evaluation, alert notification, recording-rule remote write and the rules HTTP API) over runakefli's query engine.
|
Package ruler runs Loki's ruler (rule storage, evaluation, alert notification, recording-rule remote write and the rules HTTP API) over runakefli's query engine. |
|
server
Package server wires runakefli's components together and runs them until the context ends, then shuts them down in order: HTTP (draining in-flight requests), the ruler, the background loops and the ClickHouse connection.
|
Package server wires runakefli's components together and runs them until the context ends, then shuts them down in order: HTTP (draining in-flight requests), the ruler, the background loops and the ClickHouse connection. |
|
tail
Package tail adapts ClickHouse to Loki's tail.Querier: one in-process "ingester" whose tail client polls for new rows.
|
Package tail adapts ClickHouse to Loki's tail.Querier: one in-process "ingester" whose tail client polls for new rows. |
|
tools
|
|
|
extract-corpus
command
extract-corpus extracts LogQL queries from Loki's test files and documentation for use as a test corpus.
|
extract-corpus extracts LogQL queries from Loki's test files and documentation for use as a test corpus. |
Click to show internal directories.
Click to hide internal directories.