packages feed

prometheus-effect-1.1.0: prometheus-effect.cabal

name:                prometheus-effect
version:             1.1.0
synopsis:            Instrument applications with metrics and publish/push to Prometheus
description:
  [Prometheus](https://prometheus.io) 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.
license:             BSD3
license-file:        LICENSE
author:              Ollie Charles
maintainer:          ollie@ocharles.org.uk
build-type:          Simple
extra-source-files:  ChangeLog.md
cabal-version:       >=1.10
homepage: https://github.com/ocharles/prometheus-effect

library
  exposed-modules:     Prometheus
                       Prometheus.GHC
                       Network.Wai.Middleware.Prometheus
  build-depends:       base >=4.9 && <4.11
                     , bytestring
                     , clock
                     , hashable >= 1.2.4.0
                     , http-types >= 0.9.1
                     , mtl
                     , retry
                     , safe-exceptions
                     , streaming
                     , streaming-wai
                     , streaming-bytestring
                     , streaming-utils
                     , text
                     , transformers
                     , unordered-containers
                     , vector >= 0.11.0.0
                     , vector-algorithms
                     , wai
  default-language:    Haskell2010
  -- Use -O2 for a 50% performance increase in observe
  ghc-options:         -Wall -O2

executable test
  hs-source-dirs: test
  build-depends: base, warp, prometheus-effect, http-types, wai, random, text
  default-language: Haskell2010
  main-is: Test.hs

test-suite weight
  hs-source-dirs:      weight
  build-depends:       base
                     , weigh
                     , prometheus-effect
                     , text
  default-language:    Haskell2010
  ghc-options:         -Wall
  main-is:             Weight.hs
  type:                exitcode-stdio-1.0

benchmark benchmarks
  hs-source-dirs:      bench
  build-depends:       base
                     , criterion
                     , prometheus-effect
                     , text
  default-language:    Haskell2010
  ghc-options:         -Wall
  main-is:             Bench.hs
  type:                exitcode-stdio-1.0