#health #endpoint #docker #running #environments #tokio #containerized

rust-health-endpoint

Minimal health (and signal) endpoint for apps running in containerized environments

1 unstable release

0.1.2 Apr 25, 2023
0.1.1 Apr 25, 2023
0.1.0 Apr 24, 2023

#991 in Unix APIs

MIT license

12KB
270 lines

Rust Health Endpoint

This is a repo for use in personal projects. It allows running a health endpoint for use in containerized setting (docker, kube etc.) with the healthiness report exposed as a tokio broadcast message.

let health_monitor = HealthMonitor::new(Duration::from_millis(5_000));
let publisher = health_monitor.get_publisher();

// Run code etc.

futures::join(
    health_monitor.run(),
    // Your task.
);

Since it's a personal use it's prone to changes and there is no guarantees on compatibility.

Dependencies

~4–11MB
~109K SLoC