Giter Site home page Giter Site logo

Comments (10)

tsuna avatar tsuna commented on July 22, 2024

Why?

from opentsdb.

anomalizer avatar anomalizer commented on July 22, 2024

I see TSDB daemon doing the following:

  1. Accept data write options from tcollector and other such apps over telnet style RPC
  2. Allow data retrieval over HTTP (as ascii, charts, and also stats)
  3. A web interface for humans to query

From a deployment perspective, I'd like (1) & (2+3) to be separate as a way to do some access-control i.e. a deployment of (2+3) acts as a read-only system.

From a compilation and packaging perspective, my guess is that only (3) needs GWT and I'd like to keep that as separate unit (given its size contribution to the final build). Also, I am not a big fan of the UI, so I'd like to have (2) without getting (3). I was hoping to ask for this split as a request at a later point but the cat is now out of the bag.

from opentsdb.

tsuna avatar tsuna commented on July 22, 2024

We could add a flag to selectively disable (1) or (2). Nothing requires (3), so if you disable (2) you can just ignore (3) altogether.

from opentsdb.

manolama avatar manolama commented on July 22, 2024

I'm working on this now where you can configure the TSD to perform one of different rolls, one of them will be just an ingest for data, another will be a GUI, etc.

from opentsdb.

choang avatar choang commented on July 22, 2024

I'm just looking into opentsdb for the past week, and found (2) to be a bit frustrating. I don't plan on using the web UI, so I wanted to test the HTTP API, but I could only get ascii to work. The json query requires gnuplot, so it seems like a bit of an overhead for querying the system. I experienced this with both the master and next branch builds.

I'm not a Java dev, so going through the code on the next branch, I don't see the decoupling of the UI elements from the API. Is that on the roadmap?

My plan is to use jQuery charts so I'm just interested in a JSON response, and not interested in the PNG charts at all.

from opentsdb.

manolama avatar manolama commented on July 22, 2024

Take a look at the latest commits in the next branch. It implements the /api/query endpoint that lets you retrieve data as JSON. You still need GNUPlot to compile, for now, but in the future that may be moved to a plugin. Docs are at http://opentsdb.net/docs/build/html/api_http/query.html

from opentsdb.

choang avatar choang commented on July 22, 2024

This is exactly what I was looking for. Thanks! (And sorry I didn't find it myself.)

from opentsdb.

choang avatar choang commented on July 22, 2024

Is there a reason you chose to create the datapoints as a dictionary instead of list? Since they are stored in time order (I read that somewhere), I think returning a list would be better, so I don't have to sort them when I try to plot.

from opentsdb.

manolama avatar manolama commented on July 22, 2024

They are actually returned in order, it's up to whatever parses them to determine if they'll be unsorted. But you can also get them as a list with the &arrays query string parameter. Also, please post to the mailing list or another item since the API isn't directly related to this issue. Thanks!

from opentsdb.

johann8384 avatar johann8384 commented on July 22, 2024

I don't think this request is needed anymore. Although I may be proposing a similar change to the mailing list to support SSL or SSH for better security and authentication support.

from opentsdb.

Related Issues (20)

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.