Deprecated

prometheus-effect

Instrument applications with metrics and publish/push to Prometheus https://github.com/ocharles/prometheus-effect

Latest on Hackage:1.1.0

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD3 licensed by Ollie Charles
Maintained by ollie@ocharles.org.uk

Prometheus is an open-source systems monitoring and alerting toolkit originally built at SoundCloud. Since its inception in 2012, many companies and organizations have adopted Prometheus, and the project has a very active developer and user community. It is now a standalone open source project and maintained independently of any company. To emphasize this and clarify the project's governance structure, Prometheus joined the Cloud Native Computing Foundation in 2016 as the second hosted project after Kubernetes.

This library provides a Haskell client to Prometheus. It supports:

  • The metric types counter, gauge and histogram.

  • Publishing metrics over HTTP (via WAI middleware).

  • Pushing metrics to the Prometheus push gateway.

  • Labels, along with dynamic labels.

  • Instrumentation, both for internal Prometheus monitoring and GHC statistics.

Changes

1.1.0

  • Prometheus.GHC.ghcStats now has the type m (Maybe (IO ThreadId)).

    This was changed to clarify what happens if GC stats aren’t enabled, in which case you’ll just get Nothing back.

    Don’t forget to actually run the stats collector thread though! For example,

    (startGhcStats, registry) <- buildRegistry ghcStats
    for_ startGhcStats id
    

1.0.0

Initial release.

comments powered byDisqus