Git Product home page Git Product logo

opentsdb_exporter's Introduction

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.

opentsdb_exporter's People

Contributors

mattbostock avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

opentsdb_exporter's Issues

Make metrics scrappable by Prometheus

It is not possible to scrape this exporter with Prometheus. The following error is thrown by Prom

"INVALID" is not a valid start token

My suspicion is this is because there are no labels in a few of the metrics which are exposed.

How to add metrics in the '/metrics' url

I follow the steps and start the exporter with './opentsdb_exporter'. But only go metrics list in the '/metrics' url
How can I add opentsdb metrics in the '/metrics' url?

Cannot find module providing prometheus log package

> go get -u github.com/cloudflare/opentsdb_exporter

go: downloading github.com/cloudflare/opentsdb_exporter v0.0.0-20170705132248-b5981aecc234
go: downloading github.com/prometheus/client_golang v1.12.1
go: downloading github.com/prometheus/common v0.32.1
go: downloading github.com/prometheus/client_model v0.2.0
go: downloading github.com/beorn7/perks v1.0.1
go: downloading github.com/cespare/xxhash/v2 v2.1.2
go: downloading github.com/golang/protobuf v1.5.2
go: downloading github.com/prometheus/procfs v0.7.3
go: downloading google.golang.org/protobuf v1.26.0
go: downloading golang.org/x/sys v0.0.0-20220114195835-da31bd327af9
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.1
go: downloading github.com/cespare/xxhash v1.1.0
go: downloading golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27
go: downloading google.golang.org/protobuf v1.27.1
github.com/cloudflare/opentsdb_exporter imports
	github.com/prometheus/common/log: cannot find module providing package github.com/prometheus/common/log

Log package has been deprecated and removed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.