ekg/System/Remote/Counter.hs
Johan Tibell 0f8352cff3 Break out core metric tracking into a new package
The new package, ekg-core, contains the metrics store, modules for
defining metrics, and functions for sampling the metrics.

The counter naming is also changed to include a namespace part. For
example "myapp.requests".

Finally the JSON format has been changed to be more self-descriptive.
2014-04-20 10:18:13 +02:00

12 lines
421 B
Haskell

-- | This module defines a type for mutable, integer-valued counters.
-- Counters are non-negative, monotonically increasing values and can
-- be used to track e.g. the number of requests served since program
-- start. All operations on counters are thread-safe.
module System.Remote.Counter
(
Counter.Counter
, Counter.inc
, Counter.add
) where
import qualified System.Metrics.Counter as Counter