dnsimple / erldns-metrics

Metrics endpoint for erldns.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Metrics endpoint for erldns.


Languages

Language:Erlang 97.6%Language:Makefile 2.4%