athena_rs 0.83.0

Database gateway API
Documentation
//! Prometheus exporter placeholder.
//!
//! This module ships a minimal stub so the /metrics route exists even before
//! real instrumentation is wired up.

use actix_web::{HttpResponse, get};

/// Official path for the stub exporter.
pub const PROMETHEUS_METRICS_PATH: &str = "/metrics";

const METRICS_PAYLOAD: &str = "";

/// Returns a thin Prometheus exposition so the route can be scraped.
#[get("/metrics")]
pub async fn prometheus_metrics_stub() -> HttpResponse {
    HttpResponse::Ok()
        .content_type("text/plain; charset=utf-8")
        .body(METRICS_PAYLOAD)
}