0f8352cff3
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.
12 lines
421 B
Haskell
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
|