Skip to content
Projekte

Über uns

Unified observability for logs, metrics and traces — low overhead instrumentation (Rust, Unreal Engine 5), OTLP ingestion, SQL analytics on DataFusion over Parquet, presentation through notebooks, Grafana and Python. Self-hosted.

Systeme und Infrastruktur

So werden diese Zahlen gemessen

What you can do

  • 🚀 Unified Observability: Store and query logs, metrics, and traces together to get a complete picture of your application's behavior.
  • 🔌 OpenTelemetry Compatible: Native OTLP/HTTP ingestion alongside the high-performance native protocol — point any OTel SDK at the ingestion service and have logs, metrics, and traces land in the lakehouse.
  • ⚡ Low-Overhead Instrumentation: Client-side instrumentation adds minimal overhead, averaging just 20 ns per event in the calling thread.
  • 🌊 High-Frequency Data Collection: Built to handle up to 300,000 events per second from a single instrumented process.

Gemessener Sternzuwachs

in 24h
0
in 7 days
+1
in 15 days
+1
in 1 month
+2

Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.

README.md

Original

Micromegas Logo
A unified observability platform for logs, metrics, and traces, built for high-volume environments.

Crates.io Apache licensed Build Status

Website • Documentation • Rust API Docs • Grafana Plugin • Presentations


Micromegas is an observability system designed to provide unified insights into complex applications. It allows you to collect and analyze logs, metrics, and traces in a single, scalable database. Our goal is to help you spend less time reproducing bugs and more time understanding and improving your software's quality and performance.

Objectives

  • Empower developers with comprehensive insights, eliminating time-consuming bug reproduction.
  • Quantify issue frequency and severity to allow better priority management.
  • Provide detailed traces based on high-frequency telemetry to enable a deep understanding of every issue.

Key Features

  • 🚀 Unified Observability: Store and query logs, metrics, and traces together to get a complete picture of your application's behavior.
  • 🔌 OpenTelemetry Compatible: Native OTLP/HTTP ingestion alongside the high-performance native protocol — point any OTel SDK at the ingestion service and have logs, metrics, and traces land in the lakehouse.
  • ⚡ Low-Overhead Instrumentation: Client-side instrumentation adds minimal overhead, averaging just 20 ns per event in the calling thread.
  • 🌊 High-Frequency Data Collection: Built to handle up to 300,000 events per second from a single instrumented process.
  • ☁️ Scalable & Cloud-Native: The backend is designed to scale horizontally, capable of ingesting data from millions of concurrent processes using object storage (S3) and PostgreSQL.
  • 💰 Cost-Efficient by Design: Keep costs low with tail sampling and on-demand ETL. Raw data is stored cheaply and only processed when you need to query it.
  • 🔍 Powerful SQL Interface: Query your data using a powerful and familiar SQL interface, powered by Apache DataFusion and accessible via Apache Arrow FlightSQL.
  • 📓 Interactive Notebooks: A built-in web app for exploring data through composable notebook cells — queries, charts, flame graphs, maps, and logs — over the same SQL engine.
  • 🔐 Enterprise Authentication: Secure your data with OIDC authentication supporting both human users (browser-based login) and service accounts (OAuth 2.0 client credentials).
  • 🤖 Claude Code Plugin: Query telemetry and author notebooks from Claude Code with the Micromegas plugin; see installation.
  • 🛡️ Audience-Based Access Control: Host private data on a shared deployment. Incoming telemetry is tagged server-side with the audience of the credential that sent it, and queries only return the data the user has been granted access to.

How It Works

Micromegas consists of several key components:

  1. Instrumentation Libraries: Lightweight libraries that send telemetry from your applications — native SDKs for Rust and Unreal Engine, a C ABI (micromegas-capi) for C/C++ and other FFI-capable languages, and a Blender add-on. See Optimism for an example Bevy project using Micromegas.
  2. Ingestion Service (telemetry-ingestion-srv): A scalable service that receives telemetry (native transit/CBOR and OTLP/HTTP) and writes it to blob storage.
  3. Analytics Service (flight-sql-srv): A DataFusion-powered service that exposes a FlightSQL endpoint for running queries against your data, materializing process-scoped views just in time when they are queried.
  4. Analytics Web App (analytics-web-srv): A browser UI for exploring data through interactive notebooks.
  5. Maintenance Daemon (telemetry-maintenance-srv): Continuously materializes recent raw blocks into global Parquet views and enforces data retention.
  6. PostgreSQL Database: Stores metadata about processes, streams, and data blocks, keeping the object storage indexable and fast to query.
  7. Object Storage (S3/GCS/Azure): Stores raw telemetry payloads as compressed binary blocks and materialized views as Parquet files.

These roles can run as independent, horizontally-scalable services or bundled into a single micromegas-monolith process for local development and single-machine deployments. An optional shared read cache (micromegas-object-cache-srv) can front the object store to cut egress cost and read latency across services.

Cost-Effectiveness

Micromegas cost is the direct cloud bill: about $1,100/month at public list prices for equivalent resources, including ~535 billion trace events a month kept without sampling. It is compared with six SaaS vendors on one reference workload in the vendor comparison, which covers the methodology and per-vendor pricing.

Presentations

Learn more about Micromegas through our technical presentations:

Getting Started

Run Micromegas locally with Docker in a couple of commands — see the Getting Started guide.

Building from source or contributing code? See the Build Guide.

Recent Releases

v0.34.0 (November 2026)

  • MCP server — analytics-web-srv and the monolith can serve an opt-in MCP server at /mcp for agents, with OAuth discovery for clients such as Claude Code
  • On-demand materialized views — a view defined without update_group is filled by the queries that read it, with a max_jit_src_data cap on the source data behind each partition
  • JIT partitions sized from the query range — buckets follow an aligned minute-to-day ladder, so a live "last minute" poll rewrites only the open minute
  • Fair query admission — opt-in per-identity queuing weighted by estimated scan cost; the query audit record gains scan-cost estimates and bytes returned to the client
  • Faster, observable maintenance — the views of an update group materialize concurrently across runtime workers, with materialization spans and cgroup CPU throttling metrics
  • Robustness — bounded LZ4 decompression, transit metadata recursion and call-tree depth, so a malformed block fails instead of aborting the process
  • Web app — an Admin → View Sets page, explicit admin mode for destructive statements, a Bar Chart cell with horizontal orientation and selection, and a Discard button on screens
  • SQL — list_view_sets() gains description, columns and sort_order; new admin check_view_merge()
  • Operator note — lakehouse schema v12: upgrade all lakehouse services together

v0.33.0 (November 2026)

  • Access control, one step further — a grant's audience can be * (every audience), and analytics API keys can be granted or grouped with a key:<key_id> selector
  • Settings in the database — deployment-wide settings are editable from a new Admin → Settings page, with no restart; per-stream-tag raw payload retention
  • Spans from tracing — TracingCaptureLayer records tracing spans as async spans, with a field hook and trimmed source paths; HTTP sink retries 429
  • SQL — mergeable approximate distinct counts with make_hll, merge_hll and hll_cardinality; built-in view sets listed by list_view_set_definitions()
  • Web app — a Stop button on running notebook cells, single-select on chart cells, and Log cell repeats collapsed by message
  • Blender — the add-on no longer blocks Blender's autosave (Blender 5.2+)
  • Operator note — reqwest 0.13 now verifies server certificates against the OS trust store; minimal images need ca-certificates

v0.32.0 (October 2026)

  • Properties on spans and dynamic names — thread and async spans record properties at span end, logs and metrics take dynamic properties, and span and metric names can be built at runtime, with a leak-free C API
  • Cheaper instrumentation — shorter critical sections, cheaper hashers, and no formatting for log messages that only repeat their properties; benchmarked against OpenTelemetry
  • Views as code — eagerly materialized views defined in DDL, plus a micromegas-views CLI
  • Access control hardening — per-key IP allowlists, a narrower is_admin, and an audit record for every control-plane mutation
  • Web app — Stacked Bar cell, $me.* identity macros, query-backed markdown cells, and collapsed repeated log lines
  • Storage and deps — GCS and Azure object backends, DataFusion 55.2, and a lightweight client feature on the micromegas crate

v0.31.0 (September 2026)

  • Postgres is the sole source of API keys and audience grants — the env keyrings are gone; manage both at runtime with micromegas-grants and the admin routes
  • Access control is configured in one place — one public_view_sets setting (env fallback MICROMEGAS_PUBLIC_VIEW_SETS), read on every auth path and editable at runtime, and the audience model gets its own documentation page
  • One auth interface across the Python CLIs — every console script resolves credentials the same way, so --profile picks a named connection anywhere; micromegas-setup-telemetry gains --user-audience

v0.30.0 (September 2026)

  • Audience-based access control, end to end — every materialized-view query plan carries an audience predicate, every id-addressed function is guarded, and ingestion stamps the audience from the authenticated credential instead of trusting the client
  • Grants and groups now live in Postgres — a database-backed grant store, local groups with a reserved admins group, a Groups admin page, and a micromegas-groups CLI
  • Deterministic merged order — every non-ordering-declaring view merges through one reader per source file group, restoring row-group pruning on time-filtered queries
  • Admin-managed query deny list — replica-cached rules evaluated as DataFusion expressions before a query is planned
  • Ops and ergonomics — a new micromegas-redis-exporter service, jemalloc tuning across all eight binaries, complete JSONB UDF coverage, and per-row bar charts for Histogram columns in the web app
  • Operator action required — the MICROMEGAS_ADMINS* environment variables are now refused at startup, the IdP groups claim is no longer read, and the six global-instance views need partition regeneration

Every item of every release, including breaking-change notes and dependency bumps, is in CHANGELOG.md.

Contributing

We welcome contributions from the community! If you're interested in helping improve Micromegas, please see our Contribution Guidelines for more details on how to get involved.

Whether it's bug reports, feature requests, or code contributions, your input is valuable.

License

Micromegas is licensed under the Apache License, Version 2.0.

Ähnliche Projekte entdecken

Wird geladen…