internal/

directory
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

Directories

Path Synopsis
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.
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.
Package chstore implements ClickHouse-backed storage for Loki's log data.
Package chstore implements ClickHouse-backed storage for Loki's log data.
chtest
Package chtest provides throwaway ClickHouse databases for tests.
Package chtest provides throwaway ClickHouse databases for tests.
Package config loads and validates the runakefli YAML configuration file.
Package config loads and validates the runakefli YAML configuration file.
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.
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.
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.
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.
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.
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.
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).
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.
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.
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.

Jump to

Keyboard shortcuts

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