Releases: dios-david/promgleam
v0.2.0
New features:
- Introducing the
measure_histogram
andmeasure_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 withobserve_histogram
. Check the examples in the main readme! - Introducing the
measure
utility function which measures the execution time of a function. This is used bymeasure_histogram
andmeasure_histogram_seconds
internally, but it's also exposed in thepromgleam/utils
module as this might often come in handy when dealing with metrics.
v0.1.1
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!