Skip to main content

micromegas/servers/
mod.rs

1pub mod axum_utils;
2
3/// connection info utilities for Tonic services
4pub mod connect_info_layer;
5
6/// http utilities
7pub mod http_utils;
8
9/// scheduled task for daemon
10pub mod cron_task;
11
12/// routes for ingestion server based on axum
13pub mod ingestion;
14
15/// ingestion authentication layer that attributes rejected `insert_process` callers
16pub mod ingestion_auth;
17
18/// OTLP/HTTP routes (logs, metrics, traces) for the ingestion server
19pub mod otlp;
20
21/// generic header-described webhook ingestion route
22pub mod webhook;
23
24/// Kinesis Data Firehose HTTP Endpoint Delivery route for OTLP metrics (CloudWatch Metric
25/// Streams)
26pub mod firehose;
27
28/// shared auth/response/request-id plumbing for every Firehose-backed ingestion route
29pub mod firehose_common;
30
31/// resolving the authenticated write audience at the HTTP edge
32pub mod write_audience;
33
34/// Kinesis Data Firehose HTTP Endpoint Delivery route for CloudWatch Logs subscription
35/// filters
36pub mod firehose_cloudwatch_logs;
37
38/// shared body-limit / decompression layers for ingestion routers (OTLP, webhook)
39pub(crate) mod ingestion_limits;
40
41/// implementation of maintenance daemon keeping the lakehouse updated
42pub mod maintenance;
43
44/// periodic self-observability collector for the metadata Postgres's pg_stat_* views
45pub mod pg_stats;
46
47/// `deployment_notes()` table function serving the `deployment_notes` setting
48pub mod deployment_notes_table_function;
49
50/// minimal FlightSQL protocol implementation
51pub mod flight_sql_service_impl;
52
53/// fair per-identity admission scheduler for queries
54pub mod query_admission;
55
56/// structured per-query audit record emitted by the FlightSQL service
57pub mod query_audit;
58
59/// FlightSQL server builder
60pub mod flight_sql_server;
61
62/// MCP server exposing guarded query tools to agents
63pub mod mcp;
64
65/// web server for perfetto traces
66pub mod perfetto;
67
68/// metadata about this implementation of FlightSQL
69pub mod sqlinfo;
70
71/// log uris of http requests
72pub mod log_uri_service;
73
74/// http server that redirects queries to the analytics server translating the response into json
75pub mod http_gateway;
76
77/// authentication for the gRPC stack
78pub mod tonic_auth_interceptor;
79
80/// health check service for gRPC servers
81pub mod grpc_health_service;
82
83/// SIGTERM-driven graceful shutdown primitives shared by all services
84pub mod shutdown;
85
86/// shared readiness probe logic (DB + blob, 1 s success cache)
87pub mod readiness;
88
89/// `CREATE [OR REPLACE] MATERIALIZED VIEW` / `DROP MATERIALIZED VIEW` DDL: parsing and the
90/// admin gate.
91pub mod view_ddl;