pickle: Instant StatsD in Haskell

[ library, mit, unclassified ] [ Propose Tags ]

Instant StatsD in Haskell. Easy to implement in a program you've already written without any refactoring to pass any sockets/configuration around.


[Skip to Readme]
Versions [faq] 0.1.0.0, 0.1.0.1, 1.0.0.0 (info)
Change log CHANGELOG.md
Dependencies base (>=4.12.0.0 && <4.13), containers (>=0.6.0.1 && <0.6.3), network (>=2.8.0.0 && <3.2), stm (>=2.4 && <2.6), text (>=1.2.3.1 && <1.3) [details]
License MIT
Copyright Copyright 2019 Anduril Industries
Author Bob Blackmon
Maintainer bob.blackmon@ymail.com
Revised Revision 1 made by Luabee at Tue Oct 22 18:05:03 UTC 2019
Bug tracker https://github.com/Luabee/pickle/issues
Uploaded by Luabee at Tue Oct 22 18:03:02 UTC 2019
Distributions NixOS:1.0.0.0
Downloads 113 total (72 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2019-10-22 [all 1 reports]

Modules

[Index] [Quick Jump]

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

For package maintainers and hackage trustees


Readme for pickle-1.0.0.0

[back to package description]

pickle

Instant StatsD in Haskell. Easy to implement in a program you've already written without any refactoring to pass any sockets/configuration around.

Usage

Call setupPickle defaultConfig with your main function, e.g.

{-# LANGUAGE OverloadedStrings #-}
import qualified Data.Map.Strict as M

main :: IO()
main = setupPickle defaultConfig $ do
{...}

Then to send metrics you can just call one of these functions:

let name  = "gauge.name"
    value = 42
    tags  = M.fromList [("key","value), ("tag2","value")]
gauge   name value (Just tags)
timer   name value (Just tags) Nothing
counter name value (Just tags) Nothing

Pickle will take care of the rest. He's a good boy.

my dogger, pickle