Roadmap
Current API scope and remaining route gaps​
The proxy serves Loki's read API; write endpoints such as push are not supported (ingest goes to VictoriaLogs directly). Optional deletion management is outside read API scores: its opt-in handler runs Loki's create and cancel as VictoriaLogs delete tasks, and answers Loki's 500 for the list and for queries a VictoriaLogs filter cannot select. The alerting-rules read API remains in scope, including /api/prom/rules* for vmalert. The deprecated read aliases /api/prom/label, /api/prom/label/{name}/values, /api/prom/query, /api/prom/series and /api/prom/tail are unsupported and excluded from totals, gaps and compatibility scores (owner 2026-10-31); use the corresponding /loki/api/v1 routes. No other write endpoint is planned.
| Read API signal | Registry evidence |
|---|---|
| Routed endpoints | 25/27 |
| Endpoints with Loki differential tests | 19/27 |
Endpoints declared proven | 12/27 |
Routing, linked tests and declared proof are different signals; none means every LogQL shape or every backend version is compatible. See the coverage map and ranked differences.
Read routes without an implementation:
| Route | Current scope |
|---|---|
/loki/api/v1/cache/generation_numbers | Not implemented |
/loki/api/v1/index/shards | Optional planner gap; low priority, counted in scores |
index/shards is not required by the pinned Grafana/Drilldown request paths
or by proxy peer-cache lookup.
cache/generation_numbers is not implemented; manual cache flush and
eviction do not provide a distributed deletion generation.
Alerting is not finished. The proxy does not evaluate alerting or recording rules and
does not implement Loki's ruler API. What ships today is a read bridge: the rules routes
(/loki/api/v1/rules, /api/prom/rules, /prometheus/api/v1/rules, with namespace and
group lookups) and the alerts routes pass reads through to a vmalert configured with
-ruler-backend / -alerts-backend, and vmalert evaluates its own rules against
VictoriaLogs. Everything beyond that bridge (Loki-compatible rule evaluation, rule writes and
full ruler parity) is planned work, not shipped.
The statuses above describe this tree's implementation and linked evidence. An open pull request does not count as shipped support. Detailed semantic and visual differences remain in Known Issues and the ranked gap register.
Completed​
-
LogQL -> LogsQL translation (stream selectors, line filters, parsers, metric queries)
-
Response format conversion (VL NDJSON -> Loki streams, VL stats -> Prometheus matrix/vector)
-
Request coalescing (singleflight: N queries -> 1 backend request)
-
Rate limiting (per-client token bucket + global concurrency)
-
Circuit breaker (closed->open->half-open with built-in defaults)
-
Query normalization (sort matchers, collapse whitespace for cache keys)
-
Tiered cache (per-endpoint TTLs, L1 in-memory, L2 bbolt on-disk)
-
Multitenancy (string->int tenant mapping, numeric passthrough, SIGHUP reload)
-
WebSocket tail (
/loki/api/v1/tail-> VL NDJSON streaming) -
L2 disk cache with LRU capacity, S2/zstd/gzip/raw codecs and bounded write batching (encryption via cloud provider)
-
OTLP telemetry push (gzip/zstd compression, TLS)
-
HTTP hardening (timeouts, body limits, security headers)
-
Index stats via VL
/select/logsql/hits; volume and volume_range in bytes via VLsum_len(_msg)stats -
Query fingerprinting + analytics (
/debug/queries) -
Graceful HTTP server shutdown (SIGTERM/SIGINT)
-
Grafana datasource config (maxLines, basic auth, backend timeout, TLS, header/cookie forwarding, optional listener mTLS)
-
Derived fields (regex extraction for trace linking)
-
Chunked streaming (Transfer-Encoding: chunked for large results)
-
OTel label translation (bidirectional dot<->underscore for 50+ fields)
-
Custom field remapping (
-field-mapping) -
Per-tenant metrics (request rate, latency, error rate by X-Scope-OrgID)
-
Client error breakdown (bad_request, rate_limited, not_found, body_too_large)
-
Grafana dashboard & alerting rules (Helm PrometheusRule CR)
-
Write safeguard (
/pushblocked with 405) -
| decolorizeproxy-side ANSI stripping -
| ip("CIDR")proxy-side IP range filtering -
| line_formatfull Go templates -
pprof, SIGHUP reload, and rate-limit response headers
-
Per-endpoint cache/backend metrics, CB state gauge
-
Fuzz testing (1.2M+ executions, no panics)
-
Nested binary metric queries (
sum(rate(...)) / sum(rate(...))) -
/loki/api/v1/patternsproxy-side Loki-style Drain tokenizer/clustering extraction -
directionparameter (forward/backward sort) -
quantile_over_time()mapped to VL quantile -
label_formatmulti-rename (comma-separated) -
Extended binary ops (
%,^,==,!=,>,<,>=,<=) -
Datasource compatibility handlers (
/rules,/alerts,/config) -
Playwright UI e2e tests
-
/tailbrowser and ops coverage (origin policy, native fallback, ingress recovery, upstream401/403/5xxparity) -
Multi-tenant Explore and Logs Drilldown coverage for
__tenant_id__, labels, series, and detected field/label browser/resource surfaces -
without()clause detection and clear error message -
IsScalarsupports negative and scientific notation -
Circuit breaker half-open metrics fix
-
Tenant map reload race condition fix
-
— removed: Loki has nogroup()outer aggregationgroup(), the proxy answers its 400 parse error -
label_replace()— proxy post-processing via marker suffix; Prometheus no-match semantics (v1.21.x) -
— removed: Loki has nolabel_join()label_join(), the proxy answers its 400 parse error -
count_values()— not LogQL (Loki v3.7.7 has no such aggregation); rejected with Loki's parse error, including its position -
Circuit breaker sliding-window failure counting — 30s window replaces consecutive-failure model; sporadic slow-query resets no longer open the breaker (v1.18.0)
-
Bare label matcher error —
app="value"(missing braces) returns HTTP 400 with descriptive Loki-style parse error instead of silently emitting malformed VL syntax (v1.20.0) -
detected_levelinference from_msgcontent — proxy infers level from JSON/logfmt log body when not present in stream labels; Drilldown volume API gains automatic parser unpacking (v1.20.0) -
Deterministic log stream ordering for multi-window queries — streams sorted by canonical key, per-stream values sorted by timestamp before response emission (v1.21.1)
-
boolmodifier on comparison operators — stripped at translation (applyOp returns 1/0 for all comparisons) -
Field-specific parser
| json field1, field2/| logfmt field1, field2— maps to full unpack (VL extracts all fields) -
Backslash-escaped quotes in stream selectors — findMatchingBrace handles
\" -
Binary expression detection before metric query (fixes
rate(...) > 0being misrouted) -
Peer cache design doc + headless service Helm template
-
Performance-focused optimization pass (buffer pools, sync.Pool, connection-pool tuning, cache hot-path benchmarks)
-
Complete Helm chart: 11 templates, GOMEMLIMIT auto-calc, HTTPRoute
-
Broad test suite, CI bench job, and regression gates
-
Coverage and quality-gate reinforcement for runtime, middleware, cache, and proxy-path tests
-
Tier0 compatibility-edge cache with bounded memory budget, safe GET-only guardrails, and reload invalidation
-
Fleet shadow-copy validation for 3-peer cache reuse plus Tier0/fleet micro-benchmarks
-
Named tenant routing enhancements — YAML/JSON tenant map file with mtime-polling hot-reload and SIGHUP; label-based tenant isolation (
-tenant-labelinjects{field="orgID"}into VL queries);-forward-tenant-headerpassthrough for Lakehouse; uint32 validation at load time; LogsQL injection prevention via backslash-before-quote escaping (v1.35.0) -
Exhaustive LogQL parity machine — Loki-vs-proxy cases covering stream selectors, line filters, parsers, metric queries, binary ops, subqueries, offset modifier, unwrap unit conversion, field-specific parsers, named regexp groups, vector matching, complex pipelines, and edge cases; LogQL syntax validator for Loki error parity (v1.36.0). Pass counts reported before v1.68.0 compared against an empty Loki window because of a timestamp defect in the test helper; current measured results are in Real-window compatibility findings
-
| drop field=valuematcher semantics — proxy applies conditional field removal viaParseDropConditions+applyDropConditionspost-processing; the value predicate is now respected (previously the field was always dropped regardless of value) (v1.36.1) -
structuredMetadata vs parsedFields classification — proxy correctly classifies fields by comparing against
_msgJSON content, preventing structured metadata from being misclassified as parsedFields (v1.36.0) -
Non-OTel structured metadata e2e tests — push tests for plain structured metadata (non-OTel) added to log-generator; default
label-stylechanged tounderscoresandmetadata-field-modetotranslated(v1.36.0) -
Config examples folder (
examples/) — runnable env files, tenant map YAML, Docker Compose stack, Grafana datasource provisioning, systemd unit, Kubernetes ConfigMap with full annotated flag/env reference
Recently Shipped​
Shipped from 2026-11-11 (2.130.0) to 2.336.0; the CHANGELOG has each entry in full.
-
Identical read requests share one run on every cached read route, and failed answers are held per class and per replica (
-error-cache-*), so a refreshing dashboard does not ask a failing VictoriaLogs on every refresh (2.335.0) -
Plan-time Loki rejections: every request Loki refuses with a 4xx from the request alone, and a tail handshake that fails, are refused before any VictoriaLogs call (2.336.0)
-
One canonical spelling of a metric query before any handler reads it (blanks, comments and redundant parentheses), so equal queries share cache entries and requests (2.336.0)
-
sum,max,minandavgoveravg_over_time,max_over_time,min_over_time,stddev_over_timeandstdvar_over_timeafter| jsonor| logfmtread Loki's series onquery_rangewhen the range is longer than the step (2.334.0; two related differences remain open in the registry) -
Loki-exact multi-tenancy and auth: tenancy off by default as with
auth_enabled: false, Loki's answers for the tenant header and caller credentials recorded from Loki (2.171.0 and later) -
The delete API runs Loki's create and cancel as VictoriaLogs delete tasks, behind its own token (2.171.0, 2.330.0)
-
Per-tenant, per-user and per-Grafana-app attribution in the logs, per-tenant VictoriaLogs cost metrics and
/debug/queries(2.172.0) -
A label named like
_TIMEis written so that VictoriaLogs can parse its own print of the query and no longer restarts (2.141.0), and a LogQL query with certain non-ASCII characters is rejected with Loki's 400 instead of stalling the parser, which is now held to a time and memory bound by a fuzz target (2.150.0) -
Loki's default limits:
max_query_length721h(2.270.0) and 100 entries for a range log query that sends nolimit(2.280.0) -
Populated-query parity corrections — Loki-consistent IP line-filter validation, implicit many-to-one rejection, quantile grouping, regexp capture names, tumbling-bucket timestamps, step-aligned binary joins,
unwrap duration()/bytes()on bare parsers, second-precision scalar timestamps, and bounded raw metric collection; measured findings replace the earlier 100% compatibility claim (1.68.0) -
Security hardening and bounded execution — tenant-scoped cache and coalescer keys, global-tenant wildcard denial in label-routing mode, 4 KiB tail client messages, subquery/
line_format/binary evaluation budgets, per-timestamptopk/bottomk, and exact final-response cache keys (1.67.0) -
Backend error redaction on client-visible error paths and transport errors (1.58.1, completed in 1.62.0)
-
rules-migratevalidates rule expressions with the typed LogQL AST validator before translation; malformed drop/keep matchers return HTTP 400 onquery/query_range(1.61.0) -
Live-tail Explore freshness bypass for near-now cached
query_range/queryresponses (1.59.0) -
Ring-wide cache purge —
POST /admin/cache/flush?peers=1fans out to every peer via the token-protected/_cache/purge(1.58.0) -
L0 hot-key index exposed as a cache tier (
tier="l0") in cache metrics (1.57.0) -
Secure-by-default runtime — loopback admin listener,
/metricsoff by default with optional-metrics-listen, required-peer-auth-tokenfor peer cache, redacted debug query logging, surgical chart/procmounts (1.56.2) -
Drilldown long-range histograms through VictoriaLogs
/hitswith top-N series, and Loki-style partial results (warnings) for Grafana-sourced stats failures (1.55.0) -
-translate-otel-attributesflag gating the OTel underscore-to-dot query rewrite (1.54.0) -
-default-max-query-length,-max-stats-query-seriesand-stats-query-range-concurrencylimits (1.53.0) -
Peer cache
srvandhttpdiscovery modes,/_cache/hasand/_cache/peersendpoints, and peer-first label warmup with-warmup-max-jitter(1.50.0) -
| keep field=valuestream label mutation — matcher form now applies to stream labels in addition to structured metadata and parsed fields (1.51.0) -
Parallel multi-tenant fanout — goroutine-per-tenant dispatch with
sync.WaitGroup(1.37.1) -
Bounded backward hot+cold merge — ring-buffer reverse with bounded memory (
maxRingSize=5000) (1.37.1) -
Browser-level multi-tenant Explore and Drilldown regression scenarios for UI combinations whose API parity was already covered
-
on()/ignoring()/group_left()/group_right()vector matching (0.24.0) -
@timestamp modifier (0.20.0) -
unwrap duration()/bytes()unit conversion (0.21.0) -
Subquery syntax
rate(...)[1h:5m]— proxy-side evaluation (0.23.0); later removed for Loki parity: LogQL has no subquery grammar, so these queries now return Loki's HTTP 400 -
LRU cache eviction (0.21.0)
-
Peer cache Phase 1 implementation (DNS discovery + peer fetch) (0.24.0)
-
System metrics in /metrics (CPU, memory, IO, network via /proc) (0.20.0)
-
Native VL stream selector optimization for known
_stream_fields(0.23.0) -
PR quality report workflow with coverage, compatibility, and performance delta comments (0.26.0)
-
Add bounded peer hot-read-ahead (top-N hot keys with per-interval key/byte/concurrency budgets, jitter, and tenant fairness) to improve non-owner local hit rates without causing peer traffic storms (1.1.0)
-
Add regression/perf suite for collapse forwarding and hot-read-ahead interactions (owner/non-owner paths, coalescing efficiency, backend offload delta) (1.1.0)
-
Promote compose-backed e2e fleet cache smoke coverage into required GitHub Actions for pull requests and post-merge
mainruns (0.27.7) -
fastjson + streaming rewrite of stats hot path — eliminate per-entry heap allocations in
collectRangeMetricSamplesand stats response assembly (1.31.0–1.31.3) -
stats_query_rangefast path for grouped and ungrouped metric queries —sum by (...)count/rate/bytes queries bypass raw log scan; heavy workload throughput 4× vs cold proxy baseline (1.31.3) -
Cold storage backend routing — split queries across hot VL and cold Victoria Lakehouse by configurable time boundary (1.28.0)
-
allocation pool pass — gzip reader pool, gob buffer pool, aggregator scalar eliminations, patternJoinBuilderPool, logfmt single-pass scanning, series/stats buffer pooling (1.31.2–1.31.3)
-
Parser-stage guard removal from fast path —
rate/count_over_time/bytes_rate/bytes_over_timewith| json/| logfmtuse VL native stats for tumbling windows (1.39.0)
Committed — decided and in progress​
- Alerting and recording rules compatible with Loki's ruler. Not ready: the next big area, started once the query path is 100% ready (see Production readiness for what remains on the query path). Today only the rules and alerts read bridge to vmalert ships (see Rules And Alerts Migration).
Everything below is decided work with its direction already proven in the codebase — no exploratory items are listed here.
- Tighten remaining merged-tenant Drilldown metadata accuracy for field and label cardinality surfaces
- Convert more upstream Loki, Logs Drilldown, and VictoriaLogs edge cases into regression tests (ongoing; measured gaps are tracked in Real-window compatibility findings)
- Migrate remaining string-based translation paths to the typed
logsqlAST builder and rolllogql.Translateinto the proxy handlers — the typed translation path (internal/logql/translate.go) is implemented and tested; the handler call-site migration is the remaining step