Requirements
Before installing PromGleam, make sure you have:- Gleam version 0.34.0 or higher
- Erlang/OTP target (PromGleam uses prometheus.erl under the hood)
PromGleam only supports the Erlang target. If you’re building for JavaScript, you’ll need a different metrics solution.
Install PromGleam
Add the package
Add PromGleam to your project using the Gleam package manager:This will add the latest version of PromGleam to your
gleam.toml file.Dependencies
When you install PromGleam, these dependencies are automatically installed:- prometheus (>= 4.11.0) - The underlying Erlang Prometheus client
- gleam_stdlib (>= 0.34.0) - Gleam’s standard library
- gleam_erlang (>= 0.25.0) - Gleam’s Erlang interop library
You don’t need to install or configure these dependencies manually. The Gleam package manager handles everything for you.