Popularity
5.7
Growing
Activity
0.0
Stable
4
2
6

Monthly Downloads: 11
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: System     Ekg    
Latest version: v0.4.0.0

ekg-elastic alternatives and similar packages

Based on the "ekg" category.
Alternatively, view ekg-elastic alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of ekg-elastic or a related project?

Add another 'ekg' Package

README

ekg-elasticsearch: elasticsearch backend for ekg

This library lets you send metrics gathered by the ekg family of packages (e.g. ekg-core and ekg) to elasticsearch. The metrics sent are in the same format as beats metrics.

Getting started

Exporting metrics to elasticsearch is simple. Either create an empty metric store and register some metrics

import System.Metrics
import System.Remote.Monitoring.ElasticSearch

main = do
    store <- newStore
    registerGcMetrics store
    forkElasticSearch defaultESOptions store
    ...

or use the default metrics and metric store provided by the ekg package

import System.Remote.Monitoring
import System.Remote.Monitoring.ElasticSearch

main = do
    handle <- forkServer "localhost" 8000
    forkElasticSearch defaultESOptions (serverMetricStore handle)
    ...

forkElasticSearch starts a new thread the will periodically send your metrics to elasticsearch using a bulk request.

Get involved!

Please report bugs via the GitHub issue tracker.

Master git repository:

git clone https://github.com/cdodev/ekg-elasticsearch.git

Authors

This library is written and maintained by Ben Ford, [email protected].