Everyone can contribute! Let's learn together in a weekly cafe ☕


We love to break things, make mistakes, debug, analyse, fix problems together. Live and unfiltered on Youtube.

Community members and thought leaders regularly join and share their projects and ideas.

"Everyone Can Contribute" is inspired by GitLab's mission.

36. #EveryoneCanContribute cafe: Learn Rust with Rocket web app & Prometheus Monitoring


Learn developing a web app with Rocket.rs in Rust. Add monitoring metrics for Prometheus with rocket_prometheus.

Recording

Enjoy the session! 🦊


Highlights

We decided to go with Rocket.rs Getting Started and learn how to register handles with the web app. We also learned about managing Cargo dependencies and Cargo targets.

After finishing the implementation, we wanted to add Prometheus Monitoring metrics with rocket_prometheus. Since Rocket requires Rust nightly builds, we also needed to use the main.rs example from the async branch.

We used Gitpod and the GitLab Web IDE to develop only in the browser, and allowing everyone to follow async.

Insights


Date published: June 30, 2021

Tags: Rust, Development, Prometheus, Learn, Metrics