---
title: "Introducing Lightstep UQL to PromQL Translator"
description: "With Lightstep sunsetting, Zalando built and open-sourced a Go translator that deterministically converts Lightstep UQL queries into PromQL."
url: "https://swe.quest/articles/introducing-lightstep-uql-to-promql-translator-0636777f4f50aad7"
canonical: "https://engineering.zalando.com/posts/2026/06/introducing-lightstep-uql-to-promql-translator.html"
source: "Zalando Engineering"
published: "2026-06-07"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 3
tags: ["observability","go","open-source","refactoring"]
---

# Introducing Lightstep UQL to PromQL Translator

A post on [Zalando Engineering](https://swe.quest/sources/zalando.md), published 2026-06-07, 3 min read, Announcement. Original: [https://engineering.zalando.com/posts/2026/06/introducing-lightstep-uql-to-promql-translator.html](https://engineering.zalando.com/posts/2026/06/introducing-lightstep-uql-to-promql-translator.html)

## Summary

With Lightstep sunsetting, Zalando built and open-sourced a Go translator that deterministically converts Lightstep UQL queries into PromQL. The pipeline is a lexer, a parser that builds an AST, an optimizer and a PromQL generator. It ships as both an SDK and an HTTP server with a Web UI and REST API, and needs per-metric type configuration (sum, gauge, histogram) plus mappings for span and log metrics. Zalando used it for self-service translation and automated conversion of alerts and dashboards during its move to Dash0, preferring deterministic rules over error-prone manual or LLM-based rewriting.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)
- [Go](https://swe.quest/tags/go.md) (Languages)
- [Open source](https://swe.quest/tags/open-source.md) (Engineering practices)
- [Refactoring & migrations](https://swe.quest/tags/refactoring.md) (Engineering practices)

## Prerequisites

- PromQL basics
- Go ([easy posts on Go](https://swe.quest/tags/go.md?difficulty=easy))

## Keywords

Lightstep, UQL, PromQL, Dash0, Prometheus

## Related posts

- [Introducing Lightstep Receiver for OpenTelemetry Collector](https://swe.quest/articles/introducing-lightstep-receiver-for-opentelemetry-collector-97d19c526075ab2f.md): Zalando Engineering · 2025-01-20 · Medium · 3 min read · Observability, Refactoring & migrations, Open source
  Zalando's Lightstep Receiver for the OpenTelemetry Collector accepts trace traffic from legacy Lightstep tracers and converts it into OpenTelemetry traces, so applications can join an OpenTelemetry pipeline without being re-instrumented.
- [Introducing ClickHouse's new TimeSeries Engine: Your drop-In Prometheus replacement](https://swe.quest/articles/introducing-clickhouse-s-new-timeseries-engine-your-drop-in-prometheus-a469c7e2738050be.md): ClickHouse · 2026-09-15 · Medium · 11 min read · Observability, Analytics & OLAP, Databases
  ClickHouse Cloud's private preview adds a TimeSeries table engine and server-side PromQL evaluation, so Prometheus metrics arrive via remote-write v1 and are queried with unchanged PromQL from Grafana, the Prometheus HTTP API, clickhouse-client's promql dialect, SQL table functions, or ClickStack.
- [What's new in ClickStack - Aug ’26](https://swe.quest/articles/what-s-new-in-clickstack-aug-26-6426e76d49852a0f.md): ClickHouse · 2026-09-16 · Medium · 16 min read · Observability, Analytics & OLAP, LLMs
  ClickStack v2.34–v2.38 centers on dashboards: dashboard variables are now GA, letting a filter's selection be substituted into raw SQL, builder fields, Lucene and PromQL, with macros like $\_\_filter and $\_\_conditionalAll to handle empty selections and chained dropdowns.
- [How Tesla built a quadrillion-scale observability platform on ClickHouse](https://swe.quest/articles/how-tesla-built-a-quadrillion-scale-observability-platform-on-clickhouse-d92f25e05a12e1a7.md): ClickHouse · 2025-07-10 · Easy · 7 min read · Observability, Analytics & OLAP, Scaling, Queues & messaging
  Tesla built Comet, an in-house metrics platform that stores Prometheus-style time series in ClickHouse and keeps full PromQL compatibility.
- [What's new in ClickStack - September and October '26](https://swe.quest/articles/what-s-new-in-clickstack-september-and-october-26-a21e3a80f34a3dc9.md): ClickHouse · 2026-11-03 · Medium · 18 min read · Observability, Analytics & OLAP
  ClickStack v2.39 through v2.42 add ad hoc dashboard filters with click-to-filter from tiles, single-select and required filters, saved relative time ranges, and dashboard variables in markdown tiles.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
