Skip to content

dnsimple/erldns-metrics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Metrics API for erldns

This app provides an HTTP API for gathering and querying metrics from an erldns server and presenting those metrics as JSON.

Here's an example script that shows how to get the output with curl and pass through Python to format it in a pretty fashion.

curl -s http://localhost:8082/ -H "Accept: application/json" | python -mjson.tool

Note that timing stats are givin in microseconds.

Configuration

To configure the metrics API port, add something like the following to your erlang configuration section:

[
  {erldns,[
      {metrics, [
        {port, 8082}
      ]},
    ]}
]

Building

To build:

make

To start fresh:

make fresh