Skip to content

Releases: dios-david/promgleam

v0.2.0

07 Jul 21:52
Compare
Choose a tag to compare

New features:

  • Introducing the measure_histogram and measure_histogram_seconds functions which can be used to wrap a function to automatically observe the execution time in a Histogram whenever the function is invoked, rather than manually measuring it and reporting it with observe_histogram. Check the examples in the main readme!
  • Introducing the measure utility function which measures the execution time of a function. This is used by measure_histogram and measure_histogram_seconds internally, but it's also exposed in the promgleam/utils module as this might often come in handy when dealing with metrics.

v0.1.1

07 Jul 18:04
Compare
Choose a tag to compare

First release 🎉

I'm super thrilled to share the first version of PromGleam with you, a Gleam library for Prometheus metrics. 🎉

Prometheus is an awesome open-source systems monitoring and alerting toolkit. It's widely used for collecting metrics from different services and storing them in a time-series database. Plus, it has a flexible query language to help you get insights from your data!

The motivation behind PromGleam is to expose metrics (number of requests, number of errors, response durations etc) from e.g. Wisp HTTP services, so I started to work on implementing Gleam bindings to the awesome prometheus erlang library. In a future version I'm planning to add support for JavaScript target as well.

Feel free to check it out, play around, and let me know what you think in Discussions!