GithubHelp home page GithubHelp logo

rlugojr / timelion Goto Github PK

View Code? Open in Web Editor NEW

This project forked from elastic/timelion

0.0 3.0 0.0 34.62 MB

Time series composer for Elasticsearch and beyond

License: Other

JavaScript 88.51% HTML 8.95% CSS 2.55%

timelion's Introduction

HEADS UP: This repo is deprecated. Timelion has been merged into Kibana. File issues over at elastic/kibana

Timelion

Timelion pronounced time-lion, not time-leon, brings together totally independent data sources into a single interface, driven by a simple, one-line expression language combining data retrieval, time series combination and transformation, plus visualization.

  • How many pages does each unique user hit over time?
  • Whats the difference between this Friday and last Friday?
  • What % of Japan’s population came to my site today?
  • What’s the 10 day moving average of the S&P 500?
  • How what is the cumulative sum of all searches made in the last 2 years?

Timelion makes all that possible, and more. Timelion is an Elastic {Re}search project into time series, but its more than just an experiment: Its completely usable. By you. Right now.

Installation

  • Run this, bounce the Kibana server. and refresh your browser: ./bin/kibana plugin -i elastic/timelion.
  • If you're messing around with the 5.0.0 alphas of Kibana, use ./bin/kibana-plugin install timelion
  • Timelion requires the latest version of Kibana. Always. What does that mean? I means if a beta version of kibana 9.2.1492 comes out, you'll need to install the latest version of Kibana to install Timelion.
  • You can not install from the archives that github provides. They are not built versions, they won't work, use the command above.

Timelion expressions

Every Timelion expression starts with a data source function. For example .elasticsearch() (or .es() for short). That’s about as simple as it gets right? Count everything in Elasticsearch over time. Easy peasy. As you can see, functions always start with a '.' (dot). What if I want to answer that first question above: “How many pages does each unique user hit over time”. Well, I could plot the two parts together on the same chart, by separating them with a comma. But there's a better way ...

We can do more than individual functions, we can chain functions! What I really want is to divide total hits by unique users. WE CAN DO THAT. SCORE. What we're doing here is saying: Get everything, then divide every point in that series, by every point in this cardinality-of-user-field series I'm passing to .divide()

We can do that, we can do more: Timelion can reach out to other data sources, using the exact same syntax. For example, the Worldbank’s Data API. Series even can be grouped together into lists with parenthesis and a function applied to the grouping. All data sources can receive an offset argument, eg offset=-1M to compare last month as if it was happening now. Timeline can even fit series with dissimilar intervals to a reference, then enabling you to divide you by-the-minute Elasticsearch series with say, yearly Worldbank data.

That means we can mix and match these sources, even within the same expression.Thus we can ask crazy questions like “What percentage of the US Gross Domestic Product is my company personally responsible for year-to-date?” Also, if that number is big, how about sharing with your old buddy Rashid? Just kidding. Or am I?

Funk-shun Al

There’s 25 different functions, from simple arithmetic like addition and division to moving averages, cumulative sums and derivatives. That said, Timelion functions and data sources are totally pluggable and super easy to write. We’d love your help rounding out the offering, so get hacking!

Go get it

I won't give it all away, there’s more to it than just this post. Timelion will launch a tutorial to step you through configuration and some simple starter functions, the rest is up to you to discover.

Installing it is easy, run this, bounce the Kibana server. and refresh your browser: ./bin/kibana plugin -i elastic/timelion. Or you can try it on Found, the best hosted Elasticsearch in the history of the universe, for free: Found by Elastic

You can also install offline by grabbing the latest build and using the --url parameter to point the plugin installer at say, file:///Users/ItsAYou/timelion-latest.tar.gz

Now use it. Abuse it. Once you've installed it, you'll have a new icon in Kibana, which opens the app switcher and allows you to enter other apps

timelion's People

Contributors

cjcenizal avatar derickson avatar jbudz avatar lukasolson avatar mcascallares avatar mkcor avatar moshe avatar polyfractal avatar radu-gheorghe avatar rashidkpc avatar regit avatar spalger avatar ycombinator avatar zexxon avatar

Watchers

 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.