-
Notifications
You must be signed in to change notification settings - Fork 0
Prometheus and Logging
Raul Montoya Cardenas edited this page Jul 29, 2026
·
3 revisions
Module: src/cpu.rs
init_telemetry(metrics_addr):
- Global
tracingsubscriber (default max level INFO) - Prometheus HTTP listener via
PrometheusBuilderonmetrics_addr(host from CLI; port 9000)
pub struct RelayMetrics {
pub spike_count: usize,
pub stimulus_latency_ms: f64,
pub telemetry_freshness_s: f64,
pub dopamine: f32,
pub cortisol: f32,
pub acetylcholine: f32,
pub stimuli_applied_count: u64,
}run_metrics_collector background task reads the Arc<Mutex<RelayMetrics>> and updates gauges/counters.
http://<metrics-ip>:9000/metrics
Last updated: July 29, 2026
Updated by: Grok Build: Grok 4.5
Package tip reference: e09cd4a (main)
Devin DeepWiki: commit e09cd4a · thalamic-relay