You can export metrics for your rust applications or even build binaries for other use cases.
Check out the main.rs file in exporter>src. The sample code is based on Francesco Cogno excellent prometheus_exporter_base library(crate) and example project to calculate the size of a folder. You can tweak it to suit your use case.
The project provisions Prometheus and Grafana too, so you can collect and visualise your data like this:
actually we should remove it from our rust hello world example as well
I even wonder why it’s there, because systemd wasn’t required for this example
The INITSYSTEM functionality has been completely removed, so applications that rely on systemd or openRC should install and set up the initsystem in their apps. See Installing your own Initsystem.
yes, you have to. Your base image is Debian Buster based and there’s an issue with curl & certificates. It’s a workaround for this problem. You can learn more in this thread.