Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
144 changes: 139 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
[workspace]
resolver = "2"
members = [
"crates/adapters/ingest/otlp",
"crates/adapters/ingest/prometheus-remote-write",
"crates/adapters/ingest/victoriametrics-remote-write",
"crates/adapters/query/prometheus-http",
"crates/common",
"crates/control-plane",
Expand Down Expand Up @@ -45,11 +47,13 @@ reqwest = { version = "0.12", default-features = false, features = ["json", "rus
control_plane = { path = "crates/control-plane" }
common = { path = "crates/common" }
internal_metrics = { path = "crates/internal-metrics" }
otlp = { path = "crates/adapters/ingest/otlp" }
precompute = { path = "crates/precompute" }
prometheus_http = { path = "crates/adapters/query/prometheus-http" }
prometheus_remote_write = { path = "crates/adapters/ingest/prometheus-remote-write" }
query = { path = "crates/query" }
storage = { path = "crates/storage" }
victoriametrics_remote_write = { path = "crates/adapters/ingest/victoriametrics-remote-write" }

# asap_sketchlib#271's head, ahead of the Planner's pin (389530c): DDSketch
# view merges in place, with width-specialized loops (a 1 h quantile over
Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,15 @@ cargo run -p control_plane -- \
cargo run -p data_plane -- --plan plan.json --prometheus-url http://localhost:9090
```

Besides Prometheus Remote Write, the data plane ingests VictoriaMetrics
Remote Write (the same protobuf, zstd-compressed) on `/api/v1/import` and
OTLP/HTTP metrics (protobuf, optionally gzip) on `/v1/metrics`, the routes
ASAPQuery serves them on. An OTLP data point becomes a sample of the series
named by its metric (`<name>_sum` and `<name>_count` for histograms and
summaries) and labeled by its scope's, resource's and own attributes. Both
routes answer as Remote Write does (400, 503, 500), and are not served in
forward mode, which delivers only Remote Write bodies to the raw store.

`--deployment-capabilities caps.json` replaces the default
`DeploymentCapabilities`: every summary the Planner's executor builds, raw
data kept by the data plane, and no query-time result kept across
Expand Down Expand Up @@ -237,6 +246,8 @@ not stored) with a Prometheus `execution` error (422,
| `crates/storage/` | package `storage`: raw samples and views in memory, the view cache, segments, persistence and the persist threads |
| `crates/internal-metrics/` | package `internal_metrics`: the backend's measurements of itself, exported on `/metrics` |
| `crates/adapters/ingest/prometheus-remote-write/` | package `prometheus_remote_write`: Remote Write v1 decoding and validation |
| `crates/adapters/ingest/victoriametrics-remote-write/` | package `victoriametrics_remote_write`: VictoriaMetrics Remote Write (the Remote Write protobuf, zstd-compressed), `POST /api/v1/import` |
| `crates/adapters/ingest/otlp/` | package `otlp`: OTLP/HTTP metrics decoding into samples, `POST /v1/metrics` |
| `crates/adapters/query/prometheus-http/` | package `prometheus_http`: query parameters, response bodies and the fallback client of a Prometheus-compatible server |
| `benchmarks/` | the backend alone: `micro/` benchmarks (examples of `data_plane`) and `scripts/` |
| `eval/` | comparisons with other systems and the live demo; see [eval/README.md](eval/README.md) |
Expand Down
15 changes: 15 additions & 0 deletions crates/adapters/ingest/otlp/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[package]
name = "otlp"
version.workspace = true
edition.workspace = true

# OTLP (OpenTelemetry) metrics over HTTP: request decoding into data
# points. An adapter: no workspace dependency, so it never sees an engine
# or a store.
[dependencies]
# The OTLP protobuf messages (no gRPC server; the crate still builds
# tonic's codegen types and the OpenTelemetry SDK it depends on).
opentelemetry-proto = { version = "0.28", default-features = false, features = ["gen-tonic-messages", "metrics"] }
prost = "0.13"
flate2 = "1.0"
thiserror.workspace = true
Loading