Giter Site home page Giter Site logo

mattbostock / opentsdb-promql-frontend Goto Github PK

View Code? Open in Web Editor NEW
24.0 5.0 4.0 27.67 MB

A HTTP proxy that implements the Prometheus API and queries the data from OpenTSDB

License: Apache License 2.0

Makefile 0.44% Go 99.56%
opentsdb prometheus promql proxy metrics grafana prometheus-api

opentsdb-promql-frontend's Introduction

A PromQL frontend for OpenTSDB

Currently an early proof-of-concept.

A HTTP proxy that supports a subset of the Prometheus API, accepting PromQL queries and answering them with data pulled from OpenTSDB.

Screenshot

Requirements

  • Go 1.8
  • OpenTSDB 2.3+ (earlier versions could potentially be supported)

How to use

go install github.com/mattbostock/opentsdb-promql-frontend
ADDR=localhost:9080 OPENTSDB_URL=http://localhost:4242 opentsdb-promql-frontend

Next, add a Prometheus datasource to Grafana and use the URL specified by the ADDR environment variable.

You should be able to use PromQL to query your OpenTSDB data.

What should (or might) work

  • You can query your OpenTSDB metrics in Grafana by pointing the Prometheus datasource at this proxy.

  • Aggregations and arithmetric.

Known limitations

  • PromQL has tighter restrictions on how metrics can be named, so if you want to query metrics from OpenTSDB such as foo.bar.baz, you'll need to query it using {__name__="foo.bar.baz"}. This restriction is probably solvable.

  • All queries must include a metric name - queries such as {foo="bar"} are not supported.

  • There are no tests yet.

  • Querying for a list of all metric names is not yet implemented.

  • The Prometheus Remote Read API (unreleased at the time of writing) is not yet supported.

  • It's all very experimental - we're using the Prometheus dev-2.0 branch.

opentsdb-promql-frontend'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

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.