Let’s build a custom prometheus exporter in Rust

  1. Rust
  1. SysInfo, a crate used for getting system info
  2. Notify_Rust, a crate for sending desktop notifications or pop-ups
  3. Fs_Extra, a crate for extracting a dir info
  4. Prometheus_Exporter, a helper crate for exporting prometheus metrics via http
  5. SocketAddr, part of the std crate in rust, it represents an IPv4 or IPv6 address
  6. Read_dir, part of the std crate in rust, it returns an iterator to the directory name passed
  7. Env_Logger, a crate for implementing logger, via environment variables
  8. Log, a crate which provides an API abstracting the actual logging implementation

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store