Prometheus exporter for OpenTSDB
Switch branches/tags
Nothing to show
Clone or download
mattbostock Merge pull request #6 from cloudflare/dont_output_error
Don't output error in HTTP response body
Latest commit b5981ae Jul 5, 2017

README.md

OpenTSDB Exporter

A daemon that takes the URL of an OpenTSDB server and exposes Prometheus metrics based on data scraped from OpenTSDB's stats API.

See OpenTSDB's API documentation on the stats endpoint.

Tested on OpenTSDB 2.3.

Prerequisites

To use the OpenTSDB exporter, you'll need:

To build, you'll need:

Limitations

The metrics generated are translated one-to-one from the metrics exposed on the stats endpoint, so do not follow the Prometheus metric naming conventions. This is primarily to keep the code simple.

How to run

go get -u github.com/cloudflare/opentsdb_exporter
cd $GOPATH/src/github.com/cloudflare/opentsdb_exporter
make
./opentsdb_exporter

How to run the tests

make tests

Contributions

Pull requests, comments and suggestions are welcome.

Please see CONTRIBUTING.md for more information.