Giter Site home page Giter Site logo

tsquare's Introduction

TSquare

TSquare is the Time Series Query, Reporting and Exploration tool. It offers an extended HTTP-based API for use with OpenTSDB v2.0.x. In particular, TSquare includes (currently) limited support for Graphite's render API. Other features include:

  • Extended JSON query response format, including support for JSONP responses
  • A grep endpoint that allows you to search over metric names and tags using regular expressions and/or wildcards
  • Aggregator factory that allows lookup of aggregators based on metric name (e.g by regex and/or wildcard)
  • Extended metric query format that allows for default and auto-assigned aggregators (used in concert with the aggregator factory)
  • Last value aggregator (which is going to be added to OpenTSDB v2.1)

N.B. We wrote TSquare before OpenTSDB v2.x was available. OpenTSDB v2 has an extended REST API itself, so you might notice some overlap in features. It's very likely that we will port the unique features of TSquare over to OpenTSDB v2 soon.

Building TSquare

To build TSquare you'll need:

  • Java 1.6+ and
  • Maven 3.x
  • OpenTSDB v2.0.x (see below)

Because OpenTSDB is not in any public Maven repository you'll need to download and build it yourself. Luckily, it's very easy. Just follow the building instructions on their Installation page.

At this point, you should have successfully built OpenTSDB. The next step is to build it with Maven and install the artifact in your local Maven repository. Here's how:

## from within the OpenTSDB base directory (the one with build.sh in it)
cd build
make pom.xml
cd ..
mvn clean install

Now you are ready to build TSquare, which builds as a .war file:

## from with the TSquare base directory
mvn clean package

The resulting artifact is: target/tsquare.war

Building using Docker

We've included a Dockerfile that makes building TSqure really easy. Assuming you already have Docker installed and running you can generate the WAR with two commands:

docker build -t="tsquare:v2" .
docker run -i -t tsquare:v2 > tsquare.war

Running TSquare

To run TSquare you'll need servlet container like Tomcat or Jetty. (We've only tested TSquare with Tomcat.) Just deploy it as per the requirements of your specific container.

Authors

The initial version of this application was written by James Royalty.

All contributors, sorted alphabetically:

License

Copyright (C) 2013 Conductor, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

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.