https://github.com/haskell-github-trust/ekg-statsd
Flush system metrics to statsd
https://github.com/haskell-github-trust/ekg-statsd
Last synced: about 2 months ago
JSON representation
Flush system metrics to statsd
- Host: GitHub
- URL: https://github.com/haskell-github-trust/ekg-statsd
- Owner: haskell-github-trust
- License: bsd-3-clause
- Created: 2014-04-19T08:37:01.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2024-10-31T14:25:45.000Z (about 1 year ago)
- Last Synced: 2025-01-02T19:50:03.232Z (about 1 year ago)
- Language: Haskell
- Size: 96.7 KB
- Stars: 26
- Watchers: 4
- Forks: 23
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: LICENSE
Awesome Lists containing this project
README
# ekg-statsd: statsd backend for ekg [](https://hackage.haskell.org/package/ekg-statsd) [](http://travis-ci.org/tibbe/ekg-statsd)
This library lets you send metrics gathered by the ekg family of
packages (e.g. ekg-core and ekg) to
[statsd](https://github.com/etsy/statsd/). While statsd fulfills a
very similar role to ekg, it supports many more backends/graphing
systems (e.g. Graphite). By sending your metrics to statsd, you can
have your ekg metrics appear in these systems.
# Getting started
Exporting metrics to statsd is simple. Either create an empty metric
store and register some metrics
import System.Metrics
import System.Remote.Monitoring.Statsd
main = do
store <- newStore
registerGcMetrics store
forkStatsd defaultStatsdOptions store
...
or use the default metrics and metric store provided by the ekg
package
import System.Remote.Monitoring
import System.Remote.Monitoring.Statsd
main = do
handle <- forkServer "localhost" 8000
forkStatsd defaultStatsdOptions (serverMetricStore handle)
...
`forkStatsd` starts a new thread the will periodically send your
metrics to statsd using UDP.
# Get involved!
Please report bugs via the
[GitHub issue tracker](https://github.com/tibbe/ekg-statsd/issues).
Master [git repository](https://github.com/tibbe/ekg-statsd):
git clone https://github.com/tibbe/ekg-statsd.git
# Authors
This library is written and maintained by Johan Tibell,
.